Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×

Comment Re:People just doesn't get it (Score 2) 536

You could possibly be looping through an array or reading lines in a data file (such as CSV) and have some elements or lines with errors that you just want to handle and keep processing. Exceptions would be a bad choice here. You assume if one entry is bad, they all must be, which is almost never the case. I code for a company that deals with huge (million+ entry) data sets. Using and dealing with exceptions is to be avoided when possible. If you think 4ms is trivial, I would not trust you to write any of our performance code.

Comment Re:caught (Score 2) 536

I'll take good comments explaining difficult to read code over using exceptions to make it "appear" more readable any day. Exceptions should only be used when the code has no way to recover from the error gracefully. They should not be used to improve readability. That's what comments are for. Now, I'm not saying every trivial line should be commented, but blocks of code that are complex should at least have the intent of the code commented, so no one later on changes its behavior unintentionally (yes, there should be unit tests for that...)

Comment Re:People just doesn't get it (Score 5, Insightful) 536

I believe the reason for not wanting to throw exceptions unless really needed is that exceptions (and their handling) are relatively expensive and resource intensive operations. Most languages when exceptions are thrown do a lot of runtime stack analysis to, among other things, get a full stack trace. There are many research links on the interweb explaining how expensive it is in whatever language you happen to be using, but here is the first link I found: http://stackoverflow.com/questions/1282252/how-much-more-expensive-is-an-exception-than-a-return-value

In the case of the .net runtime, throwing an exception was > 1000x as expensive as using a return value, in processing time.

Comment Re:Many of the same flaws, some new ones (Score 1) 295

For example, it insists on sorting artist rather than composer in many views.

Have you tried playing with the sort options under the "View -> View Options" Menu? This menu has a drop-down that lets you control the primary sort, and a sub-section to refine how to sort beyond that (including "sort composer"). Perhaps this is the option you want?

Comment Re:Too bad Apple doesn't make SW like their HW (Score 1) 295

Apple didn't write the original iTunes. Apple bought SoundJam MP from Casady and Green. I still remember using SoundJam fondly. For its time, it was way ahead of the curve (which is why Apple bought it, I'm sure). SJ and iTunes are similar, but iTunes was redesigned as a store as much as a music player. SJ just wanted to help import, organize, and play music.

Comment Caller ID (Score 2) 614

Isn't the main problem that it is trivial to fake or block the real caller ID? If this was fixed, finding the actual source of the calls for prosecution would be straightforward. Right now, they are forging the numbers in a way even the phone companies can't seem to find the origin for the calls. That seems like a problem... and a solvable one.

Comment Re:Unsubstantiated Rubbish (Score 2) 272

I wouldn't call this any kind of breach of privacy as none of the information is personal. An account name can only be matched to a real name by Blizzard and only if you play on their servers.

Or you have a dump the hackers made of their client list, which contained screen names as well as other info. They could then use this hacked info to get to any of the other data, especially by someone who posted a screen capture online. Using the leaked DB could tie that screen capture to MUCH more data.

Comment What about Facebook? (Score 1) 104

With all the government scrutiny over the FB IPO, perhaps they traded the data collected by their iPhone app, even if this was obtained from a government computer? Possibly some similar scenario with a different company? These IDs could have come from anywhere, any app. Maybe AT&T?

Comment Re:The word "Worst" is relative (Score 0) 535

Gary Johnston: We're dicks! We're reckless, arrogant, stupid dicks. And the Film Actors Guild are pussies. And Kim Jong Il is an asshole. Pussies don't like dicks, because pussies get fucked by dicks. But dicks also fuck assholes: assholes that just want to shit on everything. Pussies may think they can deal with assholes their way. But the only thing that can fuck an asshole is a dick, with some balls. The problem with dicks is: they fuck too much or fuck when it isn't appropriate - and it takes a pussy to show them that. But sometimes, pussies can be so full of shit that they become assholes themselves... because pussies are an inch and half away from ass holes. I don't know much about this crazy, crazy world, but I do know this: If you don't let us fuck this asshole, we're going to have our dicks and pussies all covered in shit!

-Team America: World Police

Comment Buy local (Score 1, Informative) 266

Fry's Electronics had a 23" IPS Asus display for $270 (granted it is ONLY 1920 x 1080, but it has a fab 5ms GTG response rate). I got the last one they had in the store. I wasn't sure how much of an improvement it would be, but as someone who sits in front of a screen all day for my job, it sure is a nice improvement. The 3D support built-in with polarized glasses is a bonus.

So.. my only point is you don't necessarily need to go through some nefarious eBay listing if you look hard enough for deals, and support your local economy more than sending money through PayScam and the like...

Slashdot Top Deals

Suggest you just sit there and wait till life gets easier.

Working...