Live data from Hacker News

What programming languages are used most on weekends?

stackoverflow.blog

291–299 of 299 posts

Re: What programming languages are used most on weekends?

#291

You don't use recursion or pointers professionally? On what world are you considered a real world programmer?

Personal attacks are not allowed on Hacker News. I realize you might have just intended it as a rhetorical question, not a personal attack, but the internet doesn't do such fine distinctions. Please just keep away from that rail.

We detached this subthread from https://news.ycombinator.com/item?id=13596131 and marked it off-topic.

Re: What programming languages are used most on weekends?

#292
post #283

Earlier quoted context omitted.

So that others don't have to spend time searching: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

What does that example prove, other than the two methods aren't compatible? If a properly designed method were passed into map it would work fine. In essence: ["10", "10", "10"].map(Number)

The link just explains why it's happening, I'm not passing judgement on whether it's bad or not.

Re: What programming languages are used most on weekends?

#293
post #147

Microsoft should really take note of that. That's a huge tick on their woefully uncool meter. Developers, developers, developers, developers don't want to use Microsoft gear unless they're being paid, it would seem.

I think part of their problem with weekend developers stems from dropping VB6. They used to be "the largest block of developers in the world" [1] and then around 2003 they made

"... Visual Basic.NET not backwards-compatible with VB 6.0. This was literally the first time in living memory that when you bought an upgrade to a Microsoft product, your old data (i.e. the code you had written in VB6) could not be imported perfectly and silently. It was the first time a Microsoft upgrade did not respect the work that users did using the previous version of a product." [2]

Personally I'd hate that stuff. Probably why most of the weekend languages are open source and can't be discontinued by some corporate overlord.

[1] https://blog.codinghorror.com/the-slow-brain-death-of-vb-net...

[2] https://www.joelonsoftware.com/2004/06/13/how-microsoft-lost...

Re: What programming languages are used most on weekends?

#294
post #128

Earlier quoted context omitted.

I like Perl a lot better than awk, buy I do agree with the general sentiment of using the language that makes for the clearest code for the task at hand, especially the smaller ones. Which makes me a frequent awk proponent. So I'm surprised at the following part of your comment: > There is no reason to use perl in situation when awk kicks its butt with clearer, shorter code free of distracting author and other line n…

But in a lot of ways awk seems way more modern than Perl (Perl 5 at least). You actually have functions with parameters rather than having a weird @_ array that you need to shift values from. Honestly, if I didn't know otherwise, I'd think awk came after Perl.

Functions with parameters in a () is already in Perl 5. Search for subroutine signatures.

http://perldoc.perl.org/perlsub.html#Signatures

Re: What programming languages are used most on weekends?

#295

Earlier quoted context omitted.

True, defeats the idea of a one liner in bash/awk/sed.

Well the beauty of one-liners is that they're quick and dirty. They don't need to be portable, you don't usually maintain a one-liner for years. If you need something portable, you should use a real cross-platform language like Perl, Python, etc. Something that's independent of the OS you're running.

"Well the beauty of one-liners is that they're quick and dirty. They don't need to be portable, you don't usually maintain a one-liner for years."

Given that description, I'd agree. Now I understand the crux of the problem, problem solved using disposable code in terse language or script.

Re: What programming languages are used most on weekends?

#296

Earlier quoted context omitted.

Interviewer: sort this file of 1,000 names. Here's a Linux laptop. Candidate 1: writes some Python code Candidate 2: writes some C++ Candidate 3: runs "sort names.txt"

I'm pretty new to the industry, being young, but as soon as I got a machine to run a Linux VM on, I spent hours reading docs and man pages and books on Bash and general *nix commands. Definitely helped me become a better programmer. It's amazing what you can do with simple POSIX commands. I didn't even know about sort until now, but it'll help me a bunch now.

Run `info coreutils` and get a general sense of the tools available. There are things you'll use all the time like sort, uniq and wc. Things you'll use occasionally (`foo | column -s $'\t' -t` reads all the lines of standard input, splits each on a tab and then lines everything up in nice columns) and things you might rarely need, but when you need them they're amazing: tsort, for example, is really useful for managing dependencies in certain circumstances.

Re: What programming languages are used most on weekends?

#297

Earlier quoted context omitted.

I can't tell, I know many developers today who are on the new shiny js thing, golang, elixir, scalar, rust train, but they never got really good in their first language be it Java, python, or php. They use linux or OSX. But they don't know awk/sed/bash, give em a very simple problem, they would write 1000 line of OOP, united test code when a few line of scripts would solve it. I know many programmers, who graduated w…

Interviewer: sort this file of 1,000 names. Here's a Linux laptop. Candidate 1: writes some Python code Candidate 2: writes some C++ Candidate 3: runs "sort names.txt"

Although, it'd be fairly simple to do this in python:

python3 -c 'import sys; list(print(line.strip()) for line in sorted(sys.stdin, key=str.lower))'

Re: What programming languages are used most on weekends?

#298
post #95
post #65

Earlier quoted context omitted.

No way - I used unity for two classes in college, one elective and one non elective. I know of at least 2 more available as well.

just curious, what classes were they? I believe my university uses Unity for the VR classes

The first was part one of a graphics sequence. That class goes on for at least one more, although I stopped after the first one because it wasn't really my cup of tea. The second was one of the project courses required to finish the degree - it was also part of a two part series.

Re: What programming languages are used most on weekends?

#299

You don't use recursion or pointers professionally? On what world are you considered a real world programmer?

Must be using C++ with references instead of pointers. Or perhaps variadic templates where you don't explicitly recurse - the compiler does the peeling of parameters for you...

I chuckled. I think OP and others in the thread completely missed the point.

If you use a language with references, you're using pointers. I never said pointer arithmetic, dereferencing etc.

Same with recursion. Yeah, implementing recursive calls in a language like Java is dumb. But tail recursion isn't. Nor is using an equivalent of a recursive algorithm using a stack or queue.

If you don't think about these things, or don't know whether you do... you may be writing PHP

Post reply on HN