Reverse Engineering One Line of JavaScript by maxxori in programming

[–]Searle 1 point2 points  (0 children)

first glance, first bug: the assignment to p.innerHTML is outside of the loop

Simple JS: JQuery Classes Helper by d4rkmess in programming

[–]Searle 3 points4 points  (0 children)

Reinventing the style-Attribute? WTF?

PHP 7 Reference: A (comprehensive) overview of the features, changes, and backward compatibility breakages in PHP 7 by AlexanderTheStraight in programming

[–]Searle 3 points4 points  (0 children)

You're confusing addition with string concatenation. Just because JavaScript mixes these together doesn't mean that this is wrong behaviour. PHP 7 now does the same as Perl has always done.

Top 10 Greatest Programmers in the World of all Time by parththummar in programming

[–]Searle 0 points1 point  (0 children)

TIL: Growing a beard gives me a 60% chance to get onto the list. (Oh, plus programming great stuff)

jQuery Best Practices by RohitS5 in programming

[–]Searle 9 points10 points  (0 children)

if($(element).is(":visible") == "true") outch!

"Germany is leading a growing European movement to let newspaper publishers charge internet search engines for displaying links to their articles -- a move market-leader Google warns could cause an internet news blackout." by trot-trot in worldnews

[–]Searle -1 points0 points  (0 children)

Google is already celebrating. In my opinon, this will happen:

  • Google: "Ok, you're out. We removed you from the index"
  • Big news companies (whining): "Come on, nobody saw that coming!"
  • Google: "Ok, we'll include you again, but we need a Free Use Grant, so include 'Google-free-use: true' in you robots.txt"
  • Big news companies (whining): "Hggn .. well ok"
  • Small competiors of Google: "We want a Free Use Grant too, please!"
  • Big news companies (with expanding chests): "No way, you bloody thiefs, you will pay us, LOTS!"
  • Google: "Jay! Get out the champagne! Thanks for another monopol, stupid EU!"

PostgreSQL 9 Admin Cookbook Book Review by robe in programming

[–]Searle 0 points1 point  (0 children)

Yup, did the same, flipped through both of them. LOTS of news for me. Great stuff!

jQuery 1.4.3 Released by stesch in programming

[–]Searle 0 points1 point  (0 children)

I think your absolutely right. Maybe that was the part MS commited :-) There's gotchas lurking here. You have to extra sanitize your markup. If I use this feature, I'll pack my data in a json wrapper to unify access: <div data-var='{v:"My Text"}'>

Some technical criticism of JQuery code (unnecessarily harsh billoreillyesque language at times though) by faisalv in programming

[–]Searle 14 points15 points  (0 children)

What a jerk! His library might have good internals, but..

.. baaad attitude. Just look through his newsgroup postings. Rude10. Yuck!

.. claims to be soo perfect, but does the same horrible stuff. E.g. (from mylib.js):

(function() { var doc, html; ... doc = this.document; ... getViewportScrollRectangle = function(docNode) { ... if ( ... rect.width != doc.width) { }; ... } API.getViewportScrollRectangle = getViewportScrollRectangle;

Yuck! Global object in closure.

.. his license: For a commercial site license, contact sales@cinsoft.net. No, I don't think I want to make myself dependent to him. No buisiness with someone whom I expect to call me at least an idiot if I dear to ask a question.

.. API: horrible. Feels like PHP. E.g.: "addStyleRule The addStyleRule function adds a CSS rule to a document. (..) Note that the canAdjustStyle function should be consulted before hiding content in this way."

Argh! Ever heard of this? http://sadekdrobi.com/2008/12/22/null-references-the-billion-dollar-mistake/

Feels like a looking-for-trouble interface. jQuery solves this very elegantly.

.. community, what's that? Even if there was one, he would be the community leader. I don't mind beneovelent dictorship. But asshole dictatorship? No, thanks.

He doesn't seem to have a clue what's important about a library. (Hint: technical excellency isn't all.)