• 0 Posts
  • 108 Comments
Joined 1 year ago
cake
Cake day: August 2nd, 2023

help-circle

  • The main problem with Java (or garbage collected languages in general) as a first language is needing to unlearn the bad habits it ingrains when you move to a systems programming language with manual memory management. Other than that it’s a pretty good first language, though I’d suggest learning a bit of C at the same time just to get a basic grip on things like pointers and stack vs heap.

    Edit: it occurs to me that C# would be the perfect learning language. It’s very similar to Java and an easy first language, but you’d also learn about stack allocation through structs, and can teach pointers using unsafe (though I think unsafe code is still GCed, so this wouldn’t help with the memory management side of things. Haven’t touched C# in fifteen years so I’m not sure how it works anymore).










  • It’s the lack of flow.

    When I’m good at something, I can switch my brain off (even for mental tasks like programming; it’s weird how ADHD works) and happily do it for hours.

    When I’m working on something I’m not good at or am new to, I need to stop every few minutes to think or research and that gives my ADHD brain an opportunity to attack.

    When I’m medicated, I can maintain that flow state with nearly any task - just with zero control over which task gets priority.