Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror

Comment Re:"if (0 != variable)" is for wimps (Score 1) 1422

I tortured myself for years by witting (666==x) and it never became natural. I suppose the counter argument is that when (x==666) slips out my fingers I immediately notice it. Whereas (x=6) is easy to miss. afaik, every compiler warns about it now, so yeah, it is better to devote your brain to more important things.

0==strcmp is not bad though. Anytime a small thing and a big thing are related to each other it is good to have the small thing first. It saves time when mentally parsing it. Same with 'if' statements. If one of the blocks is just a couple lines and the other is huge, the small one should be the 'then'.

Security

Journal Journal: Not root... Day 0 1

Come on, all the cool nerds are doing it. It's easy:
  1. Right click My Computer, select Manage
  2. Navigate: System tools, Local Usrs & Groups, Users
  3. Double click your username
  4. Click Member of and delete Administrators and/or Power Users
  5. If it isn't already there add the group "Users"

Kinda gives you a warm fuzzy feeling. Might as well reboot now, just to make sure your status is updated.

Security

Journal Journal: Who needs root?

It is well known that regularly running as root (Administrator) is a bad idea(tm). Even experienced users can make mistakes. The root account bypasses almost all security, thus the computer can not defend itself from PEBKAC. Despite this common knowledge, Windows still puts user accounts in the admin group by default.

Slashdot Top Deals

HEAD CRASH!! FILES LOST!! Details at 11.

Working...