Comment on: [Poll] Tabs or Spaces?
Nano is modal too, every time you press Control and such. Remembering the keys to do things comes with practice and actually using them.
Comment on: [Poll] Tabs or Spaces?
Learn Vim. I used to use Nano and then learned Vim and I'm so glad I did.
Comment on: [Poll] Tabs or Spaces?
What the hell kind of shittyass editor are you using that can't be told to automatically insert however many spaces you want when you hit Tab? You code in Notepad brah?
Comment on: [Poll] Do you write hexadecimal numbers in upper- or lowercase?
Uppercase. What the fuck kind of question is this?
Comment on: Today's date is 100/1000/10000 in binary
Maybe for foreigners.
Comment on: TIL: In a numeric system of base 'x', 10 is always equal to 'x'. Binary 10 = 2, Decimal 10 = 10, Hex 10 = 16.
No shit, the values of the digits, from left to right, are multiples of xn, xn-1, xn-2, . . . , x2, x1, x0. To answer your question, anyone who has taken a single computer science class has thought about it.
Comment on: Policheck - Remove the term "whitelist"
lolwat
Comment on: Hiring is Broken... And It Isn't Worth Fixing
I remember the last time some recruiter sent me something about a project some assholes wanted me to complete before they would even consider interviewing me. Never even responded to the e-mail. Hopefully they didn't stay up late waiting for me. Good luck to them with the unemployed end of the totem pole that can't get a job anywhere else.
Comment on: Bored? Go over this text-based RPG I'm making. Tell me exactly how awful my coding is.
lolwut
Comment on: Bored? Go over this text-based RPG I'm making. Tell me exactly how awful my coding is.
I like the theme of this game.
Comment on: Hitler Uses Git
Pretty much. This never gets old.
Comment on: We need more programming challenges. We should start off small: First non-repeating character of a string. Any language you like.
Yeah, I actually like your original algorithm, linear time I believe instead of all the quadratic BS that dominates the solutions here, the Java implementation just made me throw up in my mouth.
Comment on: We need more programming challenges. We should start off small: First non-repeating character of a string. Any language you like.
Post it brah.
Comment on: We need more programming challenges. We should start off small: First non-repeating character of a string. Any language you like.
Pretty sure that's not what he meant. Not least of which because your computer doesn't execute C either.
Comment on: We need more programming challenges. We should start off small: First non-repeating character of a string. Any language you like.
They seem to prefer wowing people with how compactly they can write such shitty code. My own solution could've compressed that entire if-else structure into one line with the ternary operator, but that's not what I cared about.
Comment on: We need more programming challenges. We should start off small: First non-repeating character of a string. Any language you like.
In linear time, because you little bastards are performance-challenged:
#!/usr/bin/env python
word = 'yellow'
locs = {}
for i, letter in enumerate(word):
if letter not in locs:
locs[letter] = i
else:
locs[letter] = None
print(word[min(i for letter, i in locs.items() if i is not None)])
Linear assuming the locs dictionary doesn't fuck shit up. Let's call it linearish. I'm not sure how Python dictionaries are implemented, but even the most retarded implementation on the planet should still only result in the quadratic time that you gits love so much.
Comment on: We need more programming challenges. We should start off small: First non-repeating character of a string. Any language you like.
I was about to say that word for word with a "Brah" in front of it.
Comment on: We need more programming challenges. We should start off small: First non-repeating character of a string. Any language you like.
And this is why nobody likes Java.
Comment on: Apple's Swift comes to Linux | ZDNet
Not interested.
Comment on: As a Linux Developer, do you find the GNOME or KDE ecosystems better and why?
Oh shit, looks like you got me by two years and change. How was it when men were men and dinosaurs roamed the Earth?
Comment on: Does the Go programming language have any future?
I've heard rumors too, but until I see it happen, it may as well have been some drunken blogger making shit up.
Comment on: File extensions: .gz, .tar and tar.gz
There's nothing Linux-specific about tarballs.
Comment on: As a Linux Developer, do you find the GNOME or KDE ecosystems better and why?
This is what comment sections were invented for.
Comment on: As a Linux Developer, do you find the GNOME or KDE ecosystems better and why?
But why.
Comment on: As a Linux Developer, do you find the GNOME or KDE ecosystems better and why?
I started on SuSE 7.2 Professional, after a failed attempt at Debian. Screw both of you guys.
Comment on: Does the Go programming language have any future?
Unless Google crams it down people's throats, why would it ever suddenly start seeing use? Although I would love if they changed Android to Go, because fuck Java.
Comment on: Does the Go programming language have any future?
But tell us how you really feel about it brah.
Comment on: Apollo 11 source code
As if. The project I was on was using Windows XP.
Comment on: Apollo 11 source code
I've worked on code running on our Guided Missile Destroyers. You are correct, you would hate to see what runs them.
Comment on: The Ruby Programming Language community is now under siege by SJW entryists and the trojan horse Code of Conduct
They can make me not ignore them?
Comment on: The Ruby Programming Language community is now under siege by SJW entryists and the trojan horse Code of Conduct
The only correct response to this is "eat shit and die."
Comment on: Executing python. I'm confused.
What are you doing, trying to run the .pyc files? Don't do that, run the .py files. The .pyc files are just a cache for the interpreter.
Comment on: Isn't .NET a weird choice?
Not really, unless you plan on hacking on .NET itself.
Comment on: Isn't .NET a weird choice?
When I decided to join Voat, I opened two tabs: the one to register, and the one to the source code. After taking a glance at the latter for a few seconds, that tab was closed. And moments later I was the opposite of surprised when I saw that the site was shitting the bed. If he actually wants much free help, especially quality help, that was an extremely poor decision.
Subversion.