Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×

Comment Re:Anything for work (Score 1) 239

I write game code in c++, so the expectation is anyone coming to work on the code has a pretty decent level of skill in c++. I early out whenever it makes sense, but obey the "one return" rule is there is nothing to gain from short-cutting the evaluation path. Game coders are used to multiple returns, so it's not a big deal for them.

Comment Re:Anything for work (Score 1) 239

+1 for the 'why' remark.... ...i'd also add, that it should explain semantics when needed, out of bounds logic, reasoning where it isn't obvious, and addendums to what the code is doing.

I'm a firm believer that you should be able to page through code reading only the "green code" in order to understand what is happening.

Where code perfectly expresses the algorithm / concept, few comments are needed...but the rest of the code should be commented to hell.

Comment Re:Ahem (Score 1) 348

"I''ve heard on various occasions that even people forced to use windows for a text writing job are more productive when using their own favourite editor, like vi, then importing the result into the fancy wysiwyg thing supposed to be used, and finishing up with some formatting work. You too could install a fave text editor and use that. What's stopping you?"

The 80s were over 30-35 years ago.

Comment Depends (Score 1) 286

If I've jumped out of bed with some cool ideas still in my head it is the pen and paper sitting at all times on my desk. This is a habit from the days when it was taking 5 mins to boot into a working Windows 7 desktop and the ideas might slip away in that time.

After that I expand the ideas out and write them into markdown or text files and save them to a folder on my Google Drive. That way I know they are permanently backed up offsite immediately. It's free, available on every major platform and easy to copy around.

Finally, when time allows, I write them up properly into markdown and place them into the Git repo which the idea relates to. So now I have permanently offsite backed up thoughts / designs in a Git repo which I can diff at any time to see what changed and when.

I have Evernote and Google Notes and never use the damn things.

Comment Create? (Score 3, Informative) 138

Do the people who use a Chromebook create anything or are they simply consuming web content? If they are consumers, there is literally no reason to create a Pro version of the device.

If they actually create lasting useful content that has meaning, then perhaps there is a reason to have a Pro version of the device. I'm doubtful.

Comment Re:Whut? (Score 1) 365

A "hill-start" is part of the standard driving test over here in Australia. That means coming to a stop on a steep hill, pulling on the hand brake "emergency brake" and then pulling away cleanly without rolling backwards or riding the clutch. Maybe some other countries need to ensure their drivers can also do this simple manoeuvre.

Comment Re:Whut? (Score 1) 365

I don't think anyone here is debating the fact that you need wheel chocks when launching a boat on a steep boat ramp. That's just common sense. At least, I hope no-one is debating it. But at least we agree, your vehicle is facing up the ramp, it's in first gear, the engine is off *and* you placed chocks under the wheels to stop the obvious from happening.

Comment Re:Ever heard of the parking brake? (Score 1) 365

You probably don't ride a motorbike so you don't know that there are in fact a couple of different options for the gears, depending on the make of the bike.

https://en.wikipedia.org/wiki/...

Older British bikes have gear change on the right foot, Japanese and modern bikes have it on the left foot. Common is one down, 3-5 up. Your foot brake may be on the other side than you are used to, depending on the make of bike.

Most bike riders are aware of the differences and it doesn't take very long to adjust.

This guy was just oblivious to how his car worked and he paid the price for stupidity. Even just pulling on his handbrake would have saved his life.

Comment Whut? (Score 5, Informative) 365

OMG, have you been driving a car with no idea what he handbrake is used for? I drive a manual, and have for about 30 years now. It's a preference, but I still know that every single car I've ever driven, and this is hundreds of them of all sorts...all have a handbrake - which you might call an "emergency brake".

When you park your car you are meant to:

* turn off the ignition
* drop it into first gear if a manual or park if an auto
* pull on the handbrake

None of those steps are optional.

Slashdot Top Deals

"Survey says..." -- Richard Dawson, weenie, on "Family Feud"

Working...