Ask HN: What “old” programming languages will you still be using in 2017?
301–310 of 502 posts
Re: Ask HN: What “old” programming languages will you still be using in 2017?
#302Earlier quoted context omitted.
Any suggestions for a bash scripting tutorial to help me better connect the dots? Over the years I've learned some nifty one-liners, but I'm not really familiar enough with the patterns and art of of command-line thinking to solve my own problems in bash. Most of the bash resources I've found online are just loosely organized collections of magic spells. I'd really like to get better at it though.
I would recommend two things: 1. Read the "bash" man page about once a year, and 2. Learn Perl or Python or something for the harder tasks. It's helpful to learn some more about bash, and there's some good stuff in there. But shell scripts above a few dozen lines tops are a bad idea, and even those "few dozen" lines need a surprising amount of armoring with "set -e" and such. I don't think this is because bash is bad…
Re: Ask HN: What “old” programming languages will you still be using in 2017?
#303Re: Ask HN: What “old” programming languages will you still be using in 2017?
#304Earlier quoted context omitted.
I love sql myself. I'm not sure why I love it so much and other people hate it. Sometimes I think that coming up with reasons is just after the fact justification (do I really like it because it has a solid mathematical foundation in the relational calculus, or does that just sound like a good reason to say I like it)? Pandas is an excellent contribution to data analysis, but I gotta tell you, I was absolutely deligh…
IF you start to think in a set orientation, SQL makes a lot more sense. If you try to think procedurally you will struggle with SQL.
the concept of a query really seemed odd, it took some mental adjusting. My only programming background was largely in writing procedural code. My brain really wanted to think in terms of methods, functions, inputs, and return values.
It's been so long (18 years since that course), that it is difficult to remember the mindset I was in. It all seems pretty natural now. But you are absolutely right, you do need to start thinking in terms of sets and operations on sets, not in terms of methods with inputs, procedures, and return values
Re: Ask HN: What “old” programming languages will you still be using in 2017?
#305Re: Ask HN: What “old” programming languages will you still be using in 2017?
#306We still use C++ and Fortran at our company.
Re: Ask HN: What “old” programming languages will you still be using in 2017?
#307Re: Ask HN: What “old” programming languages will you still be using in 2017?
#308Lots and lots of C. (I'm mostly an embedded C programmer these days). Some C++ for a bit of higher-level "business logic" that benefits from a class-based approach, but a fairly limited subset of "modern" C++.
For a semi-contrived example, instead of writing a do4Things() and do8Things() to unwind some loops, I can write template doThings() where the int argument is the bound on the loop.
And having things like a universal template toString() that operates on enum classes is nice.
The downside is that it's horribly easy to invoke allocations and copy constructors by forgetting an ampersand somewhere, and the std library isn't well suited to avoiding that behavior either. You have to be vigilant on your timings and occasionally callgrind the whole thing.
The other downside is that your colleagues are more likely to "knit a castle" with ridiculous class hierarchies or over-generalization. ( https://www.infoq.com/presentations/Simple-Made-Easy )
Re: Ask HN: What “old” programming languages will you still be using in 2017?
#309Tcl. It works really well as a cross-platform (*nix/Windows) alternative to shell scripting that doesn't suffer from the same problems as the POSIX shell (see http://www.dwheeler.com/essays/fixing-unix-linux-filenames.h... ). It builds on the same foundation of everything being text but with a few changes to the substitution rules builds something a lot like a Lisp on top of it.
Re: Ask HN: What “old” programming languages will you still be using in 2017?
#310Emacs Lisp. In the past year, I finally switched from vim + a boatload of custom .vimrc stuff using tmux for running random repls to Spacemacs. For both contributing to Spacemacs as well as the few customizations I want, emacs lisp is a welcome departure from my usual vimL. At this point, I can't imagine not talking to my editing environment as part of my daily workflow.