• 0 Posts
  • 76 Comments
Joined 9 months ago
cake
Cake day: December 23rd, 2023

help-circle



  • FlorianSimon@sh.itjust.workstoLemmy Shitpost@lemmy.worldDelicious
    link
    fedilink
    arrow-up
    23
    arrow-down
    2
    ·
    24 days ago

    God, my sister bought a can because she was visiting and wanted to try it, and didn’t eat it before leaving so I thought I’d eat it to get rid of it… 😩

    I can’t remember the last time I gagged while eating something, but this caused me to almost vomit mom’s spaghetti.

    That’s dog food. Not meant for human consumption.





  • Six levels of abstractions, sure, if you have that many, you may want 6 functions. But that contradicts Martin when he’s saying that there should be one line in an if, and everything more should be promoted to its own function. There’s no way a programmer routinely writes code so terse that you get six levels of abstraction in a dozen of lines of code. Otherwise, Martin doesn’t understand what an abstraction is.

    Managing a stack in your head like a computer is very challenging as far as cognitive load is concerned. You don’t want to jump all over the place. Otherwise, when you reach your destination, you end up forgetting what got you here in the first place.

    This form of code fragmentation makes debugging an absolute nightmare, and finding sources of mutation absurdly frustrating. Good tooling can help you track where a variable is used and in which order mutations happen trivially in code in a single function. It’s not as as helpful when it’s spread all over the place. You can infer so much less statically if you follow Martin’s advice.

    I’m not advocating for 1000-lines functions here, mind you. When functions become too big, other challenges arise. What’s necessary is balance, which Martin’s book fails to teach.


  • It’s inspired so many crimes against engineering as a whole that it’s OK to discourage people from reading it. Not only is it pointless, but it’s also actively harmful to the industry as a whole.

    When something is mostly garbage and good advice is so sparse in it, there’s no need to hold onto it. It’s as much of a mixed bag as a turd with a nice ribbon is a mixed bag of prettiness.

    Burn it with napalm.

    … Nah, I don’t actually mean it should be burnt, that was a joke. The book is a nice reminder that, on top of being a bigot, Robert Martin (not my uncle) should not be hired to write any kind of code in any professional capacity.





  • On top of being super bloated, Intellij’s Rider is far from “just working” in my experience. Not only is it super slow to boot, but it also changes asmdefs in my Unity project unprompted, in a way that prevents my project from working (creates cyclic dependencies). The debugger also sometimes doesn’t trigger breakpoints 😵‍💫

    I absolutely despise it, viscerally.







  • FlorianSimon@sh.itjust.workstoLinux@lemmy.mlZed on Linux is out!
    link
    fedilink
    arrow-up
    52
    arrow-down
    2
    ·
    3 months ago

    Probably because it’s more efficient. GPUs are designed to render things, which editors do. In a text editor, you’re effectively rendering fonts over a fixed background, which I assume is pretty efficient using the GPU.

    We’re not talking about crazy 3D effects here.

    Yay to battery savings!