Live data from Hacker News

How I decide between many programming languages

drewdevault.com

21–30 of 68 posts

Re: How I decide between many programming languages

#21
post #5

The list may be entertaining, but displays little in the way of objectivity. For instance, OOP is a major con of C++ (even though many people write C++ all day without any of it) but isn't even mentioned with regards to Java and C#? Really?

> OOP is a major con of C++ Not sure what exactly you mean by this, but many people use classes and objects all the time in C++, and see it as a pro rather than a con.

I was quoting the original article, not expressing an opinion on OOP.

Re: How I decide between many programming languages

#22

It seems Drew DeVault is highly opinionated and the opinions are more than 10 years old.

Drew is also one of the most insanely productive programmers currently, serving as lead developer of Sway, wlroots and SourceHut and as CEO of sr.ht.

Re: How I decide between many programming languages

#23
I have tinkered with dozens of languages, yet, when I can choose a programming language and money is on the line, I always ask the following questions:

- Does it have a standard and a good track record for backwards compatibility?

- Is it memory safe? (Bound checking, no pointer arithmetic, etc.)

- Does the runtime have automatic memory management in the form of a tracing GC? How tweakable is it?

- Does it have kernel thread support?

- Does it have a centralized package repository?

- If typed, will the type system assist me in defining the business domain? Does it have type inference?

- If dynamic, will the development experience allow me to experiment, inspect and redefine stuff at runtime?

- Can I distribute my programs as a binary or dump everything onto an image?

- Can I go low level when it matters? How's the FFI experience and overhead?

- Does it run on the major operating systems?

Things I don't care about: Syntax, static vs dynamic typing / OOP vs FP religious wars, community size or "niceness", library count, logos, on-boarding experience aka the possibility of hiring cheap juniors.

Cute mascots are nice though. We need more of that.

Re: How I decide between many programming languages

#24
post #4

It’s under the “I don’t like line”, but I came away from this feeling like I should look into Ruby.

All the jobs which recruiters send me all day long seems to tell me to look into ruby. Or do loads of people start projects in ruby, then leave for something else?

Re: How I decide between many programming languages

#25

Earlier quoted context omitted.

> OOP is a major con of C++ Not sure what exactly you mean by this, but many people use classes and objects all the time in C++, and see it as a pro rather than a con.

I was quoting the original article, not expressing an opinion on OOP.

Oh shoot, sorry for the confusion. I guess that's a sign I need to go to sleep...

Re: How I decide between many programming languages

#26

Man, if one of Go's pros is "good package manager", I'd hate to see what terrible package managers he's experienced. Seems weird to call out Java package management as a con in comparison. I love Scala's type system, though, I suppose if I didn't have a very good CS degree I'd hate it. I think it strikes a good balance between powerful and usable.

Java doesn't come with a package manager out of the box so most projects seem to go with Maven. If you've tried to understand a project with multiple pom.xml's then for me putting it in the con is a good call.

While this is true, it's not an inherent problem of maven, it's an inherent problem of dependency management is f*cking difficult™.

Re: How I decide between many programming languages

#27
> C++

> Pros: none

> Cons: ill-defined, far too big, Object Oriented Programming, loads of baggage, ecosystem that buys into its crap, enjoyed by bad programmers.

This is just rubbish. Fair chance the author wrote this with the help of C++ (your OS or browser maybe?). And I enjoy C++ and it's eco system as well, compared to other languages. So that makes me a bad programmer? I'm surprised people are taking this post serious.

Re: How I decide between many programming languages

#30
post #8

"every PHP programmer is bad at programming, the language is designed to accommodate them with convenient footguns (or faceguns) at every step, and the ecosystem is accordingly bad. No, PHP7 doesn’t fix this. Use a real programming language, jerk." This guy seems like a real open minded person who did his research and shared his opinion after making strong points. /s

yep, stopped reading after this. How can this be objective if you think that everyone is a "bad" programmer that uses this or that language, wtf. Pros for PHP could be, it's templating capabilities with HTML, easy to use DB interfaces and the entanglement with the web/HTML/web-server in general. Nowadays you don't really write these kinds of apps anymore where your backend returns whole HTML Pages but that doesn't me…

Same. Also I'd add low entry barrier and maturity of interpreter.

Of course, this comes at a price. But saying PHP has no pros is quite subjective

Post reply on HN