by crdrost · 3y ago · 0 comments
In my lungs I still feel young
But my body won't play along
I'm thinking this must not be where we
Belong.
Alan Kay was talking somewhere, but I don't have the link, about how a lot of his success in his youth had to do with the research community around him, and I think he was asked a question about how that sort of thing changes as you grow older... He replied that the combination of growing older and not having that generous funding for whatever experiments they wanted to do and the dynamic research community, meant that he had to stop looking for validation at the "quality of my results" and instead had to feel pride at the "quality of my effort." Something I have kept in mind.The other thing I will say is that I am getting to an age where a lot of people really get set in their ways, and I am noticing that I am not. Like on a recent project I was trying to get team buy-in to move from Java to Kotlin, and the people who were super excited about it were 5-10 years younger and the people who were like “but why” were my generation and carried the day. I told this struggle to my wife and she attributed it to neurodivergence, she thinks I might have a mild or high-functioning ADHD that essentially gives me perpetual mid-to-late 20s enthusiasm with sime mild drawbacks (difficulty “cleaning as I go” when cooking for example, not handling the taxes until April when it becomes urgent, that sort of thing).
Don't. I tried it, liked the language itself, but went back to Java.
Kotlin's syntax is nice, but it predates Java 8, so that syntax plays poorly with the stream API and lambdas. Iterop works as-promised, but again, Kotlin syntax doesn't work well with libraries that are Java-first (in my case, this was Hadoop). Finally, mainline Java keeps cherry-picking the best new language features while learning from their mistakes.
Older people are more likely to have managed to do that before (introducing cool new tech/tools) and seen the costs of doing so. There simply are always switching costs, integration costs, and maintenance costs as well as new dependencies involved which can make it better in the long-run to simply keep using the potentially sub-optimal tech that everyone is already familiar with and using all day every day.
One place where I've seen success with using different tech is in some batch-processing script-like thing that you can just deploy, set up a cron job, and then everyone can forget about it while it runs happily in the background for years. Of course, that'll mean another cost when it eventually does need to be changed, but if that's many years later, that may be negligible. Another is one-offs that you can run once, verify the results, and then throw away.
But for something that's going to need substantial development or ongoing routine changes, the benefit might not outweigh the costs.
Younger people might not have had that experience or be thinking in terms of that whole long-term lifecycle thing, while older people have already dealt with it.
That is interesting! I do have ADHD and I'm now in my low 40s. The enthusiasm never goes away. I met an old housemate, whom I had not seen in 20 years, and he said "You were eager, and unlike the other housemates you were much more open to things and not set in your ways."
I said mate, nothing has changed! It really is a pain when your peers don't want to try new things, but on the other hand, it's a good personality for leading a bunch of young guns with fire in their bellies!
I definitely thought personally that Kotlin had some big advantages.
• The most common comment on a pull request was asking people to remember to “@NonNull all the things!” so Kotlin’s non-null by default aspects seemed wonderful.
• Maybe the second most common comment on a pull request was to replace “==” with Objects.equals(x, y), Kotlin just has a sane ==. Note that Objects.equals() is the correct choice because y.equals(x) is “safe” but unfortunately written Yoda-style whereas x.equals(y) causes null pointer exceptions (the x usually comes from a getter which is null-tolerant).
• Kotlin had immutable records by default which made tests automatically more readable.
• The ability to mix declarations for functions and data structures etc in one file, allowed for much less jumping between files. Meanwhile, the lighter syntax meant that the code in those files took up a lot less visual space, so these files were not overwhelming...
So to your point it definitely “felt better to use and gave me more of my time back”, I felt, otherwise I would not have pushed for it.
And yes I agree the time to learn the language should all be accounted for in development hours, not some weekend homework project, and I would definitely validate your skepticism about the dangers about caring for the company more than it cares about you.
Along the same lines, is the realisation that we tend to judge (?) others by the outcome of their efforts, but we judge ourselves by the outcome of our thoughts. I've read that somewhere, certainly more eloquently put, but it also stuck - esp. afrer having kids.
It intuitively makes sense that this is the case, and for some reason it really stuck with me (it’s been 16-years since that class). Committing to working against this nearly universal implicit bias led me to being a more empathetic person over time.