• 0 Posts
  • 63 Comments
Joined 1 year ago
cake
Cake day: July 3rd, 2023

help-circle
  • I use AI as a rubber duck or to get general ideas all the time. For example, I wanted to make a “hand” of cards splayed out using css, so I asked AI and it gave me a nice starting point I could tweak without having to fuss with figuring the formula to tilt which element at which angle. It’s also quite good at guessing what boring boilerplate code I need to type next.

    Another example: I was trying to figure out an architecture that adhered to OOP/SOLID principles for a specific task, and asked for an example implementation. I was able to test and think through a ton of permutations before landing on what I was taking to prod.

    I think it’s a nice tool for the toolbelt, but it isn’t replacing a programmer anytime soon. You have to know what to ask and be able to intelligently analyze what it spits out to you










  • naught@sh.itjust.workstoProgrammer Humor@lemmy.ml1 hour in Java
    link
    fedilink
    arrow-up
    6
    arrow-down
    2
    ·
    edit-2
    4 months ago

    Just curious, what about spaces made it hard? What language would have been easier? In curly brace languages, 99% of the time, a curly brace is followed by a line break and an indent. Python is similar except it’s typically a colon, line break, then indent.

    What I have learned is: If the code is indented too deeply, it’s a code problem, not the language.

    Torvalds infamously wrote:

    “… if you need more than 3 levels of indentation, you’re screwed anyway, and should fix your program.”