| |
| ▲ | horsawlarway 3 hours ago | parent | next [-] | | > but still it was obviously the right way to go compared to JS or, god forbid, shell. I just don't think this is true. Frankly - it's hard to argue this at all (even today) given that JS is the dominate language on the planet, and it lacks types... as does python, which had a reputation for decades as THE language to use to teach new folks to code. Or take PHP which dominated server development for a LOOONG time: also lacks types. Ruby on Rails has a wonderful reputation as the "get shit done" framework: no types. Types are good for modern software companies, where code size has ballooned up very high (common to work on a codebase with hundreds of thousands of lines) or teams are large (50+ developers) and terrible if you just want to hammer out something that works as a solo dev. Do I like types today? Sure - the tooling is solid, and I work on large codebases with large teams. Did I like types as a solo dev at 3 person startup? no. | | |
| ▲ | jazzypants an hour ago | parent | next [-] | | It's still useful for things like onboarding the fourth person to your start-up. Good types get you half the way to good documentation. | |
| ▲ | dprkh 3 hours ago | parent | prev | next [-] | | > as does python, which had a reputation for decades as THE language to use to teach new folks to code I am very perplexed by this. I am going through Neetcode's DSA course where he explains what RAM and arrays are, but then he goes on to say something like "but since we are going to use Python, none of this applies." Personally, I learned the most about how software really works from reading The Rust Programming Language. It not only teaches you how to program in Rust, but also how memory works, what a string really is, etc. | |
| ▲ | esafak 37 minutes ago | parent | prev [-] | | Those languages dominated because they were simple. Then they grew, and their users grew up, and realized that worse is better. At a startup you can choose even fancier languages, since nobody is stopping you! |
| |
| ▲ | TedDoesntTalk 3 hours ago | parent | prev [-] | | Java has a lesson of what can go wrong with types, just as parent says. That example is dates and times. So many types… And before Java finally settled on what we have today, we had 3rd-party libraries like jodatime that tried to fix it. I guess it’s in a good state today, but it took a LocalDateTime.MAX to get there. I mean an Instant.MAX. No, I mean an OffsetDateTime.MAX. No, I mean new Date(Long.MAX_VALUE). Oh wait I meant new Timestamp(Long.MAX_VALUE). No, I mean LocalTime.MAX. I’ll stop now, but i could go on. |
|