Live data from Hacker News

One month command line challenge

blog.expertinamonth.com

41–48 of 48 posts

Re: One month command line challenge

#41

This is the perfect example of the whole hipster culture making it's way into web and software development. I literally expect to see people like this writing about how they're experimenting with punch card input any day now.

precisely. any good ide has an embedded console/shell interface anyway. falling back to the command line is necessary/useful occasionally. but abstaining from visual interfaces for a month seems pointless.

Re: One month command line challenge

#42

I'm not sure how I feel about the sort question being a super simple "fizzbuzz" type command line question in an interview. The problem with some of the CLI stuff is that its really a simple yes/no "do you remember that command name" type thing. For something like grep that makes sense. But as somebody who also lives in the terminal, I have mixed feelings about expecting things like wc, sort, xargs, etc out of a pote…

Yeah, "sort" is a super esoteric name...

(I probably agree with you more than I disagree, and I'd rate "can read a man page" more important than "remembers -n for sort", I just thought the particular objection somewhat humorous)

Re: One month command line challenge

#43
"Of course, you can use your browser and media player etc, but for all other tasks such are writing and editing files, copying files, launching programs etc, you must use the CLI exclusively."

Although, forgoing the web browser might do more for your productivity than anything else...

/me closes HN

Re: One month command line challenge

#44
"If you don’t know how to do a certain task with the command line, you can look up the man pages or look it up online."

If you know the name of the command you need, read the man page. If you don't, search for the man page using apropos. If you don't know how to use apropos, read its man page.

Re: One month command line challenge

#45
post #16

Earlier quoted context omitted.

Heh, I got rejected once, a long time ago, for almost exactly this. I was asked to whiteboard a C function to convert an ascii character to an integer, and I wrote one that just returned the result of atoi(). I thought it showed knowledge of the best way to get the job done, but I guess they disagreed.

How does a rejection like that work in practice? Was that the question the interview hinged on? A reasonable interviewer could just say "Alright, now can you do it without using the standard library?".

I should be clearer. They didn't specifically reject me for that. There was just a sense that the interview wasn't going well from that point forward. They may just have felt that their request was clear and my response was smart-assed, and in truth that is probably fair.

Re: One month command line challenge

#46
post #23

Meh. It's useful, but the "no true scotsman" argument is just wrong. Coding solutions is usually better in the long-term. It's why Perl was invented. Command-line is all about learning thousands of arcane details that anyone can just google the answer to.

I tend to agree. There have been approximately zero times I've been given a file with 100,000 numbers that needed to be sorted. Similar tasks are honestly rare enough that my intermediate command line skill has gotten me by just fine. Every once in a while a complex task pops up but I just google it and figure it out fairly quickly.

Re: One month command line challenge

#47
post #12
post #7

>Many candidates will immediately start writing a program in Java or Python, if they get it right, then they will start optimizing the algorithm > and in most cases programmers who are comfortable with the command line version are also the ones who are better at writing code These two statements indicate to me that you are ineffective at communicating what skills you are looking for in a programmer. The reason they a…

Hi OP here, I am sorry! I should have added more context to the post. I have never rejected candidates solely on this basis. Its just that I appreciate programmers who think of simpler solutions first.

Have you asked them why they are started to writing a code in first place? Maybe, since it's a programming interview, they thought you are trying to measure their theoretical knowledge than their practical day to day knowledge.

You should probably reword your question and give a hint that a candidate can use any available tool. If it's a programming interview my first instinct would be writing a code, if it's a sysadm interview I would use available tools in the system.Context is important...

Re: One month command line challenge

#48

This is the perfect example of the whole hipster culture making it's way into web and software development. I literally expect to see people like this writing about how they're experimenting with punch card input any day now.

What exactly is hipster culture in this context? The challenge seems like a good way for some people to learn something new. If you are familiar with the UNIX tools you can solve some problems faster than without them.
Post reply on HN