randomling: A wombat. (Default)
[personal profile] randomling
Maybe my 100 Things should have been 100 Programming Errors. It would have been much quicker and easier to get to the end of. Oh well!

These are going to be mostly for my reference. But feel free to enjoy my idiocy!


If I forget the quotes in an HTML attribute, it behaves oddly. Especially when I'm using a templating language (like Jinja for example) to render the page. That means my attribute might have spaces in them, and I'll get weird behaviour if there are spaces I haven't accounted for.

Like for example, not rendering the user's whole entry when I re-render a form.

The answer: remember the quotes!


I think I'm going to like having somewhere taggable to keep these.

Date: 2012-05-05 11:46 pm (UTC)
azurelunatic: Vivid pink Alaskan wild rose. (Default)
From: [personal profile] azurelunatic
I cannot tell you how many times I have forgotten quotes. Or put in one half of the quotes and then didn't put in the other half because somehow my attention span failed to hold onto that as a needed thing in between typing the one end and the other.

Date: 2012-05-06 01:25 pm (UTC)
azurelunatic: Vivid pink Alaskan wild rose. (Default)
From: [personal profile] azurelunatic
My personal nemesis was (in Access database operations) forgetting to convert null values to zero values before doing certain operations on them. I wound up writing "Null to Zero" in fancy font in a fancy border, and stapling it to the wall by my desk, after about the third time that bit me in the ass.

Date: 2012-05-06 07:36 am (UTC)
jhaelan: (Default)
From: [personal profile] jhaelan
It continues in this vein when you branch out into Javascript too'then you need to worry about nesting quotes!

Profile

randomling: A wombat. (Default)
Lee

January 2024

S M T W T F S
  12 34 56
78 9 10111213
14151617181920
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Oct. 2nd, 2025 01:21 pm
Powered by Dreamwidth Studios