Programming Confessions Thread
-
I abhor that sort of accuracy
-
-
OK you got me, but kinda didn't.
I do high performance JS, and it is pretty much a joke around these parts.
-
-
I am the JavaScript guy.
-
I am the JavaScript guy.
Trivia entry noted. It's current priority is 71831 in the Trivia.wtf.
-
Whatever dude.
-
It's like, WHATEVER DUDE.
-
Whatever dude
WHATEVER DUDE
Sorry, I'm totally not getting these cultural references.
-
-
Sorry, I'm totally not getting these cultural references.
-
The magic word "depends"
http://www.userfriendly.org/cartoons/archives/00jan/uf001462.gif
http://ars.userfriendly.org/cartoons/?id=20000124&cbst=1482743
-
Your description sounds a lot like me before I started taking meds.
-
http://www.moviequotesoftheday.com/showquotes.php?qid=1175
Haven't seen that movie. So we've come full circle! Yes!
http://ars.userfriendly.org/cartoons/?id=20000124&cbst=1482743
I have to ask: What was she thinking?
-
EDIT: the awesome thing about Discourse is that people are "liking" your depression self-hatred and fear of change. That "like" terminology, great idea. And people think I'm a dick.
I interpret it as "you have our simpathy" in this case.
-
This post is deleted!
-
You'd be surprised how commonplace gender dysphoria is. The Wachoskis are now sisters and not brothers.
My mental illness was just plain ol' depression, I don't have any body image stuff associated with it that I'm aware of.
-
This post is deleted!
-
I interpret it as "you have our simpathy" in this case.
I think you're going to have to explain to him what "sympathy" is. And then explain to him that you typo'd the word, because he won't figure it out on his own, like the ants in Bug's Life when a leaf falls across their line.
-
The like button is a generic positive feedback. It's always positive towards the poster, and it's exact meaning can change from user to user. I think it explained it.
-
(post withdrawn by author, will be automatically deleted in 12 hours unless flagged)
-
@ScholRLEA said:
http://ars.userfriendly.org/cartoons/?id=20000124&cbst=1482743
I have to ask: What was she thinking?
-
I'm pretty sure that the only people who don't have a history of mental health problems are the lizard people secretly living among us, preparing for their dark and bloody return.
-
-
Edit: I'll fix the gif later. Mobile-first my ass
Fucking fuck Discourae ed me
-
@ScholRLEA said:
http://ars.userfriendly.org/cartoons/?id=20000124&cbst=1482743
I have to ask: What was she thinking?
is a safe bet in these matters.
-
Really.
Because the framework I use 99.5% of the time, the .net framework, is pretty explicitly not that.
Usually, a framework is a Soviet Russia joke applied to a library. You know, in Soviet Russia
libraryframework call your code. It's possible to get a lot more complicated than that, but the heart of it is exactly that.Some parts of the .net framework really are frameworks (e.g., WCF) and other bits are more about being called that because someone in Marketing thought it was a good idea.
-
sometimes i look back on code i write
const subtype = (/^\[\[\w+:(\w+)/.exec(data.bodyShort) || [])[1] || '';
and a thought goes through my head....
What the hell were you smoking @accalia?! i have no idea what tiat's supposed to.... oh. that's what it does? ok i need to rewrite that so it's sane...
...
didn't i say that same thing about this code last week?
-
Since when is a framework a "you"?
It depends on what the meaning of the word 'is' is.
-
-
<confession>
Today i made a bunch of changes in a project and needed to undo some of them.... so i pushed the whole thing to github and used the pull request feature to show me the diff while i made a series of commits to undo the parts that didn't need to be there, then i used rebase to squash those commits into the original one and force pushed it to github so the pull request would only have one commit instead of the dozen or so i used to get it there.
</confession>
-
@accalia I understood exactly what you did. God help me.
-
@cartman82 flee! flee while you still can!
-
@accalia Too late, he's been committed. Only thing he can do is reset --hard HEAD~1
-
@accalia said in Programming Confessions Thread:
const subtype = (/^\[\[\w+:(\w+)/.exec(data.bodyShort) || [])[1] || '';
It's a bit clever, but nowhere near . It matches
"[[letters:moreletters"
at the beginning of the string and capturesmoreletters
or an empty string on failure.
-
@anotherusername yes, indeed.
but how long did it take you to figure that out?
-
@accalia it took a few seconds to grep the regex... I overlooked the
^
on the first time through, but other than that, it did what it looked like.The rest was obvious.
exec
returns either an array of matches, ornull
; if it returnsnull
, thennull || []
evaluates to[]
, which ensures that the result is always an array. Then it grabs[1]
, which is the first captured match from the regex; if the regex didn't match, then[1]
isundefined
, andundefined || ''
evaluates to''
, so the final result is always a string: either the captured match, or the empty string.It took longer to figure out the regex than the rest, and the regex wasn't even that complex.
-
@anotherusername that only means you understand how JS works.
Turing have mercy on your soul.
-
Some thirty years ago, when I was a freshman at Southern Connecticut State University, I took a course in Pascal using Turbo Pascal for the not-quite-PC-compatible DEC
PRainbow, with some occasional bits on the VAX (through VT-100s, of course). I had already been using Applesoft BASIC for a while, and done some BASICA as well (yeah, actual BASICA on my father's XT, not just GWBASIC, not that there was really any difference), but Pascal was a bit of a shock.About halfway through the semester, I found out that the second semester was to be done in C, if I chose to take it (I was a Bio student, but was thinking of CS as a minor).
The guy who told me this gave me a disk with a compiler on it - De Smet, if I recall correctly - and told me that 'C' stood for 'Cryptic'. Having had trouble enough with Pascal, and being even more of a shithead than I am now, I was pretty ready to buy that claim.
Fortunately, by the time I took the C course the next Fall, they'd punted the Painbows in favor of some Compaq 286s, and the professor got a copy of the spiffy brand-new Turbo C compiler for DOS which he told the students to pirate, because in 1987 no one in the academic world gave half a musty fuck about copyright. I managed to muddle through it, though it took me several more years after that to really understand pointers.
-
@ScholRLEA said in Programming Confessions Thread:
Fortunately, by the time I took the C course the next Fall, they'd punted the Painbows in favor of some Compaq 286s, and the professor got a copy of the spiffy brand-new Turbo C compiler for DOS which he told the students to pirate, because in 1987 no one in the academic world gave half a musty fuck about copyright. I managed to muddle through it, though it took me several more years after that to really understand pointers.
I got really lucky. I found a book in our college library that taught pointers in a way that really worked for how I thought. I remember that it used Standard Pascal to do it. Once I'd practiced a bit, the knowledge was transferrable to C (which I'd tried to tackle previously, but had completely washed up on). And the Turbo Pascal and Turbo C IDEs (at least in about 1991–92) were wonderful things.
-
@accalia said in Programming Confessions Thread:
<confession>
... so the pull request would only have one commit instead of the dozen or so i used to get it there.
</confession>Branch if you are in master then squash them. Create the alias.
-
@dkf maybe I just had a good teacher but I never really got why pointers cause so much confusion. Or maybe my maths education made it easier to frame in my head
-
@Jaloopa Once I got that they were addresses, the mystery ceased to be. It helped that I had done some machine code programming before.
-
@dkf Ah, that's probably why I was never confused about them - the cplusplus.com tutorial (which is the one I followed to learn C++) tells you right away that they just hold a memory address.
-
@LB_ how else would you introduce them? That's literally what they are, it would be like trying to explain an
int
without saying it's a number
-
@Jaloopa I don't know, but considering that pointer confusion is a common joke about learning C, I'd say there are numerous wrong ways to introduce them.
-
@Jaloopa "A pointer 'point to' a variable. So you have this variable, and you have this pointer, and it's linked to the variable; when you change the value of the variable, the pointer is updated."
Stuff like that that ends up being more confusing for not using the right terminology.
-
@Yamikuronue I can see how it can be confusing depending on how things have been explained: a pointer "points to" a variable, but isn't a variable in itself already a pointer to a number in memory? Or: If variables are replaced by their values, then what difference does it make if you replace "x" with "3" or "*x" with "x" and then with "3"?
Actually now that I think of it, I don't really see how to explain the point of pointers (no pun intended) without having explained either arrays or the difference between pass-by-reference or pass-by-value. And with arrays, the pointer is basically just an index, so I guess the only real use for pointers is to pass things to functions by reference instead of by value? Did I get that wrong?
-
@anonymous234 The trick is that variables are aliases for objects. A pointer is an object which holds a memory address (the address of another object, possibly with no alias), and a pointer variable is just an alias to a pointer object. Of course now you have to hope they grasp the concept of an alias.
-
@cartman82 said in Programming Confessions Thread:
I once ran over a man with my car. It was night and I was drunk. I dragged the body into a ditch and drove off. I can only bring myself to talk about this in anonymous confession threads like this.
I was about to ask if you were Tim ******, this guy I know who did the very same thing.
But then again, he's serving prison time for it, so I don't suspect forums are the only place that he confesses this.
Dude man hit a guy coming out of a restaurant, dragged him into the bushes, ditched the guys bike a while further down behind a mcdonalds, then proceeded to return to the scene of the accident still covered in the dude's blood and stand around with the crowd all like "what happened!?"
But then again, this post is 2 years ago... so maybe!?
Tim! I had no idea you were into programming!!!