Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror

Slashdot videos: Now with more Slashdot!

  • View

  • Discuss

  • Share

We've improved Slashdot's video section; now you can view our video interviews, product close-ups and site visits with all the usual Slashdot options to comment, share, etc. No more walled garden! It's a work in progress -- we hope you'll check it out (Learn more about the recent updates).

×

Comment: Re:Tabs vs Spaces (Score 2, Insightful) 428

by alexhs (#49426221) Attached to: Stack Overflow 2015 Developer Survey Reveals Coder Stats

I guess that there are multiple reasons.

The most common one is ignorance: most people don't know how tabs are supposed to be used as indentation and indentation ONLY, and how to set up an editor appropriately (and the shell, by the way) (see the other responses to your comment for proof).

The second is lazyness / non-confrontational behaviour: If you settle on tabs, you will have to educate all users about the correct usage, and have to bear with people that just insist on using tabs differently (see point 1). If you settle on space usage, that's about it.

The third reason is that some editors are stupid, because the implementation doesn't know that tabs are supposed to be used as indentation and indentation ONLY, and will (for example) insist on aligning multi-line arguments to a function just after the parenthesis using a liberal amount of tabs.

And then there are some language requirements that like to mess things up, like Makefile requiring tabs and other scripting languages pursuing a vendetta against tabs (like Python).

That being said, I will gladly educate people about tab usage, their ignorance is no excuse for using inferior solutions.

Comment: Re:Reminds of of something at a past job (Score 1) 765

by alexhs (#49315153) Attached to: A Software Project Full of "Male Anatomy" Jokes Causes Controversy

hungHi = (word & 0xFFFF0000) >> 16;

FYI, this is pretty bad. It does exactly the same as:
hungHi = word >> 16;
It is not safe if for some reason word is signed (compiler bug on an exotic platform or some programmer resolving some signed/unsigned warning by doing the wrong thing):
((unsigned)0x80000000) >> 16 = 0x00008000
((signed)0x80000000) >> 16 = 0xFFFF8000

Instead, you should use:
hungHi = (word >> 16) & 0xFFFF;

Comment: Let's see... (Score 2) 177

by alexhs (#49236875) Attached to: Preferred programming paradigm?

Functional

Preferred to dysfunctional, checked.

Imperative

Preferred to submissive, checked.

Logic

Preferred to illogic, checked.

Object-Oriented

Mmh, Notion-Oriented seems appealing, I'm torn on this one.

Other (List in comments)

If you want lists (and parenthesis) you want LISP and no other, period.

Whichever is right for the job

Preferred to whatever is wrong for the job, checked.

No preference

I prefer to have preferences.

Uh.. what did my old graphing calculator use?

BASIC-like says wikipedia, but I wouldn't want to use that for something serious.

Comment: Crystal ball ? (Score 2) 214

by alexhs (#48919923) Attached to: Ask Slashdot: What Makes a Great Software Developer?

can tell fads from technologies that actually endure

And are therefore defined in hindsight.

Critical thinking, not buying anything some software vendor is willing to sell you, is one thing, and betting on the right horse every time is quite another.
At some point, you can't miss the latter by being conservative and only adopting "new" technologies when they're already mature (now, if you had some sort of almanac...). Also to note, "better" does not always mean "successful".

Comment: Re:Lennart, do you listen to sysadmins? (Score 2) 551

by alexhs (#48829289) Attached to: Systemd's Lennart Poettering: 'We Do Listen To Users'

"Well, do you actually take on board the concerns of system administrators and enterprise users?" - what do you class RHEL as?

FTFA:

So we started writing Systemd, and Red Hat didn’t like it at all. Red Hat management said: no, we’re going for Upstart, don’t work on that. So I said, OK, I’ll work on it in my free time.

I class RHEL as "not listened to".

Comment: Re:Quebec Language Police (Score 1) 578

by alexhs (#48724425) Attached to: What Language Will the World Speak In 2115?

Television is télévision.

Borrowing from French télévision, coined by a Rusian scientist.

Telephone is téléphone.

From French téléphone.

Electricity is électricité.

At least that one is right
And Frenchs don't have a word for "entrepreneur", while you're at it.
Maybe you should have chosen better exemples.

English has mostly celtic, german and latin roots, while French has mostly latin and celtic roots, so obviously they share a lots of similar words that Icelandic doesn't, as it's a North-Germanic language, which doesn't mean that Icelandic "borrows" from Norwegian, instead they share common roots.

I bet the human brain is a kludge. -- Marvin Minsky

Working...