You don't use recursion or pointers professionally? On what world are you considered a real world programmer?
We detached this subthread from https://news.ycombinator.com/item?id=13596131 and marked it off-topic.
291–299 of 299 posts
You don't use recursion or pointers professionally? On what world are you considered a real world programmer?
We detached this subthread from https://news.ycombinator.com/item?id=13596131 and marked it off-topic.
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)
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.
"... 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...
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.
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.
Given that description, I'd agree. Now I understand the crux of the problem, problem solved using disposable code in terse language or script.
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.
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"
python3 -c 'import sys; list(print(line.strip()) for line in sorted(sys.stdin, key=str.lower))'
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
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...
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