News for hackers. Stuff that matters.

fforw

Just like you could have Java 8 projects before this change.
Re:Flux Architecture Visual Cheatsheet on Wednesday July 29, 2015 @09:27AM (#9968434)
The mur.al link leads to an empty page with a character encoding warning for me.
Re:German author Guenter Grass dies on Monday April 13, 2015 @05:17PM (#9370579)
He joined the Waffen-SS in 1944 at the age of 17. The Waffen-SS was totally not the same as the SS.
It is widely known that every corporate developer has endless time for his work. Mundane aspects like costs of development should have no impact on our code, the pureness of which is a goal in itself.
Re:DEA redacts tactic that's more secret than parallel construction on Wednesday February 05, 2014 @07:56AM (#7183438)
> It's called "Vernichtungslager" / "Concentration Camps", their whole purpose is the legal killing of undesirables, you're really venting your anger at the wrong agency here. They're just doing the job they were hired for.
Something tells me there will be no meeting 50 years after the torture in US secret prisons -- especially none with any insight into the wrongness of it.
Re:React: Another Level of Indirection on Wednesday January 01, 2014 @02:36PM (#6996204)
Might be a good idea to document stuff like that ;)
Re:React: Another Level of Indirection on Wednesday January 01, 2014 @01:13PM (#6995754)
It's not really a bug for the same reasons that jQuery implements focus/blur independently from focusin/focusout. focus events just don't bubble out natively so you have to make your synthetic event system do that if you want / need it. jQuery implements it as a separate pair of events, React chose not to / only deviates from DOM behavior in very few instances (onchange). Using jQuery was just easier for my use case which seemed too exotic to claim any kind of general relevance.
Re:React: Another Level of Indirection on Wednesday January 01, 2014 @10:59AM (#6995281)
There's quite a functional overlap between many uses of jQuery and what React does.

Ignoring animations and ajax, the core functionality of jQuery orients itself to the concept of progressive enhancement (http://en.wikipedia.org/wiki/Progressive_enhancement), you have a basic functionality of a page in HTML and you enhance that with scripts for better user experience. Hence most of jQuery methods follow the operations required for progressive enhancement: finding DOM stuff and changing it, registering events etc.

This is what in the end conflicts with the design of React. React is (again ignoring server-side-js prerendering) an all-or-nothing approach. The whole dynamic part of the DOM is constructed out of the virtual DOM. There is no no need to find DOM elements, because the React way would just relink your component to the real DOM result of its previous rendering or you find DOM elements of child components via React refs. To follow React design, you only change the real DOM directly if you need to step outside of React to e.g. integrate another library. The normal modus operandi is to just render new new virtual DOM based on your props / state.

You can do some meaningful things with combination of React and jQuery, e.g. just use jQuery's focusin/focusout to make up for the lack of bubbling focus support in React. Mostly though you shouldn't need to -- by design.

I think it's deluded to expect any country to come even close to what the US is doing except maybe China. The budgets of all are not anywhere high enough to pull such a thing off. The US has moved on a dark and lonely path after 9/11.. Not only in espionage, but also in remote killings, illegal imprisonment and torture. To say others do just the same seems deluded.
> The US will not perform economic espionage as long as the US has a technological edge

Spying on the head of the EU-anti-monopoly investigations against Microsoft and Google is already industrial espionage.

Re:How Does This Not Blow Your Mind? on Tuesday December 24, 2013 @08:12PM (#6961813)
I think the main problem is that these days we tend to look at this as a purely quantitative matter, when it's largely a quality matter.

We largely abandoned the enlightenment ideas of a humanist education. One whose purposes it isn't to drill people into fulfilling norms, but that enables them to live fulfilled lives where they can express themselves and grow into the kind of educated citizen being able to judge on political matters beyond who you'd like to drink a beer with more.

Re:How Does This Not Blow Your Mind? on Tuesday December 24, 2013 @06:03PM (#6961467)
So it would kind of be more meaningful to not compare to the national average but to private schools targeting the same socio-economic situations, but with a traditional curriculum.
Re:That Viral "Poverty Thoughts" Essay Is Totally Ridiculous on Sunday December 01, 2013 @04:16PM (#6829375)
"Oliver Twist" debunked -- Dickens just a novelist.
Not really. They have been supporters for "Vorratsdatenspeicherung" / "stock data saving" / data retention for quite some time and now realize that the populace is not amused by the NSA shenanigans.

So in their infinite wisdom, they replaced it with "Mindestspeicherfristen" / "minimum storage limit" / data retention.

Child abuse is not happening on the internet or mobile phone though, but usually at home. No internet surveillance is going to change any of it. You'd have to start installing cameras in every child's living rooms.
Re:Real-World Concurrency (2008) on Wednesday March 06, 2013 @09:58AM (#5331427)
Is node actually able to use more than one core now?
Re:Peek and poke in the age of Linux on Sunday March 03, 2013 @07:16PM (#5315785)
Were there ever really common peek and pokes that would change programs?

Yes, "poke 53280,0" would directly write address 0xd020 to 0x00 which then e.g. would turn the border black on the C-64. But those were addresses in the mapped custom chips. More like setting a pixel on a modern GFX card by poke and less changing a program.

The later development of expansion cartridges to give you more lives in games or enable a cheat-mode there would a kind of peeking and poking, but hardware based etc.

Re:Land without Plea Bargaining: How the Germans Do It (1979) on Tuesday January 15, 2013 @01:20PM (#5061789)
Ironically, just like for the American plea bargaining, the risk of the German system is hardest for those actually innocent. The differential between falsely confessing and not might not be as much as in the American system, but in the end it has the same effect. The innocent face even longer imprisonment if they insist on their innocence, in Germany it just works over the rehabilitation angle. The prison system will judge the refusal to show remorse and not trying to make amends as sign of lack of rehabilitation which will lead to a full imprisonment without early release, as opposed to the guilty case who is probable to get out after I think 60% of his time.
Re:Json ⊄ js on Saturday December 29, 2012 @09:44AM (#4982173)
If you can find a case in which the validator fails, it's wrong. Otherwise, if it's looks like a JSON parser and works like a JSON parser, i.e. is indistinguishable from a "proper" parser, it makes no sense but satisfying OCD to rework it.

Note that the code is now only a work-around for older browsers. Every modern browser supports native JSON parsing anyway.

Re:Json ⊄ js on Friday December 28, 2012 @08:35AM (#4977607)
The </script> issue is why JSON and Javascript both allow you to escape the slash character with a backslash.

So just going <\/script> is enough.

Re:Json ⊄ js on Friday December 28, 2012 @08:32AM (#4977598)
First of all, if native JSON parsing exists, jQuery will use that.

The validation code they use in case there is no native JSON implementation available is borrowed from Douglas Crockford's json2.js ( https://github.com/douglascrockford/JSON-js/blob/master/json... ) which was the inspiration for the native JSON implementations and should really be correct by now, both in terms of correctness but also circumventing regexp weaknesses in some engines.

Re:Something really scary is going on in Germany on Friday December 07, 2012 @05:26AM (#4886344)
In addition: Google has no ads on the google news pages.
Because the publishers want their cake and eat it. They want to be found by Google, but Google should pay them for it. Because they're awesome and the protectors of culture and everything good and right.
Re:US congress rules Huawei a 'security threat' on Monday October 08, 2012 @10:45AM (#4627055)
Given all the bad things parts of the government were involved in, maybe it wouldn't actually be that bad of an idea to be shizophrenically suspicious of itself.. checks and balances, right?
Re:European entrepreneurs: Les misérables on Saturday September 29, 2012 @04:12PM (#4590708)
Here in Germany that would be http://en.wikipedia.org/wiki/Mittelstand, SMEs that are the major backbone of German economy.
Re:Germany sets new solar-power record on Sunday May 27, 2012 @01:13PM (#4030494)
They told us this http://en.wikipedia.org/wiki/Schacht_Asse_II would be safe, too.
Re:Germany sets new solar-power record on Sunday May 27, 2012 @08:52AM (#4030009)
Nuclear plants also have guaranteed nuclear waste and Germany has no place to store these.
I think it's more common with larger companies and the corresponding 9-to-5 attitude.

I work for as architect for a small consultancy/software-development company and I'm paid the same salary no matter how many hours I actually work. Contract says 40 h/week, but there are weeks when I reach the 40 on wednesday. MIght be able to work less than 40 hours when times are not as stressful (haha), but the average has to be clearly above 40 h/week.

Germany is so densely populated that it might also just be a lot harder for criminals to find a good hiding place without being noticed.

Older »