Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×

Comment Re:I'm going to assume that was hipster irony. (Score 2) 91

Smart programmers don't reinvent the wheel just because they can.

Then why are you using jQuery?

For the bulk of real-world jQuery use, you can use getElementById, querySelector, and querySelectorAll. Take a look around the web. It's disturbing.

Moving on, for stuff like animations, smart programmers use lightweight special purpose libraries rather than slow, bulky, buggy general purpose library like jQuery. Even better: When they can, they use CSS instead! Instead of jQuery + some heavy-weight plugin for a dropdown menu, you could do the same thing very quickly with some simple CSS. The result will be faster, lighter, and easier to maintain. (If you don't understand CSS, there are tons of generators online.)

What about Ajax? Again, vanilla JavaSript is the clear winner. A few lines of simple and easy-to-maintain code is all it takes. As a bonus, your code will be infinitely more readable, and won't break when jQuery makes it's regular set of breaking changes.

Aside from the obvious performance benefits you get from dropping jQuery, you also get MUCH more readable code. Nothing is worse than "optimized" jQuery as far as readability is concerned. Under the unlikely assumption that you actually save time during initial development, you'll easily lose it all maintenance.

What about supporing old browsers? Well, jQuery is dropping support for IE6, 7, and 8. Have fun with that.

Comment Re:That explains things (Score 1) 91

No kidding. JQuery Mobile is ridiculously slow.

You'd be crazy to use an inefficient and over-weight library like jQuery anyway. Adding jQuery mobile to that is just asking for trouble.

Let's face it: jQuery has long outlived it's utility. It's not even viable for dealing with old browser compatibility issues on the Desktop.

Just learn JavaScript. Your users will thank you. I'll bet that you'll even ultimately save time and effort as you'll spend less time trying to squeeze acceptable performance out of Resig's cludge -- and less time trying to debug the nasty one-liners you're forced to write to get those tiny improvements.

Comment Re:I can't imagine this is worth it (Score 1) 146

I figure they intend to profit on the documentary, not whatever they manage to unearth. Prices are up right now (thanks to the AVGN movie and the documentary project) but you used to be able to pick-up a pristine copy of E.T. (with box and manual) for less than $5. They'd have to be crazy if they thought they could profit from that.

There may be a small market for E.T. carts actually unearthed from the legendary landfill. The history would make the piece much more interesting.

Comment Re:depends on what you're going into (Score 1) 656

My understanding of the benefit of closures - which could be wrong - is that you capture the state of the program at a given point for use later.

That's where they seem to appear most often lately as more people are discovering (read: forced to deal with) asynchronous programming. Unfortunately, modern languages haven't caught up to the antique ones yet, so we're waiting for old solutions to be reinvented and implemented!

I don't know that capturing state is a safe way to think about it. (Maybe even a little dangerous, depending on the language you're using) You're right in that closures are often used to get data to a function that's to be called later -- arguably a legitimate use if the language doesn't offer a reasonable alternative. If you think in terms of capturing state, however, you're just asking for trouble. Take this famous example in JavaScript:

for(var i=0; i<5; i++)
{
setTimeout( function() { console.log( i ); }, 1000);
}

If you think that you're capturing (I'm reading that as "preserving") state, you'll expect the output to be 0 1 2 3 4. In reality, the output will be 5 5 5 5 5 as all of your anonymous functions close over i. Your loop will long be over by the time your functions are called, at which point i will be 5. To make this really clear, you can add i++; to the end of the anonymous function to get the output 5 6 7 8 9.

Granted, in some languages this isn't the case. In others, like c#, it's actually changed. (Really, in c#, the output of a similar example is different from what is used to be.)

Anyhow, I don't want to say that closures are inherently bad (they're necessary or otherwise useful in some languages) it's just that they're best avoided in many modern languages for the reasons I gave and many others.

My grouching is all about what is practical, after all, which seems to be in the spirit of the question at the top of the page.

the Object Oriented Programming Language craze was in full swing

Yeah, we really took a step backward there. I blame marketing. Had we trusted the research over the brochures, OOP would have died in the 80's. Fortunately, people are starting to see that its not the panacea they were promised, which may explain the trend toward "multi-paradigm" languages and the recent interest in functional languages.

I'm a fan of simplicity. Bolting on extra features (like c# has been doing) just increases complexity; the promised benefits, naturally, are dubious. Some of the things you mention in your earlier post, like referential transparency, give you simplicity for free -- no extras needed. That's always a good thing.

Comment Re:No, because (Score 1) 127

2600's are really inexpensive as they're ridiculously common. You can snag one with a bunch of games in good condition for $50 easily. A quick check on eBay shows a heavy sixer in beautiful shape, with pristine looking box and 20 games (also in near-perfect boxes) going for just over $100 bucks

A Nelsonic Pac-Man watch (LCD game) in okay shape will easily set you back more than that!

