Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!


Forgot your password?
DEAL: For $25 - Add A Second Phone Number To Your Smartphone for life! Use promo code SLASHDOT25. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. Check out the new SourceForge HTML5 Internet speed test! ×

Comment Re:Only relevant (Score 1) 259

They do more than just strip out the whitespace. JavaScript minifiers will also rename function scoped variables into shorter versions (i.e. a, b, c, etc). The Google Closure Compiler will even do some code rewriting optimizations:

The Closure Compiler compiles JavaScript into compact, high-performance code. The compiler removes dead code and rewrites and minimizes what's left so that it downloads and runs quickly. It also also checks syntax, variable references, and types, and warns about common JavaScript pitfalls. These checks and optimizations help you write apps that are less buggy and easier to maintain. You can use the compiler with Closure Inspector, a Firebug extension that makes debugging the obfuscated code almost as easy as debugging the human-readable source.

As someone has already said, all JavaScript libraries are usually distributed with the original unminified source, so not being able to debug it is your fault alone.

Comment Re:GPL Violation? (Score 1) 504

I don't know about these kinds of tactics. If you make a big deal about this, then you'll likely end up burning bridges. You need these people as a reference later in life. Since most new graduates are having a hell of a time finding work right now, you can't afford to be dicking around. You might win in the short term, but you'll lose in the end.

Comment Re:How many ways are there to do simple things? (Score 2, Insightful) 694

Exactly. Reasons like those explained the GP and the subsequent replies are the reason we end up with bloated code with hundreds or even thousands of unused methods/functions/classes/etc.

"What is this function used for?"

"Oh, because I know that the next feature we add here will need this."

This is not a valid excuse. Anybody who has spent a month working in the industry will know that product managers change their minds on a minute-by-minute basis. Don't waste my time by putting in code that I will end up reading, deciphering, and eventually find is not even used.

Comment Re:Ego (Score 4, Interesting) 344

Exactly. I'm a professional UI developer and I used to contribute to open source software quite a bit back in the day. I don't contribute much these days mostly because of lack of free time to do so, but this was a major point of contention for me.

The biggest problem is that the programmers have trouble accepting advice for changes to the product they've poured their blood, sweat, and tears into. I've found for the most part that many open source projects are over complicated. One of the best ways to improve the usability of a product is to simplify it. You need to remove or conceal the features that are rarely used. Unfortunately, those features tend to be the hardest to implement, so the person who implemented it wants to make sure people know about it. It's not unexpected that they wouldn't be happy if you suggest that it be removed.

Slashdot Top Deals

We don't really understand it, so we'll give it to the programmers.