• 2 Posts
  • 122 Comments
Joined 8 months ago
cake
Cake day: January 5th, 2024

help-circle








  • I think we’re going to have to agree to disagree. If any project in any language has well-organized code, it’s down to a ton of effort.

    Assembly is harder to code in, period. It’s even harder when your code is a total mess and you didn’t plan ahead. For a large assembly project to survive at all, some structure is as necessary as oxygen. And not to mention, there are far fewer projects written in assembly anyway.


  • Okay, I’ll grant you brainfuck… As for assembly, I don’t think it’s inherently spaghetti. You can split it up into functions just like you can with an actual programming language. It’s not impossible to make structured code.

    That said, I never coded assembly outside of a mandatory university course, so I don’t feel super confident in saying that. But I don’t think of it as a programming language anyway - it’s a 1:1 translation to/from machine code, and machine code isn’t meant to make programming easy or scalable.


  • I firmly believe that every language has an equal proportion of spaghetti code to clean code. The only factor that might screw with this is how much a language is used in industry, which I’d expect raises the ratio. However, there’s plenty of hobbyists writing spaghetti code too so I don’t think even that factor has much effect.




  • Nice. I solved 22 (with 2 of them being unsure), there’s 12 I don’t know. I can only assume the multiple listings of ‘List files in current directory’ is a deliberate joke because you use it so much, but somehow it doesn’t feel right.

    You should find a website to share it where people can play it interactively! I’m sure such websites are out there, it’s too obvious.






  • Ooh, I did guess wrong! That is an interesting specimen.

    My suspicion is that they are experts in ergonomics, not in electrical engineering, so they probably aren’t aware of how silly and possibly dangerous what they did is. Or perhaps they simply don’t care because “it gets the job done”, standards and specifications be damned.

    Anyway, in this case I’m happy to be proven wrong. Thanks.


  • It makes sense, if I remember correctly the older USB cable (i.e. everything before Type-C) are passive, so as long as the pins are wired symmetrically it wouldn’t matter which side is which. But whoever made your keyboard really blundered, there is no reason in the world why anyone would do this. There’s so many options: the B connector, mini USB, micro USB. All would make sense to put in the keyboard. A just doesn’t.

    Let me guess: you got it from an ultra cheap online store? AliExpress/Wish/Temu?