I've never understood why people use 2-space indents - it's really hard to read.
Oh, and tabs ftw.
I've never understood why people use 2-space indents - it's really hard to read.
Oh, and tabs ftw.
I was so fed up with Magento and ZF (and PHP in general) at this point
That's a pretty soul-sucking combo. I haven't looked at Magento for years, but it was a cluster. I used some libraries from ZF in an ecommerce system I developed, and it was full of stupid (tying monetary units to locales in money conversion classes).
Twas meant as a lame joke, but it's probably only funny in certain browsers, i.e. IE.
Worked properly, i.e., wrongly that is, i.e., without CSS, for me on IE, e.g
Do you have an example?
can you find out why there is a loop timer event for this method. every 250ms
Because the devs wanted to know when an element has been resized, and they wanted it to be IE 6-8 compatible? :)
At least they copied the small one, not the 80% of the screen version.
They compensated by changing the "if everyone donated $5..." stat to $75.
ever since 3.5 it's been going down hill.
Meh, all software goes through 30+ lousy versions in a row at some point doesn't it?
The only reason I still use Firefox is that Firebug is much easier to use than the Chrome Developer console for me.
accalia:Image Fail:
here's what you wanted.It's a Fox alright, but not cute.
fixed?
Also the "I don't like Windows Phone so people who use it should suffer" attitude.
"Devicive" behavior.
Not really. At least, not the way I've interpreted what happened. This piece seems pretty obviously anti-KKK / racism / racist violence. But the robe appears to have required a trigger warning, which is just stupid in this case. If there were active KKK stuff in the area, it's legit to see it as a warning or a threat. But it's an anachronism, which should make one curious as to WTF is going on.Unless you're a modern college student who requires a fainting couch in case something unpleasant might be glimpsed.
I think it's more that KKK robe is still a symbol of hate; it shows up without any context in the middle of a campus and people don't know how to interpret it.
If I go to a WW2 museum or an art exhibit and see a swastika, I have context. If my neighbor puts up some nifty swastika art in his front lawn, my first reaction wouldn't be "well there isn't an active Nazi party that I'm aware of around here, so it's obviously meant to be an artistic statement on the evils of genocide." And even if that were the case, I still don't want a fucking giant swastika next door to me.
I agree that some people over-reacted to the situation, but I can understand how that could happen.
Being offended at something shouldn't give you any extra rights to begin with.
What do your words have to do with my words?
There is a difference between being offended by actual words with context and being offended by an interpretation of what an art piece is supposed to be conveying. Whether or not there is an active klan in Iowa is completely missing the point.
Agree with the caching argument, disagree with the last 2. Will respond tomorrow - a beer has appeared in front of me
By making it super-easy to add stuff like<?=base64_encode(file_get_contents('http://what.thedailywtf.com//uploads/default/8214/16c00f5bd6b57125.png')); ?>
to your templates. Good template languages make it hard to do BS like that.
If a developer is doing stupid things, then educate the person better. If that doesn't work, or they are intentionally doing bad things, find a new employee?
I get why you might want to "sandbox" cheap hires / interns with limited skills, but if you have good developers who know what they should be doing, then all the templating language does is slow things down (all the code is reviewed, right :) )
How does php encourage that behavior more so than any other language?
At least you cannot call arbitrary PHP functions in Twig templates.
You can call a lot of them (because twig is "feature rich"), and you can do things like {{ htmlWithXssCode | raw }}. My point is you can screw up pretty much anything if you have the wrong person working the gears.
You've obviously never had to work with front-end "developers" who add SQL queries to "template" files.
You can do terrible things in the view layer using any language (that I'm aware of).
I'm suspicious of anybody who doesn't realize PHP IS A TEMPLATING LANGUAGE, IDIOT!Ahem. Yes.
It still functions well as a templating language. I mainly use it for backend OOP. You can write some pretty respectable things with it, and also some horrible atrocities (cough Wordpress cough).
It neatly splits the work between backend and frontend. Backend guys can do all the work in PHP and just spit out a simple data model as backing for templates. Frontend guys can then take over and play around with twigs, without the danger of clutzing their way into one of the many PHP's gotchas. Also, there's less whining about "being forced to do the backend".
So without Twig, smarty, etc you wouldn't be passing only the variables needed to the view? Using simple php code in the view layer is "backend programming"? Twig etc doesn't allow a 'front end' guy to make a bunch of xss vulnerabilities?
I just dont see the point in giving front-end people a "training wheels" language that adds overhead and forces learning yet another syntax.
If you are interested http://www.phptherightway.com/
Scrolled through quickly: first thing I disagreed with was promoting twig / any other templating language. I still don't understand why people think they need a template engine on top of php. Inner platform ftw. But whatever, people like this stuff because {{ bracesarecool }}.
I live in a no-crime town
I want to live where you live. No crime, Windows never crashes.....
small {
font-weight: bold; color: red; font-size: 20px; line-height: 40px;
}
p > small:after, p a > small:after { content: '< This person is a dick.'; color: #000; font-size: 12px;
}
Er. The entire point of the Amazon front page is personalized advertising. Personalized. For me. Not other customers. ME. Maybe me and the people I routinely buy for. Maybe me plus common gift categories.
So basically your complaint is that Amazon doesn't "know YOU" well enough?
The point is that they used like 3/4 of the space they could have used to advertise things I might actually want for myself or for others on stuff that is either completely irrelevant, stuff I already bought (that you generally only buy one of), and rampant duplication.
I understand your point. My point is that you have unrealistic expectations about what Amazon "should be" presenting you, buttuming that they have customers other than yourself.
It's almost like Amazon knew that Christmas is coming up and customers might be buying items for people other than themselves. Surely such an advanced algorithm couldn't exist!
Does someone want to explain to me how I'm TRWTF for using that collation, or is it a bug which only affects certain collations?
Found a couple bug reports that have never been fixed - looks like this has been a problem for at least 6 years:
Assuming you have central functions that serialize and unserialize your data, you could always store undefined as {"undefined":true}
or something. Better than a magic string, anyway....
Seems like you've been researching sodomy before...
I'm a little disappointed in the ratio of weird cartoon animals to "laying black pipe" jokes in this thread.
I should forward them those emails I get several times a day where the nice lady says she can SEO my site for me.
I clicked through a few pages to see if there were any funny matches - the sodomy one made me chuckle: "Sodomy: You're probably busy so we'll get right to it".
I'm not sure how wikipedia didn't realize that injecting text near the top of your pages is a bad idea when you are leaving it up to the search engine to write your descriptions. Now they have a couple million pages with seo issues.
Found while googling the first sentence of wikipedia's fundraising plea....
What I don't understand is if a person acts too "roboty" they get the same old captcha test anyway. So how does this deter bots other than add a bit more complexity?
The rationale it seemed was to get me to reveal my true intentions, all it achieved was to baffle and irritate me.
Weren't your true intentions to a) get the job, and b) do a good job at your new job? I'm baffled too by this type of questioning....
kind of makes me want to do this in my next site:
`<header id="main-unique-and-exclusive-one-and-only-single-site-header-there-will-never-be-two-of-these" class="header">
</header>`Ah, I missed that thread - that's some funny shit. Extra points for irrational dogma.
He forgot to mention styling by IDs too.
What's wrong with styling by id? If you've already got an id for a unique element, why add an extra class?
Except that javascript doesn't solve validation problems, and using regular expressions on html is always a bad idea....
The obvious solution is to convert all the div's into spans using jQuery and regular expressions.
Then all you need is span { display: block; }
and you're done!
Of the 300 methods of marking a code block, you used the wrong one
That sounds about right - story of my life :-)
Depends on the amount of fiber in your diet.
but what if an elf has a slippery poop in infinite water?
Does the fiber intake matter?
True, Google probably has a 27,000 server farm to generate REALLY random numbers.
I typed some text. Then I copied/pasted the js code block. Then I used the discourse wysiwyg options to mark the javascript as code. Then I attempted to put dashes in front of the list items to make it a list.
What did I not do correctly?