|
Pfft. That's art to the stuff I've written. My stuff is so bad if I posted it here your computer would keel over in fright and refuse to reboot.
cheers
Chris Maunder
|
|
|
|
|
I'm glad i'm not the only target of Sander and his pitchfork.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
Yes you are.
Speaking of which...
|
|
|
|
|
i'll turn you into a VB6 developer
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
Been there done that
|
|
|
|
|
In that case I'll hex your boss so you get stuck on front end work.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
I'm my own boss
|
|
|
|
|
Even better.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
Is it part of the code behind CP...?
|
|
|
|
|
dandy72 wrote: the code behind CP
No.
That code's even worse
cheers
Chris Maunder
|
|
|
|
|
Yes, and it's a work of art. Picasso is also art mind you.
I spent two weeks on it and it solved quite a few problems in one go.
<edit>Two different ways to parse a tree and a statemachine for the nodes.</edit>
I was very proud of it at the moment.
Today I look at it and think WTF!
modified 13-Sep-19 18:37pm.
|
|
|
|
|
And I thought ugly functions are only written in ... VB.
|
|
|
|
|
I started writing one about a month ago, and I'm still not finished.
|
|
|
|
|
sounds familiar. the one in the OP took two weeks to get to that.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
PITCHFORK TIME!
I can't remember the ugliest I've ever written, but a recent one was something like this (I can't post the actual code):
if (...)
{
if (...)
{
}
if (...)
{
}
foreach (...)
{
}
}
else
{
if (...)
{
foreach (...)
{
if (...)
{
}
foreach (...)
{
}
}
}
else
{
if (...)
{
foreach (...)
{
}
}
}
} Total of 64 lines long
And that's already the refactored function.
That entire class is a bit of a mess.
I have to convert a flat CSV file to some multi-layered standard with mandatory fields (that aren't necessary in the CSV), default values, some interpreted values, etc.
The class has 37 if's in total.
That's about as much as I usually have in an entire project
Compared to your multi layered mess of single line if statements it's still a work of beauty though
|
|
|
|
|
but can it parse html?
can it index a million rows of data?
*raises eyebrow*
when you do witchy things, your code will finally look witchy as a result.
just like when you're writing your code that deals with a mess of input your code looks like a mess.
we are a product of our environment, and so is our code.
my code comes from a crazy person. it shall reflect that.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
|
Oh i was insane to pick up coding in the first place.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
|
Nazdrovje !
|
|
|
|
|
|
As a programmer, every day is Programmer's Day.
Acknowledgement from the normal humans in unnecessary.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
True dat.
/ravi
|
|
|
|
|
Are Dad Jokes just jokes that are full groan?
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I'll take the idea a bit father and ask: "Is that a pop quiz?"
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|