• 5 Posts
  • 151 Comments
Joined 1 year ago
cake
Cake day: June 11th, 2023

help-circle




  • Kissaki@programming.devtoProgramming@programming.devCode Smells Catalog
    link
    fedilink
    English
    arrow-up
    11
    arrow-down
    1
    ·
    edit-2
    6 days ago

    The items don’t seem concise and always clear. But seems like a good, inspiring resource for things to consider.

    If it is expected that a method might fail, then it should fail, either by throwing an Exception or, if not - it should return a special case None/Null type object of the desired class (following the Null Object Pattern), not null itself.

    I’ve never heard of evading null with a Null object. Seems like a bad idea to me. Maybe it could work in some language, but generally I would say prefer result typing. Introducing a result type wrapping or extending the result value type is complexity I would be very evasive to introduce if the language doesn’t already support result wrapper/state types.


  • It’s an operating system that demands more of you than does the commercial offerings from Microsoft and Apple.

    Does it?

    It’s different, but I imagine they’re not fundamentally different if you exclude established knowledge/already being used to something.

    Normal office use for non-techy people is launching apps, editing documents, and surfing the web. That doesn’t work much differently, not fundamentally different, and not fundamentally more difficult.















  • English source code is a universal language.

    I’ve never seen a need for localization beyond domain terminology. And I think it would be a huge detrimental.

    To implement it would be unnecessary significant complexity. Effort better spent elsewhere. And for programmers it’d be confusing. Think code snippets, mixing content, and the need for reserved word expansion or exclusive parsing scopes that would be even more complex and confusing.