Even my Odyssey only cost me $200 bucks, and it included the original shipping box, chips still wrapped in plastic, etc. Even they're not rare enough to fetch a good price. (To be fair, I would have paid more had I found it on eBay and not at a flea market.)

The Apple I is a special case due to its extreme rarity, history, and Apple's current popularity. Even Apple II's have shot up in price recently, though you can still put together a complete system for $400-$500.

Contrast the Apple I with the Kenback-1 (which is much older and similarly rare). On the rare occasion they appear, they'll only set you back 10-15k -- Apparently they won't go up to $30k, even with all the interesting extras in Robert Nielson's rather compelling auction.

The point? "Old" and "interesting" alone aren't enough to get collectors to shell out big bucks.

Comment Re:depends on what you're going into (Score 1) 656

I should probably point out that my intent wasn't to attack functional languages. Also, I feel the need to mention that points 1, 2, and 3 aren't in any way restricted to functional languages.

Anyhow, my point wasn't that functional programming is bad, just that it's currently a fad. (Not a new one, of course, we've been down this road before.) In general, functional languages are really neat, but terribly impractical. Closures are all the rage right now (a result of the current functional hype) even though they're poorly understood, difficult to read / identify (in many modern languages, that is) and have extremely limited utility. To call them essential, particularly in this case, is more than a little silly!

Just for fun: If you want to see a really neat functional language, check out Joy. It's a purely functional language, but it's not based on lambda calculus. It's very cool.

Comment Re:depends on what you're going into (Score 1) 656

GoF is, well, worse that nonsense. (Ask Dijkstra) I have no idea why people treat that waste of time like the damn bible. (This is to say nothing of the many, many, problems that terrible tome as caused!) Closures? No one cared about them for years, despite how long the concept as been around. Their use in mainstream languages is extremely limited (in terms of utility). They're best avoided -- even in languages like Javascript. Take a look around. You'll find most people don't understand them, often confusing them with anonymous functions! Functional programming is a bit of a fad right now, which has spawned this recent ridiculous interest in closures. It'll pass, just like the last time, and for the same reasons.

On topic, the parent is studying computer science, where math is essential. CS is math, after all. Quoting Fellows & Parberry:

Computer science is no more about computers than astronomy is about telescopes, biology about microscopes, or chemistry about beakers and test tubes.

See, the parent (for reasons beyond my comprehension) wants to write software for a living. He clearly has no interest in CS. This confusion isn't necessarily his fault as CS programs have been turning in to trade schools at an alarming rate.

Comment Re:You're the one who needs to wakeup (Score 0) 330

People who think that ANYTHING they get on a COMEDY channel from two Democrat SATIRISTS (Stewart and Colbert) is actual NEWS are fools.

Probably. I should point out, however, that those fools are still far better informed that Fox News viewers. Sad, isn't it?

Study Finds Fox News Viewers Least Informed Of All Viewers

Comment Re:He built an Alpha in 30 days (Score 4, Insightful) 266

I had a project featured in PCWorld and NetworkWorld last month. While I'm not the parent, I think I understand his point and can speak from a better position.

Why all the hate? It looks like a brag on the part of the developer, intended only to impress people who don't know anything about development.

Considering the long list of bugs, missing features, and (lofty) promised utility, it's pretty obvious that this guy is a long way off from completing the project. He didn't write an office suite in 30 days, he started writing an office suite 30 days ago!

It doesn't look like Network World put the spin on the project. The arbitrary 30-day time frame was clearly a goal of the project -- not for extra challenge, but to make it appear more impressive. It's deceptive and dishonest.

As many Slashdot users know, it's not difficult to tell when a personal project is going to get some press. This looks like it was tailored specifically to get that kind of attention. That really bothers people.

So, we've got a not-that-impressive project from a less-than-respectable arrogant press-monger.

A lot of people here also think that they could do a *better* job given the same constraints. A cool project should make you go "how'd they manage that?" not "I could easily do better."

I don't know that "envy" is the right word for that so much as "injustice". After all, we've seen tons of cool personal projects on Slashdot that get little other than praise. If envy were driving the hate in this case, wouldn't we expect to see a similar reaction to other personal projects?

Submission + - Apple 1 sells for $671,400, breaks previous auction record (paritynews.com)

hypnosec writes: What is believed to be one of the six working Apple 1 computers has fetched a whopping $671,400 for its current owner at an auction in Germany. The Apple 1 system was built by Steve "The Woz" Wozniak back in 1976 at Steve Job’s parents’ garage and is probably either from the first lot of 50 systems ordered by Paul Terrell, the owner of Byte Shop chain of stores or part of the next lot of 150 systems that the Steve duo built to sell to friends and vendors. The retail price fixed for the Apple 1 at the time was $666.66 with a 33% markup.

Slashdot Top Deals

Genetics explains why you look like your father, and if you don't, why you should.

Working...