- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Every time a new piece of software is added to the code base, Baker said, an addition is made to its technical debt. Code is the principal, and software maintenance is the interest payment, "so the more code we have out there, the bigger our debt, hence the more maintenance, hence the more interest payments
Admin
Just wondering why the web designers don't list PMH foundation as part of their portfolio....
http://www.perth-web-design.net.au/website-design-portfolio/
On the other hand, Sara.... Hell yeah.
http://www.perth-web-design.net.au/about-perth-web-design/meet-the-perth-web-design-team/#Sara
Admin
Writing the cart in JS is not a bad idea as long as you have the checkout serverside along with verifications.
10 years ago I wrote one in JS myself mostly because the server we used to run on was a bit on the week side.
Using a JS cart saved on calls to the server as only new pages and checkout ran on the server.
We handled ~1000 simultaneous shoppers on that server which was an P2 or something like that ;)
But id did have it's drawbacks of cause, like loosing the cart if you hit F5 (it was before I learned to handle cookies) but customers was satisfied anyway, out site was faster than most other carts :D
Admin
Well. To be honest I would be happy it one day TDWTF run out of materials as there would be no more WTF code. Unfortunately it is unlikely to happen. TDWTF is some consolation however.
Admin
I don't believe for this story to be real. How did code pass QA and review?
Admin
I just tried that. It went right through to the other side and made an unsightly blue mark on the back of my shirt. I demand that you PayPal me the cost of a new shirt.
Admin
Unless she expected negative amounts of items, this should be shortened to:
Admin
Waiting for geoffery to explain what I've missed here....
Admin
Admin
So they had other priorities (eg making the money they use to pay you) besides refactoring. If you need the code to be cleaner in order to be able to do your job, then refactor it yourself, outside paid hours.
Admin
I seriously hope you're trolling
Admin
Bank name: WTF Bank, Inc. Bank account #: 12345 Account password: Hunter2 Deposit $20, please!
Admin
Manuel: Wit Nit? What is Wit Nit?
Admin
Admin
Hmm... in the article below this someone says that Alex has tragically passed away, yet this article was posted by Alex (or his account, at least). WTFs from beyond the grave?
Admin
ObiWayneKenobi, I am convinced you're trolling. Here's a bite for you!
Admin
On the other, all the twisted, but amusing and arousing thoughts that crop up. What the kid's dead and that's hoe they frame the advertisement: "We wanted to care for this kid, but didn't have the money, so we ground him up and fed him to the other kids". Something about this inhumanity actually gives me this vague calm, as I no longer feel the need to care for anyone or anything. There's a whole 'nother world out there - a gateway to it is no larger than the eye of a needle and resides in the back of my mind.
I imagine myself in a plain dirt field, a soft, cool breeze, at night, just me and the child. I take a rock and start by smashing it's limbs (the poor dear) and then move on to the more vital organs. At climax, I'm repeating smashing the reddish goo that is what's left of his face, screaming out the name my ex-wife and I had chosen for our expected, before the miscarriage and subsequent divorce. I guess she just couldn't stand the sight of me after my cold feet caused me to perform an improvised "procedure" on her one night. At the time, I wasn't sure if I was ready to be a mom.
"Timmy! Timmy! Timmy! Why were you never born, Timmy!"
Each time I bring down the stone, I become just a bit less human, until I have no more soul than the stone itself or the lifeless mass crushed into the dirt. Who am I now? Why do I go on living?
"No! Timmy! Just stay Dead! Die! Die! Die! Timmy! Timmy, I'm sor-or-or-rry!"
Two sides to me, feeding off of each other. The hateful one giving the human one something to regret and the human one providing the hateful one something to try to escape. I realize now that all logic is ultimately circular in this fashion. My motivation drives my actions and my actions allow me to sustain myself to feel my motivation. Love becomes hate, becomes death, becomes death, becomes death, becomes death...
Even a perfect circle can only be traced for so long.
"Fuck you, Timmy! Timmy! Timmy, I'll join so soon, I swear! We can be rotten piles of shit together!"
Admin
Okay, here you are:
Can I have $2 please? There's one costing £1.50 in the charity shop next door to where I work that looks like it might fit.
Admin
My first thought was: Poor kid. Some rotten bastard's shoved some plastic up its nose.
Admin
Admin
If I ever feel like hearing about yet another guy copying & pasting stuff yet again, I'll make sure I visit the front page. Until then, I'll stick to the sidebar, where some original content can be found.
Admin
Hmm... type a period. Um, yeah, why is it letting me enter a decimal point into a quantity field?
Type a minus sign. Nope, it just allows [0-9.] in there. Hmm, copy a minus sign into the clipboard and right-click paste. Yep, now I can enter -99 quantity. Copy the -99 and paste into every field.
Total amount: -168438.6 (obviously they haven't heard of fixed decimal places either), less six dollars shipping. And that's without hacking the price fields that it trusts the web browser to send back unmolsted.
Brillant.
Admin
Admin
I refuse to call this crap a "program" or "script". And i refuse to call the people that writed that crap as a programmer.
Admin
I refuse to call this crap a "program" or "script". And i refuse to call the people that writed that crap as a programmer.
Admin
Admin
Yup, nothing wrong with implementing the cart logic client-side - as long as when it comes time to send the order to the server, the server cares only about the items and quantities, not about prices.
Admin
Must say, I don't know about "experience in Search Engine Optimisation" necessarily, but he'll be getting a bit of traffic to his site at the moment - he must be doing a good job...
Admin
Admin
If I ever feel like hearing about yet another guy copying & pasting stuff yet again, I'll make sure I visit the front page. Until then, I'll stick to the sidebar, where some original content can be found.
Admin
I thought that a real Web shopping cart would keep the items in a database. But then you're of course vulnerable to SQL injection and all that shit.
Admin
Admin
.... javascript: document.getElementsByName('PMHFSupporterPack')[0].onkeypress = null; .... Type in -5 in the field...
Hey they'll send me $100 :D And apparently the shop form is totally happy with charging me -$100. (For the record: No I did not actually put in any details to try if they'd actually send me money through that)
Admin
Zero understanding of arrays. Zero understanding of subroutines. Maintenance: Horrendous.
Admin
Well the site was written by Australians, what do you expect?
Admin
Please show a little sensitivity. I live in a country from which many of the inhabitants of Australia trace their ancestry, and let me assure you, to have a legacy like that is no laughing matter.
Admin
FTFY.
For added visibility, all the images link to js.popup of the same image. NB: Only work where smaller versions of things are somehow more visible than the thing itself.
"href="javascript:OpenWindow('http://www pmhfoundation com/Shop/Shop%2BPhotos/Hush_Vol2.jpg',250,250)">[image]"
Admin
They did: the children's hospital form lists "DadsNutsGiftPack" as an item.
Admin
We've got the same on our project. But the correct terminology is not WET (Write Everything Twice), it's WETT-WETT-WETT (Write Everything Three Times).
Admin
Admin
/agree
anyone thinking duplicating the checking on front-end / back-end is a bad idea ... is dumb.
Just face it, if you actually think that designing a cart for maximum number of requests is smart .. you should shoot yourself right now.
Yes, it's not fun or stylish to have part of the logic duplicated, but until you alter the laws of physics to make an extra request "not an issue", you are just dead wrong.
Just ... for one second ... consider the reality we live in, where many people have over 100ms ping . you want to add 200+ms to your user experience (and server load) for every add to cart ?? - seriously. l2c nub
Admin
Even I can't defend this.
Admin
Unless you're saying you're from India...
Admin
When you install the Internet on your computer you need to be sure to download all the software updates, one of which being The Google. He just needs to set his automatic updates.
Admin
Javascript loops give lack of flexibility, more costly evolution, inhibit the use of the database acting as a service to applications and make it an inhibitor to evolution.
Admin
Have you use jquery? Just making some comment with no substence behind is sign of stupid.
Admin
You must be new here.
Admin
I assume this is just trolling. If not, then if I'm ever accused of a crime, I want Nagesh to be the judge at my trial. "How could this man possibly have robbed a bank, when robbing banks is against the law? I just can't believe that someone would break a law that's clearly written on a piece of paper. Besides, he plainly told us that he didn't do it."
Admin
Seems they are quite fundamentalist followers of the Worse-is-better-process!
Admin