by andrewstuart · 4y ago · 0 comments
You need a VERY good reason to use anything except TypeScript/C#/Java/Golang/Python/React/Vue/Postgres/MySQL/SQL server/Oracle. Perhaps Rust. These technologies are good enough to get almost anything done these days. There's exceptions of course for example games tend to written in C++ and embedded is often C.
Apart from anything, you should be using these most popular technologies if only for the sake of recruiting.
Using less popular technologies like Erlang/Dart/Kotlin/Ruby/Elixir/OCaml/F# or whatever weird new JavaScript React alternative thing got you interested lately is a bad idea not just for recruiting but for support and community and documentation.
If you are the person deciding which technologies to use, you should probably be using the most mainstream thing you can, not the coolest newest thing that you read on Hacker News. There's any number of companies saddled with their main systems being built in the weird assed framework that the fourth-to-last CTO decided was a good idea, and those companies are now stuck with the problem.
I should note of course that my comments refer to company/organisation development. For personal projects or fun or whatever you should do whatever the heck you enjoy.
Sure if your value add is content then go ahead and use mature tools within the paradigm, but if you want to cause a so called "paradigm shift" then you'll need to understand where the progress is happening and what kinds of opportunities it creates.
Ocaml for example is looking more and more enticing. Standard meta language is used by academics and programming language theory is developed in it. Meaning that it has a good long term trajectory (along with lisps I suppose).
Of course we are about to grow out of syntax, soon it'll just be another config param in your editor.. but I don't think these "obvious choices" you list will all be as well positioned w.r.t. that change.
Right now it may be harder to agree with me than with you, but that makes me think of a hn thread I was reading recently where people didn't want to admit to being programmers (in public / to strangers) because the perception is starting to be that what we do is immoral. Sufficient mastery of programming will make it a boring thing that everyone knows how to do but lowering the bar to that point won't happen within the web paradigm we currently inhabit. We'll see if wasm brings us closer but I think it will take more than that.
Anyway, I'd say your advice is good but not great. A CTO should be able to assess which tools fit the problem they have for the timescales they're considering. If they're swayed by your comment (or mine for that matter) then they're not fit for the role. The person you are actually talking to is someone who is building a company that suffers tech while the core business is something else or a company that is meant to be sold to some giant.
This is the most Hacker News thing I read all year. What are you talking about? Where did he say anything about wanting to cause a paradigm shift?
Facebook was PHP.
Google was C++.
Bitcoin was C++.
Netflix was Java.
Spend your innovation points on your product, not on programming language.
I've never in my life done anything that I feel standard languages aren't a good fit for.
I do think Dart deserves full best practices status, because the tooling and ecosystem around it is fantastic, and because it doesn't have a bunch of "Outside the paradigm" stuff, it's all things you can learn in a week coming from Py/JS/etc.
Runtime errors.
I'm not exactly sure what the slowness people talk about is. Even the most bloated of websites are fast.
The one thing that still is an issue is Android load times. It gets a little excited about killing background apps on my phone and will take 10 seconds to open my notetaking app again.
any chance you could find and link to that thread?
I'm perfectly happy letting other people work in the middle of the bell curve, but I cry a little inside when I see a super cool application be ruined by highly conservative software thinking. I have never been able to understand that, usually hardware-oriented, companies will be doing something super advanced and novel with physics, engineering, biology, and other "hardware" related things, but then will bury their heads in the sand unless the most common denominator programming language is used because they supposedly can't hire people otherwise. But yet they're perfectly willing to hire and train people on the novel hardware designs. It doesn't add up.
There is a very strange uncomfortability with software ideas that are new to people that I do not see when it comes to even the most novel and cutting-edge hardware-related topics. I have experienced this in internal talks, where hardware-related talks will generate a huge amount of buzz and questions, despite often being well beyond the audience, and the software-oriented talks seem to attract crickets. Honestly, I think it's a bit of hidden hubris, in that many scientists and engineers consider themselves to understand software, and in showing interest in new software-related things, they fear showcasing that they don't know something they fancy themselves as knowing. The other possible answer is that people are just afraid of software in some sense.
I found this in a recent interview where it seemed to be expected to solve a problem using objects and either interfaces or inheritance. I solved the problem with discriminated unions and pattern matching, and there seemed to be some uncomfortability with the solution because it wasn't what they were used to as being the "right answer", when in reality it was just another spot in the solution space of the expression problem.
It's such an insightful phrase.
In general, people are afraid of simplicity. When you show them a technique or programming language or method or perspective or whatever that is new to them but also simplified the problem, people are inherently bothered that it isn’t as complex as they’re used to, which convinces them that it isn’t a valid solution.
But mainstream languages also include C++, C#, Go and many others. It's a good thing to have several different tools in your toolbox, but a few tools can cover pretty much any scenario outside of really extreme corner cases (where something like e.g. Prolog might be of use).
I'm not surprised, it is very difficult to scale Python to larger teams and projects. I mean people have done it to some degree, but at what cost?
It's much better to stick with a static language like Java or C#. You mentioned pattern matching and discriminated unions at the end of your post, which Java has recently gained, and C# to an extent as well.
Its value decreases swiftly the less glue you require, since that is its real niche.
I'm not sure what you're suggesting.
Are we expected to rewrite everything every decade when a new flavor of language comes out?
It seems like, with the exception of Rust, you've named a lot of "lowest common denominator" languages. These languages, while productive, tend to lack expressiveness. It is my opinion that expressiveness is seen as a bad thing in the "professional" community because it takes significant cerebral evolution over the course of a career to learn which tool in the toolbox to use. In other words since the explosion of programming as a career there are more idiots in the proverbial gene pool, and so more companies prefer more idiot-proof languages because the average developer can't help but hurt themselves. This doesn't mean we should prefer "new safe technologies", it means our recruiting should far more stringent and our education far more formal (as in an actual useful programming degree).
I for one would quit if I could program, for example, common lisp and make even 3/4 of my current salary.
Here's, in my opinion, a better and less controversial hot take. Use what works. If you have a team of erlang developers do it in erlang (or whatever). Who cares about the market. If it means spending even more time (and money) learning to write another more popular language correctly it may not be worth the investment. If you build it, they will come. You will have no problem finding an endless stream of developers you can build from the ground up.
As a side note: Kotlin, Ruby, and F# are extremely popular. TIOBE is not a real measure.
I think the ironic thing here is that these "approved" languages are both less safe and less expressive. Statically typed functional languages like Haskell and OCaml allow much more correct code and reject much more wrong code compared to something like Java or Go. I'd even go as far as to argue that in some ways, Haskell is more expressive than the mainstream dynamic languages (Ruby, Python, JS etc).
Now, if your developers are really "idiots" (which to me is a very condescending thing to assume, but that's a different story...), then maybe they won't even be able to get their code to type check in the first place and ship no code at all :)
In functional code, sure. In a predominantly mutable algorithm, you fight the language more than what you gain, and sometimes, yes, the mutable approach is simpler and easier to reason about. Especially local mutability can be very readable/maintainable.
As an IC, I care about the market. I go to work exclusively to exchange my labor for money to support my addiction to food and shelter. When it was time to change jobs as your bog standard enterprise dev, it was much easier to throw my resume in the air and get a job offer by being an experienced C# developer than it would have been if I had spent three years writing software in Erlang.
And most job interviews outside of tech companies where most developers work are not going to be language agnostic nor are they going to have you reversing binary trees on the whiteboard while juggling bowling balls and riding a unicycle on a tightrope.
As a reformed former dev lead, why would I hire an Erlang developer when I could throw a rock and hit a good enough C#/Java JavaScript/React developer to push out some CRUD SaaS app or line of business app?
Idiot proof languages are popular. If you want assured money learn an idiot proof LCD language. In fact, everyone should have one in their tool belt to put food on the table.
However, if you're actually a talented engineer these languages will hamstring you and your art. You will probably eventually gravitate to something more heady (such as the less popular languages) and probably even leave your nice cushy gig to give a professional life in that stack a shot. This isn't, however, to say talented engineers don't exist in lowest common denominator language pools. It's just esoteric/less-used languages tends to cause the best quality of talent to come from them owing from many of their problems. If you can be proficient and productive in a language that you can't easily google a solution for, you're probably an excellent candidate for promotion into the higher echelons.
This is a similar phenomenon to editor choice. My anecdata in a little over 10 years of a career has given me the impression that I can tell what kind of developer someone is by their editor. People who use raw vim/emacs tend to better developers. Why? It's not the editor itself. It's that these editors pull no punches and require time and expertise. That dedication is not taught. The easier an editor is to use for a beginner, the more average a programmer tends to be. Again, there are a lot of very talented developers using VSCode or full blown IDEs. But with those editors your signal to noise ratio is quite low. It's anecdata but mixed with the information above you can gather a lot of "metadata" about a person without much effort.
My anecdata, people who overly focus on language and tools tend to be the worse developers. It's the developers that effectively address the universal problems of writing software people want to use, like api usability, reliability, data consistency, maintainability that have the most props in my book. The best developers I've known weren't particularly attached to any editor, language, or framework.
You saw that whole spiel about my desire to exchange my labor for money to support my addiction to food and shelter?
> However, if you're actually a talented engineer these languages will hamstring you and your art.
I have no desire to be a starving artist. I turn requirements into code so businesses with money will give me some of it by adding business value. I don’t program to create the next Picasso.
I stopped considering programming “fun” after doing it for 10 years across 4 assembly languages (65C02, 68K, PPC, x86) before I graduated from college in 1996.
> and probably even leave your nice cushy gig to give a professional life in that stack a shot
So tell me again why I would leave my “cushy gig” (and it is the cushiest gig you can imagine in any BigTech company)?
> you can be proficient and productive in a language that you can't easily google a solution for, you're probably an excellent candidate for promotion into the higher echelons.
Every single leveling guideline I have seen at any tech company doesn’t mention “ability to code in an esoteric language well”. It’s all about “scope”, “impact”, “managing ambiguity”, etc. “Coding ability” really only comes into play from junior to mid. After that it is about system design even at the interviews.
Early in my career I thought of software as art. I was wrong.
The very last thing I want in any production software team is an artist looking to express themselves. I want the worlds most talented engineers who want to use consistent proven methods to create solid maintainable code with zero surprises.
Code as art has its place, granted, but that place is in the privacy of your own time in a repository with one single contributor. I occasionally still go back to writing lisp for fun, but it has no place in production.
Even in C that lacks any form of sane abstraction capabilities, people have come up with object systems and what not if they fit a problem domain better. While I think that the language optimum is well past C, there is no significant difference between modern managed languages in any way besides ecosystems — and that is the most important thing.
Are we really to believe that the average Javascript developer is going to be able to be dropped in an Erlang shop (or any of the other "weird" languages) and be productive any time soon?
I’m sure I could (re)learn Java that I haven’t touched since shortly after it was first introduced in the 90s in a few weeks. That doesn’t mean I would be a competent Android developer.
The average JavaScript developer would be an idiot to ever step foot in Erlang shop if he knew what was good for his career.
My resume was sacrosanct when I was in the enterprise dev world until mid 2020. Why would I reduce my optionality by not using the most marketable technologies?
It also means you’re competing in a much smaller market and people looking for strong Erlang developers will be suddenly very interested in you specifically, because it’s tough to find strong candidates with this expertise.
It also might mean (depending on your interests) that positions that are open are in a more intellectually interesting problem space, because boring problems tend to be solved in the lowest common denominator languages, and if an unusual language is chosen, it might be chosen because it’s a being used in a unique context.
Because of this: "The Python Paradox" [1].
Replace Python (which has become mainstream in the meantime) with any other "weird" language from the article and I think the point still stands.
If it matters I had started learning Python just about when this article was being written/published, and in my early to mid-career that advice of using a "weird" language (Python, at the time) was really good for me, got me into a couple of small companies where I really enjoyed working.
Granted, now I'm already over 40 years of age with a mortgage to pay, I'm a little more flexible when it comes to the technologies being used (even though I would cry myself to work in the early hours of morning were I to use Java, and I'm not kidding), but for people who are quite early in their careers letting them explore and use those "weird" languages will still do them a lot of good in terms of them enjoying their programming work, they might even land on a forum written in Arc.
When I first started in my career over two and a half decades ago, my focus was on being able to be aligned with the market and being able to support myself. I was young, single, had no responsibilities and just moved to a major city. The last thing I considered “fun” was programming.
If the attitude you're encouraging were followed, these would all have been relegated to unsuccessful research projects and we'd all still be programming in assembly language.
It's weird to me that it's the stubborn languages that seem to make it through.
And they continue to introduce new ML features in the form of pattern matching, ADT, etc.
I think sometimes these languages get unfairly evaluated.
I mean, I don't follow that advice at all, and if you don't want to you shouldn't either, but there's definitely a fair argument that it would be "better" for most cases to accomplish your goal with boring technology.
Considering the popularity of the Android platform and Google's control over it, I don't think it is a bad idea to develop an Android app in Kotlin. According to Google, their Maps, Home, Play, Drive, and Messages apps are all built in Kotlin, and my personal experience is that Android developers like and prefer Kotlin.
Wow if Google is behind it, where do I sign up? It’s definitely going to take off and not be abandoned.
I probably could even write some games I could release on Stadia.
I thought they were fully committed to Dart or was that last week?
Also compiled languages have longer staying power because if you move on from the language, you can still make use of the binaries but simply never write it again. Look at all the Fortran libs that are still in use by other languages...
That is because the other option is a deliberately crippled Java from a decade ago. Also, while apps are indeed mostly written in Kotlin for android, I am fairly sure most of Google’s listed apps have a Java shared library that does the core of the functionality that is shared between backend, android, web frontend (j2cl) and ios (j2objc).
Also, don’t forget that android development is a niche, on the web backend side Java is just an incomparable bigger player.
As the article indicates, there's no SO or Google to find solutions easily... You need to read the docs or find some dark corner of the web for help you require. It highlights passion and genuine interest in understanding what you're doing and figuring things out yourself. Whereas your languages are financially job driven... Not curiousity driven; and my issue with that is if you can learn the esoteric languages, the mainstream languages are laughably easy.
I also love weird (/old) languages as the community that exists, however small, are asking 400-level questions amongst each other and not CS-101 topics. There's a nice serenity in not having polluted search results of utter basics.
My favorite programming language is an amazon link. If I can say "I could build this, but it already exists here", I'm happy because I know I've given them something truly professional in a week that would have taken way longer and cost way more to build, plus any random person can work on it and parts will be available on eBay.
Using common languages is just an extension of that.
If someone uses unusual languages, I expect they'll have unusual problems that will become my problem if I'm working with them.
On the other hand, if the task at hand requires a novel approach and using tools that are less frequently used, then that will also be justifiable. Are you developing something that only makes sense to run on the BEAM virtual machine? Go ahead and work with Erlang or Elixir.
Now a third category is programming for enjoyment. In that case you don't work with the constraints of profitability, and you can just have fun. And don't worry too much about Beating the Averages (http://www.paulgraham.com/avg.html)
And with regards to employee retention, I would rather bet big on benefits (paid time off, parental leave, etc.), reasonable working hours (4 days per week), achievable goals, great communication, democracy and good team cohesion. I have a feeling this works for a lot of people. If a language is the only thing that makes you stay, by all means find a place that truly makes you happy in that regard. All I am saying is that there are a lot more variables to worker satisfaction.
Those are important factors also. But I would prefer to work 5 days per week and enjoy my work rather than working 4 days and not enjoying it because the PL sucks. Just my 2 cents.
I'd wager that most of the remaining PHP sites are wikis and legacy applications that are too painful to port.
The article even concludes with: "PHP is far from dead, no matter what any disgruntled developer may tell you. After all, 79.2% of all websites in the world can’t all be wrong, and most importantly, PHP’s market share has remained relatively steady throughout the last five years (oscillating between 78–80%). Few programming languages command that type of staying power."
PHP powers a lot of legacy code bases, yes. But there are also a lot of job opportunities in Laravel and Symfony which are both very good frameworks.
How are you getting that number? From the link you referenced, the percentages are Wordpress: 40%, Joomla: 2.6%, Drupal: 1.7%
It's getting ever harder to find good PHP developers.
PHP will be around forever, but it's getting less popular.
I promise, Oracle (the company) is a good reason to use anything except Oracle.
On a more humorous/worrying note, there's also this: https://news.ycombinator.com/item?id=18442941
And you’re doing a grave disservice to Elixir at the least. I prefer Erlang myself, but Elixir has established itself as a robust choice.
I haven't had the same luck with frontend. There's so much magic, config file hell, and other rough edges that you need someone who knows the framework. In the JS world, actually writing code is maybe 50% of the work, and managing the ecosystem (config, build, packages, etc.) is the rest.
If you only stay with what is popular nothing new becomes popular.l and you become mediocre.
Popular isn’t always the right choice. There’s the situation things are only popular because they are popular. React seems to fit that now, it’s the default as everyone else is using it even if there’s newer alternatives.
Innovation only happens by doing things different.
Choose what is appropriate, not what is popular or what is new.
The three you mentioned got over the hump by corporate backing. In particular Rust got in force thanks to Mozilla, golang to Google and TypeScript to Microsoft. Big guys sometimes make an abject irrelevancy or failure (e.g. F# which didn't quite catch on, old stuff like Visual Basic) but usually at least the support and visibility is there.
Additionally the standard request model of PHP (like with PHP-FPM) is a fast, efficient, and easy to learn model of request for new developers. Easily scalable new processes that are cleared at the end of the request. It seems like this is something people try to emulate with the “server less” model but PHP was built for this and is quite efficient at it.
And it's not even true that Haskell cannot be on that list for any sane human. Admittedly, it's not on MY list, but that's just me. Popularity isn't the end of things, nor is it set in stone. Agda or TLA+ aren't very common, but neither are problems they are meant to solve. Neither is Verilog, but it's not even an alternative to anything popular. And Ruby wasn't popular before Rails. Then it was, then it wasn't again. I thought that I was done with Java, but then Android became a thing. I guess you get the point.
…I think I'd like if there was only 1 language for everything, but I don't think it's even remotely possible, because then there would be different dialects of that EsperantoPL, different frameworks or ways to use it, and people would never agree on 1 thing anyway.
All the world is not a web app...
Yeah, like for instance: nobody knows or wants to know PHP.
A language of a somewhat more sophisticated design can make it harder to find developers but let you need much less.
E.g. Scala (which, contrary to the myth, has great learning curve and readability as long as you don't insist on making heavy use of the really weird parts - they are entirely optional) vs Java can easily boost productivity 10 times. Scala code usually is less verbose and works perfectly once built successfully - ~99% errors are detected at compile time. I know numerous Java devs who have switched to Scala to solo-dev efficiently, because they have no time to code and debug Java. Kotlin was designed based on the Scala experience to make it even better.
WhatsApp, Facebook Chat used Erlang, and Discord is still using Elixir… make of that what you will, I suppose.
And Ruby / Rails + your frontend of choice is still a ridiculously productive stack to bring up an app, and probably run it at any scale you’re likely to realistically hit (poster child being Shopify)… if you ever get to stage of “scaling problems”, you are at a stage where you’d be rearchitecting parts of your stack regardless of what your original implementation was in.
So in sum, choosing a particular language because of popularity, I think, is not particularly useful framing. I’d say, choose one because it either gives you joy to write in and maps to your thought process well, or because it has a particularly strong ecosystem for the subject matter. Life is too short to program every day in a language that you dislike just because you think it’s the “safe choice” :)
I also wonder how we can define popularity better. Does that mean industry acceptance, number of GitHub repositories, number of StackOverflow questions, number of libraries, developer satisfaction surveys, etc. If you choose different metrics here, different languages and frameworks will appear popular. Svelte for example seems to be on top of some developer satisfaction surveys, but React is still one of the number one choices for frontends. C is the industry standard for embedded, but developers often do not enjoy programming in it.
Not impossible to reverse but very hard, especially since Ruby only has once niche and has not been doing well there.
I haven't had a problem finding Ruby devs, but I haven't had to hire in a couple of years.
When I started the main project I am still maintaining, react wasn't even around yet. It started only 9 years ago, which might seem like a long time to some younger folks, but feels like yesterday to me.
Are you suggesting that languages and frameworks are 'solved' now? That we won't get a new react that changes the ecosystem? How will a new language or framework that makes things easier ever come about if everyone follows your advice?
It just somehow fell behind on the hype curve, mostly because Ruby itself wasn't used for anything else than Rails. Python took its spot in most general use cases.
I'm going with this as the problem statement, and it is a problem, but I submit that being saddled with a technology is a cultural problem, not a technical one. Related: Conway's Law Any organization that designs a system will produce a design whose structure is a copy of the organization's communication structure.
> If you are the person deciding which technologies to use, you should probably be using the most mainstream thing you can, not the coolest newest thing that you read on Hacker News.
This solution does not address the problem statement, and so will sometimes be a good answer, but only by accident, and makes the same mistake as choosing "the coolest new thing on Hacker News". Choosing a technology to address a specific challenge is not always easy or obvious, but takes thought, humility, consideration, familiarity with the options, probably even a team decision. A manager that just top-down decides for the engineers is doing it wrong, whatever they choose.
There's actually a tricky tradeoff here. Many startups working on hard problems can benefit from making one weird technology choice, if it offers them some kind of significant leverage on a previously difficult technical problem.
But when it comes to recruiting, it can actually be an advantage to be using a slightly obscure language. Often, these languages have communities of very skilled early adopters who wish they could use their favorite language at their day job. And especially if your company has a strong remote culture, this may make it possible to hire some extremely talented people.
I do agree that, on average, a company's overall tech choices should be mostly boring. But knowing when a lesser-known tool will offer a big advantage is an art, and it can pay off.
If it's an issue with existing devs refusing to skill up, they can just write their ancient antiquated Java until they retire, it'll still work just fine alongside the new Kotlin code. But in my experience it's rare that even the most institutuonalised Java dev doesn't appreciate the nullability support at least.
However I also think, that time should be spent in non-mainstream languages to learn new programming concepts, and eventually future version of "X, Y and Z" might even get those concepts and thus one is better prepared to apply them.
(But then again your list is also kinda weird. I mean, seriously, it has React but not C++?)
Come out of the reality distortion bubble, please.