|
Quote: it's nice to know I'm not the only one
Yes! I thought I had committed some sin!
|
|
|
|
|
And ... I got an email for that one, but not the one before!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Weird man!
|
|
|
|
|
|
Yep: looks like I woke the hamsters by posting in S&B.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OK, my emails started getting through as well. Maybe the hamsters slept in late this Sunday?
|
|
|
|
|
i am
Edit: never mind, I no longer am
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.
modified 24-Nov-19 9:17am.
|
|
|
|
|
I got emails on my 'Rings a bell' post. That was avout 22 hours before... Also got from Sander about his exam abou 6 hours ago...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
Same here Paul
"We can't stop here - this is bat country" - Hunter S Thompson - RIP
|
|
|
|
|
..written a heavily commented, factored chunk of code that does some important, complicated task, and no matter how you structure or document it, it doesn't make sense to anyone but the computer?
not even you?
I've done that at least once this year, with LALR(1) parsing and it looks like I'll probably be doing it again (but with fa->regex conversion) within the next week or 3 depending on how long this takes.
I hate it, but that's what I get for punching above my weight class.
Sometimes code only works through sheer force of will.
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.
|
|
|
|
|
|
Sander Rossel wrote: I've written code that didn't make sense to anyone INCLUDING the computer!
That's where I'm currently at
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 only write nicely written, formatted and readable code. For my future self, when looking for some strange bugs
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Some code is based around algorithms that themselves are very messy.
For example, generating LALR(1) parse tables: LALR(1) Parsing[^]
Or doing DFA the state removal algorithm (easy to visualize, hard to code): regex - State Elimination DFA to Regular Expression - Stack Overflow[^]
It's the algorithms themselves that are the problem.
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 quitting smoking. Idle hands being what they are I need to stay busy with stuff, and so that means CP contributions.
I've recently built a relatively in depth tutorial on building a feature rich regex engine.
Now I'm going to do one on building a full featured tokenizer with it.
And then the same for a parser - LL(1)
And then *maybe* a second parser round covering LALR(1)
Covering more than the basics, since I've already covered those here before.
PCK, my Parser Construction Kit[^] is built, but basically, building it again, with partitioned heavily commented code, and an article explaining it.
That's much harder and more time consuming but hopefully it will get some interest here.
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.
|
|
|
|
|
Good for you! Hope it goes well.
Are you "going cold turkey", patches, tablets, or gum?
I did it 15 years ago with the patches (via an NHS stop-smoking service) and it wasn't easy but was worth it. One suggestion from the service I used was to put cash in a jar: if you smoke 20 a day, put the cost of a pack in there every day. At the end of the first month, spend the money on a treat for yourself and only yourself. It's surprising how fast it builds up! Keep stuffing cash in there, and after six months, buy yourself an even bigger treat - with a pack averaging around £10 each in the UK, that's a significant bonus to look forward to, and it can help focus you on the long term / medium term advantages of giving up.
Another was to change where you go: break away from the locations where you have a habit of smoking. So if you goto a particular pub and smoke there, go to a different pub. If you smoke at your desk, move your computer to a different room. Stopping the "association" with smoking can really heklp reduce the craving.
Let us know how it's going - I'm sure all us ex-smokers here will support and encourage you to get through this.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Thanks. I'm trying the inhaler device because the patches give me a rash and chantix isn't for crazies like me.
I never could stand the gum.
I quit for 5 years at one point, so I know it's doable for me. It's just not easy. I'm kicking myself for starting up again, but I had moved a smoker in with me, and that was too much being around that all day.
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.
|
|
|
|
|
That sounds exactly the same as I went through many years ago. I finally quit one day when my heart and mind agreed, "no more".
|
|
|
|
|
I'm not doing it for a long life, i just don't want to die of something stupid like cancer or a stroke.
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.
|
|
|
|
|
The patches screwed up my sleep - I just didn't get "deep enough" so I had "lucid" dreams, was pretty much almost awake all night. By the end of the three months I used them, I was pretty badly sleep deprived
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
chantix messed with my sleep but i'd use it again if i could. they don't give it to crazies though like i said
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 grew up in a smoking home, and my father never really managed to quit completely.
In the end it was probably the smoking that finally killed him.
So I believe I can appreciate how hard it is to quit.
And besides, when he started smoking it wasn't dangerous yet.
What I can't wrap my head around is what drives obviously intelligent people to start to smoking, now that we know how dangerous it is.
No, I'm not trying to be sarcastic or anything, I'm genuinely curious.
|
|
|
|
|
being predisposed to addiction tends to make one become a smoker.
(that's not the only reason, but maybe a big one)
I didn't grow up in a smoking household. I was adopted. That said, my biological family pretty much all smoked with a couple of exceptions.
A lot of them are bipolar, and smoking is really common in bipolar folks. We tend to pick it up during mood swingy times.
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.
|
|
|
|
|
Well, that's more an explanation for why you got stuck with it, and I can understand that one.
I mean alcohol (in reasonable amounts), as well as many other drugs, makes you feel good.
While tobacco the first time used tastes like sh*t. And you also feel like sh*t if you get enough of it, in the beginning.
Still haven't talked to anyone having had a different experience.
|
|
|
|
|
When I moved to Singapore I had to give up driving and as a consequence was able to stop smoking - I always smoked in the car.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|