[–] 3 points 7 months ago

Yeah it's clearly more than just experience. It's at least experience + actually learning + actually caring. I wouldn't rule out natural talent either, though I have seen plenty of smart people with poor programming taste.

For example I worked on a C++ SDK where the guy that wrote it was clearly very smart... But he had also written an enormous god object using CRTP to inherit about 20 classes. The aim was to make it somehow modular, but it absolutely wasn't. Clearly poor taste.

Maybe it's like religion. There are plenty of very smart people that believe in an imaginary friend. It's almost orthogonal to "smartness". Maybe taste is the same.

  • source
  • parent
  • context
  • [–] 13 points 7 months ago (2 children)

    I would teach Typescript. Being able to write the types down and hover things to see what types they are will definitely help them.

    I think C would put them off. I also wouldn't go with Python, in case they want to do things like write games or make websites, which are common tasks you can do with Typescript but not very well with Python.

  • source
  • [–] 3 points 7 months ago

    I always like "by example"s for learning languages - here's Rust's.

    I'd probably make a project with it. Maybe a CLI tool using clap_derive and some crate that does something neat that you want to do. Depends what you're interested in I guess.

    I wouldn't recommend trying to do leetcode problems with Rust because they are obsessed with linked lists and linked lists are awkward in Rust.

    Also I wouldn't recommend making a game or GUI app with Rust yet since the ecosystems there are immature.

    A microcontroller project using Embassy is probably a fun way to learn too but I haven't actually tried it yet.

  • source
  • [–] 1 point 8 months ago*

    Yeah I know, but if you really mean that analogy then the conclusion is that the normal thing for 99% of programmers to do should be to use AI. In the same way that 99% of people do not get around by running.

    I don't agree with that yet - so far I've found AI to be a very fast but mediocre programmer. Kind of like giving a beginner access to all the documentation and a time machine. Sometimes that's exactly what you want. But definitely not most of the time.

  • source
  • parent
  • context
  • [–] 1 point 8 months ago (2 children)

    Not everyone that runs is an avid runner.

    But I do feel like the analogies aren't that great. Coding in notepad instead of an IDE is dumb because IDEs work and don't really have any downsides. AI mostly seems to produce slop that barely works without a ton of cajoling.

  • source
  • parent
  • context
  • [–] 2 points 8 months ago

    Impressive transition. It's definitely better just to start with type annotations. It's around 3-10x more work to add them later, and you don't get the productivity benefits of having had them along the way. Same goes for Python.

  • source
  • view more: ‹ prev next ›