• 4 Posts
  • 6 Comments
Joined 1 year ago
cake
Cake day: June 25th, 2023

help-circle
  • Hehe, good point.

    people need to read more code, play around with it, break it and fix it to become better programmers.

    I think AI bots can help with that. It’s easier now to play around with code which you could not write by yourself, and quickly explore different approaches. And while you might shy away from asking your colleagues a noob question, ChatGPT will happily elaborate.

    In the end, it’s just one more tool in the box. We need to learn when and how to use it wisely.


  • You can use more debug outputs (log(…)) to narrow it down. Challenge your assumptions! If necessary, check line by line if all the variables still behave as expected. Or use a debugger if available/familiar.

    This takes a few minutes tops and guarantees you to find at which line the actual behaviour diverts from your expectations. Then, you can make a more precise search. But usually the solution is obvious once you have found the precise cause.


  • I think that’s one of the best use cases for AI in programming; exploring other approaches.

    It’s very time-consuming to play out how your codebase would look like if you had decided differently at the beginning of the project. So actually comparing different implementations is very expensive. This incentivizes people to stick to what they know works well. Maybe even more so when they have more experience, which means they really know this works very well, and they know what can go wrong otherwise.

    Being able to generate code instantly helps a lot in this regard, although it still has to be checked for errors.