☑️

  • 0 Posts
  • 12 Comments
Joined 2 years ago
cake
Cake day: June 19th, 2023

help-circle

  • At my last job we had a lot of old code, and our supposedly smartest framework people couldn’t be bothered learning front end properly. So there was a mix of methods for passing values to the front end, but nobody seemed to think of just passing JSON and parsing it into a single source of truth. There was so much digging for data in hidden columns of nested HTML tables, and you never knew if booleans would be “true”, “TRUE”, “1”, or “Y” strings.

    Never mind having to unformat currency strings to check the value then format them back to strings after updating values.

    I fixed this stuff when I could, but it was half baked into the custom framework.




  • I’m still waiting for the day I see UML in a professional context. My undergrad teachers were all about it.

    Similarly, I don’t design software using design patterns, and I’ve had to discourage juniors from forcing them into projects where they don’t add any value. But that’s not to say design patterns aren’t useful. They do exactly what you say, allowing your brain to recognise a pattern so you can remember or communicate it without having to go into details. Most of the time it won’t be an exact fit for the ideal pattern implementation, but it’s still easier to remember the variation.

    I wish they were taught more as communication and cognitive tools than silver bullets for good software design.

    In the real world there aren’t even that many patterns. On a very large project you’re likely to see the same patterns repeated throughout the system, because a good architecture doesn’t add variation and complexity unless there’s a lot of value to gain. You learn the default way, and then the diffs.





  • jimmux@programming.devtoProgrammer Humor@lemmy.mlWar Crimes
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    2 years ago

    Programming typefaces with ligatures are a step in this direction.

    I would try this in something like Haskell, where some of the more exotic character sequences get tricky to recognise.

    Unison might be the best language to test this in. Having identifiers separate from the actual definitions, you can call anything whatever you want.