Difference between revisions of "Things Real Dreamwidth Programmers Do"
m (New section: Get fed up. Example by rah.) |
(→Forget How Things Work (and just forget things): DNS) |
||
(48 intermediate revisions by 11 users not shown) | |||
Line 12: | Line 12: | ||
== Ask for Help == | == Ask for Help == | ||
− | * I cannot count the number of times I asked someone who knew more about the documentation system how to do something, or to double-check to make sure I got it right. - <dwuser>azurelunatic</dwuser> | + | * I cannot count the number of times I asked someone who knew more about the documentation system how to do something, or to double-check to make sure I got it right. (This, after being a documentation admin for a while on LiveJournal.) - <dwuser>azurelunatic</dwuser> |
* It's the rare code tour that I can complete without at least once asking what some bug was about. That's some deep, deep magic. - <dwuser>azurelunatic</dwuser> | * It's the rare code tour that I can complete without at least once asking what some bug was about. That's some deep, deep magic. - <dwuser>azurelunatic</dwuser> | ||
− | * I'd like to patch this bug! Or try to! Really, I would! But... ''where do I find the existing code for it''??? ;_; - <dwuser>kaberett</dwuser> | + | * I'd like to patch this bug! Or try to! Really, I would! But... ''where do I find the existing code for it''??? ;_; - <dwuser>kaberett</dwuser> (Thanks to <dwuser>exor674</dwuser>'s subsequent work and <dwuser>foxfirefey</dwuser>'s documentation, probably [[Routing_and_Template_Cookbook:_Find_the_handler_for_a_URL|the handler finder tool]].) |
+ | * I legit can't answer certain Support reqs (*coughRENAMEScough*) without looking up the doc or referring back to my notes. I've only been doing this for five years... -<dwuser>misskat</dwuser> | ||
== Make Mistakes == | == Make Mistakes == | ||
Line 20: | Line 21: | ||
* Started the arguments of a mailto: link in a wiki with an ampersand instead of a question mark, got garbage results after the address when testing it, blamed the (touchy, obscure, belligerent) mail application to its developers, and was schooled on my mailto: syntax in front of an audience of about 1,300. - <dwuser>azurelunatic</dwuser> | * Started the arguments of a mailto: link in a wiki with an ampersand instead of a question mark, got garbage results after the address when testing it, blamed the (touchy, obscure, belligerent) mail application to its developers, and was schooled on my mailto: syntax in front of an audience of about 1,300. - <dwuser>azurelunatic</dwuser> | ||
* For bug [http://bugs.dwscoalition.org/show_bug.cgi?id=4282 4282], I misunderstood what the request in bugzilla was asking and what the current behaviour was, and so my patch didn't fix what it was meant to fix AND it didn't even actually fix what I thought it was meant to fix! So it was doubly broken ... and then I got sick and had to unassign the bug, so I never got it fixed. - <dwuser>jeshyr</dwuser> | * For bug [http://bugs.dwscoalition.org/show_bug.cgi?id=4282 4282], I misunderstood what the request in bugzilla was asking and what the current behaviour was, and so my patch didn't fix what it was meant to fix AND it didn't even actually fix what I thought it was meant to fix! So it was doubly broken ... and then I got sick and had to unassign the bug, so I never got it fixed. - <dwuser>jeshyr</dwuser> | ||
+ | * Stare at a typo for over an hour before noticing it - <dwuser>deborah</dwuser> ([http://qdb.dreamwidth.net/dw/363 from qdb]) | ||
+ | * ... because you took a huge dose of meds and decided this was the best state to code in. - <dwuser>kaberett</dwuser> | ||
+ | * 1. Spend several hours beating my head against why my dreamhack won't load. 2. In desperation, ask other people to test loading my 'hack versus loading theirs. 3. In even more desperation, go to restart Apache. <code>stop-apache</code>!, I instruct my 'hack. <code> ... what?</code> replied my 'hack. <code>I--I'm not doing that thing. So I can't. Are you sure that's what you meant?</code> - <dwuser>kaberett</dwuser> | ||
+ | * "hrmmm. woah jesus. woah. [...] no,it's my bad :-p [...] I put a hook in that code to print out if someone gets a 403 by that codepath, to try to validate that assertion. But I put the hook on the wrong side of the if statement, so it was printing 'denying request from uniq' for everybody who was NOT getting a 403, which is a lot of requests. But I didn't realise that, and thought we were 403ing a million people. NEVER CHANGE, SELF" - <dwuser>mark</dwuser>, in [[IRC]] | ||
+ | * Spend days beating your head against a problem caused by a single stray <code>></code>... ( I had <code>my $foo => $bar;</code> where I meant <code>my $foo = $bar;</code> -<dwuser>exor674</dwuser> | ||
+ | * Wonder why a regular expression isn't working, and finally realize you are accidentally inserting a process ID into the regex. -<dwuser>exor674</dwuser> | ||
+ | * Misspell something, then waste 2 hours looking for problems in all the wrong places instead of looking at my own code. -<dwuser>pauamma</dwuser> | ||
+ | * Need to be reminded that June 10 comes ''before'' July 5, not after. -<dwuser>pauamma</dwuser> | ||
− | == Forget How Things Work == | + | == Forget How Things Work (and just forget things) == |
* I feel like I end up looking up most Perl functions with <tt>perldoc -f ''function_name''</tt> every time I use them. Especially <tt>open</tt> and <tt>split</tt>, for some reason. O_o - <dwuser>shadowspar</dwuser> | * I feel like I end up looking up most Perl functions with <tt>perldoc -f ''function_name''</tt> every time I use them. Especially <tt>open</tt> and <tt>split</tt>, for some reason. O_o - <dwuser>shadowspar</dwuser> | ||
+ | * I do that a lot too.<dwuser>pauamma</dwuser> | ||
* Have to look at the Template Toolkit documentation every time I have to do anything -<dwuser>exor674</dwuser> ( I should note that I am in charge of the BML to TT conversion ) | * Have to look at the Template Toolkit documentation every time I have to do anything -<dwuser>exor674</dwuser> ( I should note that I am in charge of the BML to TT conversion ) | ||
* About half the time, the morning after I write something I have to figure out what I did and how the hell it works ... it never stays in my brain! - <dwuser>jeshyr</dwuser> | * About half the time, the morning after I write something I have to figure out what I did and how the hell it works ... it never stays in my brain! - <dwuser>jeshyr</dwuser> | ||
Line 29: | Line 39: | ||
* The best thing is when I think "Oh, we should totally do this thing," and then one of several things happen. One, there's already a suggestion for it. Two, the suggestion's already been migrated to Bugzilla. Three, <em>I was the one who suggested it</em>. Four, when it's actually already been implemented. Five, when all of the above is true -- and <dwuser>denise</dwuser> lets the post to <dwcomm>dw_suggestions</dwcomm> through anyway, because she forgot too. I have lost count of how many times that's happened. - <dwuser>azurelunatic</dwuser> | * The best thing is when I think "Oh, we should totally do this thing," and then one of several things happen. One, there's already a suggestion for it. Two, the suggestion's already been migrated to Bugzilla. Three, <em>I was the one who suggested it</em>. Four, when it's actually already been implemented. Five, when all of the above is true -- and <dwuser>denise</dwuser> lets the post to <dwcomm>dw_suggestions</dwcomm> through anyway, because she forgot too. I have lost count of how many times that's happened. - <dwuser>azurelunatic</dwuser> | ||
* I work with R scripts in my "day job", and I keep trying to write Perl in R, and R in Perl. Neither works too well. - <dwuser>swaldman</dwuser> | * I work with R scripts in my "day job", and I keep trying to write Perl in R, and R in Perl. Neither works too well. - <dwuser>swaldman</dwuser> | ||
+ | * I filed a bug at work today. This is how that went: First, I noticed a little glitch with the Move Message dialog, which had been bugging me subconsciously for weeks, and just then floated to the top. I thought maybe I should file a help ticket, but thought that I'd filed enough help tickets for a while and this was minor, so I might as well save them the trouble and look for duplicates first. So I went to that product's bug tracker and searched for the most obvious keyword, which had 400 results. So I added the next most obvious keyword, which narrowed it down to about 90. Then I went down the list and started opening things in tabs, including two that by their titles looked like they might be duplicates of each other, but were entirely unrelated to what I was complaining about. After that, I read through the tabs I'd just opened, and found nothing that looked like the bug I was encountering. Then I looked at the two that might have been duplicates of each other, and found that they were in fact nothing at all alike except in the title. Then I looked at some of the other bugs that could have been duplicates of those, but those weren't very interesting. Reading through all those bugs had given me another couple useful keywords to try, so I tried that and got only about 10. Those were really quick to read through, so I did. And I closed the last tab from the bug tracker. Then I closed the help page, because I couldn't remember why I'd opened it, and obviously it was not for any good reason if I couldn't remember. Then I went back to my email and noticed that for some reason I'd stopped in the middle of moving a message. "Huh, that's weird," I thought. I looked briefly at the message to figure out where I wanted to move it. I looked at the dialog, which had been recently changed to retain the last folder that I'd moved something to, in case I was doing it a lot. I noticed that I couldn't see the highlight, and couldn't remember what it was. "That's obnoxious, I should file a bug," I said; "I can never remember anything like that longer than 30 seconds." I opened up a tab for a helpdesk ticket, and then realized what I'd just done. Yesterday I'd described my workflows to a dev as "Imagine severe ADHD, and people banging pots and pans in the background", and I stand by that description. - <dwuser>azurelunatic</dwuser> (Addendum: 3 years later, I have a shiny new [https://en.wikipedia.org/wiki/Attention_deficit_hyperactivity_disorder_predominantly_inattentive ADHD-PI] diagnosis, and the meds are working amazingly. I still forget things, but moments like this are somewhat more rare. -Azz) | ||
+ | * I know what I'm doing unless it means that forgetting the obvious will cause me to waste a few hours in which case I am guaranteed to forget the obvious >:| - <dwuser>mark</dwuser> (from http://qdb.dreamwidth.net/dw/602) | ||
+ | * "my only weakness while adminning and drinking is bind. I can do anything else, and I can edit zonefiles without messing them up, but i can NEVER remember to increment the serial number." - <dwuser>dive</dwuser> (from http://qdb.dreamwidth.net/dw/430) | ||
+ | * Note to self: support notification messages arrive a lot faster if there is a <tt>support-notify</tt> worker running. ^_^; <dwuser>shadowspar</dwuser> | ||
+ | * One time it took the customer, me, and second-tier support staring at the bounceback message and the listing of email addresses the customer had defined, and the help of a monospaced text-editor, to notice that someone (probably the customer) had transposed two vowels in their multi-vowel surname when setting up the email address. - <dwuser>azurelunatic</dwuser> | ||
+ | * From a new dev: "Shouldn't this go in the nonfree config-local.pl?" Me: "Yeah, if we had one... What, we do have one? Since when?" Since 2009, apparently... AND I've submitted changes to it before. *headdesk* - <dwuser>kareila</dwuser> | ||
+ | * My bane in DNS was the serial number. I could not remember that I needed to increment it, to the point that I cried from frustration in the college computer lab ... more than once. I went on to be the local DNS expert in my level 1 tech support team. - <dwuser>azurelunatic</dwuser> | ||
+ | |||
+ | == Forget Their Password == | ||
+ | * And their usernames. And other essential details. | ||
+ | * I not only forgot my Github password, I forgot the email address I'd registered with them! I had to email support (thankfully they were lovely about it). I also regularly forget to put the dh- in front of my Dreamhack username! -<dwuser>randomling</dwuser> | ||
+ | * This evening, I had to search email for how to log into my dreamhack, I had to try three passwords before I got the right one. Then I stared blankly at the Github password prompt and took some time to remember whether I even had a Github account. -<dwuser>kaberett</dwuser> | ||
== Break Production (the Live Website) == | == Break Production (the Live Website) == | ||
− | * | + | * Kicked over production Apache at work the other day when I thought I was merely recycling the dev website. oops... - <dwuser>shadowspar</dwuser> |
* Break the site (momentarily) during open beta launch: http://qdb.dreamwidth.net/dw/123 | * Break the site (momentarily) during open beta launch: http://qdb.dreamwidth.net/dw/123 | ||
+ | * I was trying to update some software on one of our production databases and wasn't paying very close attention. I typed 'yes' when prompted "Really uninstall mysql-server?" I quickly failed over to the other database and reinstalled it, but... oy. <dwuser>mark</dwuser> | ||
+ | * Honestly, the ways in which I've abused production due to fat-fingering a command or thinking "I'll just test this live real fast"... <dwuser>mark</dwuser> | ||
+ | * Forget to restart memcached after a database crash, buy new servers because the site was slow (hey! we got new servers!) | ||
+ | * But on the plus side, the bug I got committed to production only affected support volunteers with privs... --<dwuser>kaberett</dwuser> | ||
+ | * If you were ever wondering why, in the Rich Text version of the update page, github is at the bottom of the external accounts list? That's because I got lazy when adding it, didn't bother to capitalize it, and the list sorts in asciibetical order (capitals first). I'm a little scared to try to fix it because <em>what if I miss one and it breaks everything</em>?? - <dwuser>azurelunatic</dwuser> (hey! I finally broke production a little!) | ||
== Break Sundry Other Things == | == Break Sundry Other Things == | ||
− | * | + | * My first act at one of my early contracting gigs: creating a mail routing loop that made our own servers bury themselves under a deluge of junk email - <dwuser>shadowspar</dwuser> |
− | * | + | * Break things in their development environments. |
+ | * Break the development environments (and associated infrastructure) themselves. | ||
+ | * Back in the days (!!) of Mercurial Queues, I managed to mess up deleting patches that had been committed from my Dreamhack so badly that it took a lot of WTFing and a goodly amount of new documentation to sort it out without losing all my part-finished patches - <dwuser>kaberett</dwuser> | ||
== Shoot Themselves in the Foot == | == Shoot Themselves in the Foot == | ||
* Starting to rewrite a helper script. Think "What version of Perl does the DW codebase require?" Ah! Find it [http://dw-dev.dreamwidth.org/120658.html requires 5.10]. Great, I can use the features that are new in 5.10! Write up a [http://wiki.dwscoalition.org/wiki/index.php/Suggested_Server_Requirements#Perl_5.10 note in the wiki] saying that Perl 5.10 is required, but it's unlikely to be a problem because any machine running 5.8 or earlier is likely to be quite decrepit indeed. Return to script, finish it, give it a try. Script refuses to run. Error message: <tt>'''Perl v5.10.0 required--this is only v5.8.9.'''</tt> <dwuser>shadowspar</dwuser> | * Starting to rewrite a helper script. Think "What version of Perl does the DW codebase require?" Ah! Find it [http://dw-dev.dreamwidth.org/120658.html requires 5.10]. Great, I can use the features that are new in 5.10! Write up a [http://wiki.dwscoalition.org/wiki/index.php/Suggested_Server_Requirements#Perl_5.10 note in the wiki] saying that Perl 5.10 is required, but it's unlikely to be a problem because any machine running 5.8 or earlier is likely to be quite decrepit indeed. Return to script, finish it, give it a try. Script refuses to run. Error message: <tt>'''Perl v5.10.0 required--this is only v5.8.9.'''</tt> <dwuser>shadowspar</dwuser> | ||
+ | * I just didn't have time to figure out a real, proper way to solve the problem, so I did something nasty and clunky that happened to work - dive-o ([http://qdb.dreamwidth.net/dw/432 from qdb]) | ||
+ | * At work: Researcher: "I don't have the bandwidth to help with baseline research on the new version of your team's product, but I'll have my assistant help you." Product designer: "I didn't know you had an assistant!" Researcher: "Oh, you know them." (At this point I'd only filed 10-20 tickets against the previous version of the product.) Designer: "...No?" Researcher: "alunatic@." Designer: "OH MY GOD THEY HATE US!!!" Researcher: "No, they're just very detail-oriented." I had to bring treats to the meeting by way of an olive branch. I don't actually hate <em>them</em>, but I get pissy enough when my valid bug reports are brushed off by tier 1 tech support that they're well-nigh radioactive by the time they get passed along to the product team. My candy budget has ... not shrunk. - <dwuser>azurelunatic</dwuser> | ||
== Overcommit Themselves == | == Overcommit Themselves == | ||
− | * | + | * Time elapsed between me showing up on DW and saying I wanted to contribute code, and actually submitting my first patch: about three years. ^_^; - <dwuser>shadowspar</dwuser> |
− | * | + | * Assigning bugs to oneself in a fit of hopefulness, realise you can't manage them and sadly unassigning. Rinse, repeat :) - <dwuser>jeshyr</dwuser> |
− | * | + | * Pick up an effort-minor bug, stare at it for a while, start hashing out a spec in bugzilla comments, and before you know it end up with an entire <dwuser>dw_dev</dwuser> discussion post about what you're ''actually'' trying to achieve, with reference to several ISO standards... and then bury your head in the sand and pretend none of it ever happened. - <dwuser>kaberett</dwuser> |
+ | * Honorable(?) mention to the procrastinating computer science student(s) whose un-rate-limited web crawler (for a project that was due the following Monday) [http://dw-maintenance.dreamwidth.org/76594.html accidentally a denial of service attack]. | ||
== Get Fed Up == | == Get Fed Up == | ||
− | * Today in IRC, <dwuser>denise</dwuser> was letting <dwuser>fu</dwuser> know about her recent pull request submitting a patch for | + | * Today in IRC, <dwuser>denise</dwuser> was letting <dwuser>fu</dwuser> know about her recent pull request submitting a patch for [http://bugs.dwscoalition.org/show_bug.cgi?id=1386 bug 1386] with these words: "i gave you a PR for the revert-the-color-changes but my dw-nonfree branch is f***ed somehow so i probably screwed it up. can you take pity on me and just redo the changes on your end to commit them? [...] i'm probably going to have to do something awful to the damn thing to make it work again". I find it very reassuring that even our admins want to throw their computers out the window sometimes! - <dwuser>jeshyr</dwuser> |
+ | * I inherited a series of Excel spreadsheets trying to do a database's work, and by the end of my first time soloing, I threw a kicking, screaming tantrum & swore I'd never touch it again. My reward for this was to then build a database (with a grand total of 3 intro to db classes under my belt, plus the Microsoft help system) in Access, which meant untangling my predecessor's formulae, discovering her possibly civilly liable shoddy math, teaching myself more than I ever wanted to know about databases -- and ultimately never fully finishing it, as the company shut down my location. It was still better than dealing with that goddamn thing. - <dwuser>azurelunatic</dwuser> | ||
+ | * I just spent 5 hours getting apache to run. I haven't started looking at a bug yet. On the other hand, I improved some documentation on the way for the next forgetful returning dev to hit this issue? - <dwuser>cesy</dwuser> | ||
== Get Scared == | == Get Scared == | ||
Line 58: | Line 92: | ||
* I ask for reassurance ALL the time, usually via the IRC channel. Hell, I even asked for reassurance before creating this category in this document ... how silly is that?? - <dwuser>jeshyr</dwuser> | * I ask for reassurance ALL the time, usually via the IRC channel. Hell, I even asked for reassurance before creating this category in this document ... how silly is that?? - <dwuser>jeshyr</dwuser> | ||
* I spend a good week asking people to hold my hands and cheerlead me before every time I get going with a patch. Hell, I'm so terrified of git that I've not submitted a single patch since we started the migration - it took me months to work up the courage to migrate my [[Dreamhack]], never mind actually ''use'' git! - <dwuser>kaberett</dwuser> | * I spend a good week asking people to hold my hands and cheerlead me before every time I get going with a patch. Hell, I'm so terrified of git that I've not submitted a single patch since we started the migration - it took me months to work up the courage to migrate my [[Dreamhack]], never mind actually ''use'' git! - <dwuser>kaberett</dwuser> | ||
+ | * I have had a dreamhack since early days of the site, sometime in 2009 maybe. My first submitted patch was 2015, and done entirely via the github web interface. <em>I still have not logged in to my dreamhack.</em> - <dwuser>azurelunatic</dwuser> | ||
+ | * The first time I logged in to the data center web client, accessed the VM console, and tried to fumble around to restart the web service on a tool at work, I was audibly hyperventilating with my other hand clasped over my mouth and almost crying, I was so scared. - <dwuser>azurelunatic</dwuser> | ||
== Complain == | == Complain == | ||
− | * | + | * A ''lot'' |
− | * | + | * In IRC |
− | * | + | * Out loud when the code is not making sense (as some sections of it frequently fail to do) |
− | * | + | * Including wondering what elder god infested Brad's head when he wrote ''THAT'' omg |
− | * | + | * At code they wrote themselves just six months ago but never got around to properly commenting |
+ | * The good part to swearing in Chicken at work is that nobody's going to understand the words, just the tone of voice. The bad part is, now I am the lunatic making chicken noises at work. - <dwuser>azurelunatic</dwuser> | ||
== Help Others == | == Help Others == | ||
* I'm kind of thrilled when someone asks for help with the code tour and I can actually sort-of explain what some of the fixes do. ^_^; - <dwuser>shadowspar</dwuser> | * I'm kind of thrilled when someone asks for help with the code tour and I can actually sort-of explain what some of the fixes do. ^_^; - <dwuser>shadowspar</dwuser> | ||
− | * | + | * Spend two straight days rummaging around with ''something'' or other, and in a fit of FOR CRYING OUT LOUD write up some documentation for the wiki so at least the next person doesn't have to reinvent the wheel - <dwuser>kaberett</dwuser> |
− | * Spent seriously like a week trying to look up over and over all the commands in the wiki for upgrading code, updating the database, using the version control, etc. and finally decide it was easier to just write a huge enormous [http://dw-dev.dreamwidth.org/94822.html omnibus script] to remember them for me. The fact it helps other people is fun, too! | + | * Spent seriously like a week trying to look up over and over all the commands in the wiki for upgrading code, updating the database, using the version control, etc. and finally decide it was easier to just write a huge enormous [http://dw-dev.dreamwidth.org/94822.html omnibus script] to remember them for me. The fact it helps other people is fun, too! - <dwuser>jeshyr</dwuser> |
− | + | ||
* Realise that someone really ''hates'' a particular task that you'd find at worst pleasantly soothing, and take it off their hands. - <dwuser>kaberett</dwuser> | * Realise that someone really ''hates'' a particular task that you'd find at worst pleasantly soothing, and take it off their hands. - <dwuser>kaberett</dwuser> | ||
== Learn == | == Learn == | ||
− | * Better than half of our contributors have never programmed in Perl before, never contributed to an Open Source project before, or never programmed before, at all, period. I think that's amazing. ([http://denise.dreamwidth.org/23600.html ref]) <dwuser>shadowspar</dwuser> | + | * Better than half of our contributors have never programmed in Perl before, never contributed to an Open Source project before, or never programmed before, at all, period. I think that's amazing. ([http://denise.dreamwidth.org/23600.html ref]) - <dwuser>shadowspar</dwuser> |
+ | * I constantly learn things from people. Frontend stuff is a mystery to me, so I am always learning when I read patches submitted by our styles people. "Oh, CSS can do that? Woah." I still don't understand most of it. - <dwuser>mark</dwuser> | ||
+ | * At some point I realized that other people were (perfectly competently) answering questions that newcomers were asking, then mentioning that for more detail they could ask me. At ... some point I became some kind of expert??? - <dwuser>azurelunatic</dwuser> | ||
+ | |||
+ | == Get Invested == | ||
+ | |||
+ | * Can't face brushing my teeth? That's okay, I'll spec up a bugfix! - <dwuser>kaberett</dwuser> | ||
+ | |||
+ | == Forget to undo a just-for-a-demo configuration change == | ||
+ | |||
+ | * While demoing a half-complete new feature to a customer's CIO 3 decades ago, I added them to a group alias and promptly forget I did, so after several days of sending maybe 2 dozen nonsense messages a day to that alias, I get a very pointed ''would you please '''stop'''?'' reply. <dwuser>pauamma</dwuser> | ||
+ | |||
+ | [[Category: Development]] | ||
+ | [[Category: Community]] |
Latest revision as of 01:07, 30 January 2024
Wading into an open source project for the first time can be intimidating. There's a tendency to put established open source programmers up on a pedestal, especially when evaluating one's own abilities in comparison. (Hello, impostor syndrome!)
Real Open Source Programmers are the crème de la crème, the best of the best, the veritable titans of the programming world, right? They never make mistakes; they write flawless SQL queries in their sleep; they instantaneously comprehend any and all code they survey. Surely no mere mortal could ever hope to enter their exalted domain.
Reality, of course, is far, far removed from this caricature. Real Open Source Programmers are humans like the rest of us, with the same foibles, insecurities, and quirks common to all. Very few contributors have supernatural abilities, decades of programming experience, or an encyclopedic knowledge of computing arcana, and we are all far, far from perfect. =)
Thus, when azurelunatic shared the IRC logs of a marvellous Dreamwidth Dev Pep Talk, jeshyr came up with the idea of collecting an Epic List of Things Real Dreamwidth Programmers do. If you're a new or new-to-DW contributor, hopefully the list below will help disabuse you of any notion that you're somehow "not good enough" to contribute code -- you are more than good enough, and your contributions are heartily welcomed. And if you program, design, sysadmin, or interact with computers in any way, feel free to add any anecdotes you might have -- either signing your name or not.
With that, we present the Epic List of Things Real Dreamwidth Programmers Do.
Contents
- 1 Ask for Help
- 2 Make Mistakes
- 3 Forget How Things Work (and just forget things)
- 4 Forget Their Password
- 5 Break Production (the Live Website)
- 6 Break Sundry Other Things
- 7 Shoot Themselves in the Foot
- 8 Overcommit Themselves
- 9 Get Fed Up
- 10 Get Scared
- 11 Complain
- 12 Help Others
- 13 Learn
- 14 Get Invested
- 15 Forget to undo a just-for-a-demo configuration change
Ask for Help
- I cannot count the number of times I asked someone who knew more about the documentation system how to do something, or to double-check to make sure I got it right. (This, after being a documentation admin for a while on LiveJournal.) - azurelunatic
- It's the rare code tour that I can complete without at least once asking what some bug was about. That's some deep, deep magic. - azurelunatic
- I'd like to patch this bug! Or try to! Really, I would! But... where do I find the existing code for it??? ;_; - kaberett (Thanks to exor674's subsequent work and foxfirefey's documentation, probably the handler finder tool.)
- I legit can't answer certain Support reqs (*coughRENAMEScough*) without looking up the doc or referring back to my notes. I've only been doing this for five years... -misskat
Make Mistakes
- Forgot that you can't treat a null as a zero enough times that I printed out "Null To Zero" in a fancy font with an ornate border, and stapled it to my wall as a reminder. - azurelunatic
- Started the arguments of a mailto: link in a wiki with an ampersand instead of a question mark, got garbage results after the address when testing it, blamed the (touchy, obscure, belligerent) mail application to its developers, and was schooled on my mailto: syntax in front of an audience of about 1,300. - azurelunatic
- For bug 4282, I misunderstood what the request in bugzilla was asking and what the current behaviour was, and so my patch didn't fix what it was meant to fix AND it didn't even actually fix what I thought it was meant to fix! So it was doubly broken ... and then I got sick and had to unassign the bug, so I never got it fixed. - jeshyr
- Stare at a typo for over an hour before noticing it - deborah (from qdb)
- ... because you took a huge dose of meds and decided this was the best state to code in. - kaberett
- 1. Spend several hours beating my head against why my dreamhack won't load. 2. In desperation, ask other people to test loading my 'hack versus loading theirs. 3. In even more desperation, go to restart Apache.
stop-apache
!, I instruct my 'hack.... what?
replied my 'hack.I--I'm not doing that thing. So I can't. Are you sure that's what you meant?
- kaberett - "hrmmm. woah jesus. woah. [...] no,it's my bad :-p [...] I put a hook in that code to print out if someone gets a 403 by that codepath, to try to validate that assertion. But I put the hook on the wrong side of the if statement, so it was printing 'denying request from uniq' for everybody who was NOT getting a 403, which is a lot of requests. But I didn't realise that, and thought we were 403ing a million people. NEVER CHANGE, SELF" - mark, in IRC
- Spend days beating your head against a problem caused by a single stray
>
... ( I hadmy $foo => $bar;
where I meantmy $foo = $bar;
-exor674 - Wonder why a regular expression isn't working, and finally realize you are accidentally inserting a process ID into the regex. -exor674
- Misspell something, then waste 2 hours looking for problems in all the wrong places instead of looking at my own code. -pauamma
- Need to be reminded that June 10 comes before July 5, not after. -pauamma
Forget How Things Work (and just forget things)
- I feel like I end up looking up most Perl functions with perldoc -f function_name every time I use them. Especially open and split, for some reason. O_o - shadowspar
- I do that a lot too.pauamma
- Have to look at the Template Toolkit documentation every time I have to do anything -exor674 ( I should note that I am in charge of the BML to TT conversion )
- About half the time, the morning after I write something I have to figure out what I did and how the hell it works ... it never stays in my brain! - jeshyr
- I try to keep track of what features have actually been implemented, and what ones are still waiting, but I forget all the time. Then these get mixed in with things that LiveJournal has developed since the code fork, and again mixed with things that the shared codebase used to do, but doesn't anymore since it was ripped out by the bytes by whichever dev had the code-machete that week. - azurelunatic
- The best thing is when I think "Oh, we should totally do this thing," and then one of several things happen. One, there's already a suggestion for it. Two, the suggestion's already been migrated to Bugzilla. Three, I was the one who suggested it. Four, when it's actually already been implemented. Five, when all of the above is true -- and denise lets the post to dw_suggestions through anyway, because she forgot too. I have lost count of how many times that's happened. - azurelunatic
- I work with R scripts in my "day job", and I keep trying to write Perl in R, and R in Perl. Neither works too well. - swaldman
- I filed a bug at work today. This is how that went: First, I noticed a little glitch with the Move Message dialog, which had been bugging me subconsciously for weeks, and just then floated to the top. I thought maybe I should file a help ticket, but thought that I'd filed enough help tickets for a while and this was minor, so I might as well save them the trouble and look for duplicates first. So I went to that product's bug tracker and searched for the most obvious keyword, which had 400 results. So I added the next most obvious keyword, which narrowed it down to about 90. Then I went down the list and started opening things in tabs, including two that by their titles looked like they might be duplicates of each other, but were entirely unrelated to what I was complaining about. After that, I read through the tabs I'd just opened, and found nothing that looked like the bug I was encountering. Then I looked at the two that might have been duplicates of each other, and found that they were in fact nothing at all alike except in the title. Then I looked at some of the other bugs that could have been duplicates of those, but those weren't very interesting. Reading through all those bugs had given me another couple useful keywords to try, so I tried that and got only about 10. Those were really quick to read through, so I did. And I closed the last tab from the bug tracker. Then I closed the help page, because I couldn't remember why I'd opened it, and obviously it was not for any good reason if I couldn't remember. Then I went back to my email and noticed that for some reason I'd stopped in the middle of moving a message. "Huh, that's weird," I thought. I looked briefly at the message to figure out where I wanted to move it. I looked at the dialog, which had been recently changed to retain the last folder that I'd moved something to, in case I was doing it a lot. I noticed that I couldn't see the highlight, and couldn't remember what it was. "That's obnoxious, I should file a bug," I said; "I can never remember anything like that longer than 30 seconds." I opened up a tab for a helpdesk ticket, and then realized what I'd just done. Yesterday I'd described my workflows to a dev as "Imagine severe ADHD, and people banging pots and pans in the background", and I stand by that description. - azurelunatic (Addendum: 3 years later, I have a shiny new ADHD-PI diagnosis, and the meds are working amazingly. I still forget things, but moments like this are somewhat more rare. -Azz)
- I know what I'm doing unless it means that forgetting the obvious will cause me to waste a few hours in which case I am guaranteed to forget the obvious >:| - mark (from http://qdb.dreamwidth.net/dw/602)
- "my only weakness while adminning and drinking is bind. I can do anything else, and I can edit zonefiles without messing them up, but i can NEVER remember to increment the serial number." - dive (from http://qdb.dreamwidth.net/dw/430)
- Note to self: support notification messages arrive a lot faster if there is a support-notify worker running. ^_^; shadowspar
- One time it took the customer, me, and second-tier support staring at the bounceback message and the listing of email addresses the customer had defined, and the help of a monospaced text-editor, to notice that someone (probably the customer) had transposed two vowels in their multi-vowel surname when setting up the email address. - azurelunatic
- From a new dev: "Shouldn't this go in the nonfree config-local.pl?" Me: "Yeah, if we had one... What, we do have one? Since when?" Since 2009, apparently... AND I've submitted changes to it before. *headdesk* - kareila
- My bane in DNS was the serial number. I could not remember that I needed to increment it, to the point that I cried from frustration in the college computer lab ... more than once. I went on to be the local DNS expert in my level 1 tech support team. - azurelunatic
Forget Their Password
- And their usernames. And other essential details.
- I not only forgot my Github password, I forgot the email address I'd registered with them! I had to email support (thankfully they were lovely about it). I also regularly forget to put the dh- in front of my Dreamhack username! -randomling
- This evening, I had to search email for how to log into my dreamhack, I had to try three passwords before I got the right one. Then I stared blankly at the Github password prompt and took some time to remember whether I even had a Github account. -kaberett
Break Production (the Live Website)
- Kicked over production Apache at work the other day when I thought I was merely recycling the dev website. oops... - shadowspar
- Break the site (momentarily) during open beta launch: http://qdb.dreamwidth.net/dw/123
- I was trying to update some software on one of our production databases and wasn't paying very close attention. I typed 'yes' when prompted "Really uninstall mysql-server?" I quickly failed over to the other database and reinstalled it, but... oy. mark
- Honestly, the ways in which I've abused production due to fat-fingering a command or thinking "I'll just test this live real fast"... mark
- Forget to restart memcached after a database crash, buy new servers because the site was slow (hey! we got new servers!)
- But on the plus side, the bug I got committed to production only affected support volunteers with privs... --kaberett
- If you were ever wondering why, in the Rich Text version of the update page, github is at the bottom of the external accounts list? That's because I got lazy when adding it, didn't bother to capitalize it, and the list sorts in asciibetical order (capitals first). I'm a little scared to try to fix it because what if I miss one and it breaks everything?? - azurelunatic (hey! I finally broke production a little!)
Break Sundry Other Things
- My first act at one of my early contracting gigs: creating a mail routing loop that made our own servers bury themselves under a deluge of junk email - shadowspar
- Break things in their development environments.
- Break the development environments (and associated infrastructure) themselves.
- Back in the days (!!) of Mercurial Queues, I managed to mess up deleting patches that had been committed from my Dreamhack so badly that it took a lot of WTFing and a goodly amount of new documentation to sort it out without losing all my part-finished patches - kaberett
Shoot Themselves in the Foot
- Starting to rewrite a helper script. Think "What version of Perl does the DW codebase require?" Ah! Find it requires 5.10. Great, I can use the features that are new in 5.10! Write up a note in the wiki saying that Perl 5.10 is required, but it's unlikely to be a problem because any machine running 5.8 or earlier is likely to be quite decrepit indeed. Return to script, finish it, give it a try. Script refuses to run. Error message: Perl v5.10.0 required--this is only v5.8.9. shadowspar
- I just didn't have time to figure out a real, proper way to solve the problem, so I did something nasty and clunky that happened to work - dive-o (from qdb)
- At work: Researcher: "I don't have the bandwidth to help with baseline research on the new version of your team's product, but I'll have my assistant help you." Product designer: "I didn't know you had an assistant!" Researcher: "Oh, you know them." (At this point I'd only filed 10-20 tickets against the previous version of the product.) Designer: "...No?" Researcher: "alunatic@." Designer: "OH MY GOD THEY HATE US!!!" Researcher: "No, they're just very detail-oriented." I had to bring treats to the meeting by way of an olive branch. I don't actually hate them, but I get pissy enough when my valid bug reports are brushed off by tier 1 tech support that they're well-nigh radioactive by the time they get passed along to the product team. My candy budget has ... not shrunk. - azurelunatic
Overcommit Themselves
- Time elapsed between me showing up on DW and saying I wanted to contribute code, and actually submitting my first patch: about three years. ^_^; - shadowspar
- Assigning bugs to oneself in a fit of hopefulness, realise you can't manage them and sadly unassigning. Rinse, repeat :) - jeshyr
- Pick up an effort-minor bug, stare at it for a while, start hashing out a spec in bugzilla comments, and before you know it end up with an entire dw_dev discussion post about what you're actually trying to achieve, with reference to several ISO standards... and then bury your head in the sand and pretend none of it ever happened. - kaberett
- Honorable(?) mention to the procrastinating computer science student(s) whose un-rate-limited web crawler (for a project that was due the following Monday) accidentally a denial of service attack.
Get Fed Up
- Today in IRC, denise was letting fu know about her recent pull request submitting a patch for bug 1386 with these words: "i gave you a PR for the revert-the-color-changes but my dw-nonfree branch is f***ed somehow so i probably screwed it up. can you take pity on me and just redo the changes on your end to commit them? [...] i'm probably going to have to do something awful to the damn thing to make it work again". I find it very reassuring that even our admins want to throw their computers out the window sometimes! - jeshyr
- I inherited a series of Excel spreadsheets trying to do a database's work, and by the end of my first time soloing, I threw a kicking, screaming tantrum & swore I'd never touch it again. My reward for this was to then build a database (with a grand total of 3 intro to db classes under my belt, plus the Microsoft help system) in Access, which meant untangling my predecessor's formulae, discovering her possibly civilly liable shoddy math, teaching myself more than I ever wanted to know about databases -- and ultimately never fully finishing it, as the company shut down my location. It was still better than dealing with that goddamn thing. - azurelunatic
- I just spent 5 hours getting apache to run. I haven't started looking at a bug yet. On the other hand, I improved some documentation on the way for the next forgetful returning dev to hit this issue? - cesy
Get Scared
- I ask for reassurance ALL the time, usually via the IRC channel. Hell, I even asked for reassurance before creating this category in this document ... how silly is that?? - jeshyr
- I spend a good week asking people to hold my hands and cheerlead me before every time I get going with a patch. Hell, I'm so terrified of git that I've not submitted a single patch since we started the migration - it took me months to work up the courage to migrate my Dreamhack, never mind actually use git! - kaberett
- I have had a dreamhack since early days of the site, sometime in 2009 maybe. My first submitted patch was 2015, and done entirely via the github web interface. I still have not logged in to my dreamhack. - azurelunatic
- The first time I logged in to the data center web client, accessed the VM console, and tried to fumble around to restart the web service on a tool at work, I was audibly hyperventilating with my other hand clasped over my mouth and almost crying, I was so scared. - azurelunatic
Complain
- A lot
- In IRC
- Out loud when the code is not making sense (as some sections of it frequently fail to do)
- Including wondering what elder god infested Brad's head when he wrote THAT omg
- At code they wrote themselves just six months ago but never got around to properly commenting
- The good part to swearing in Chicken at work is that nobody's going to understand the words, just the tone of voice. The bad part is, now I am the lunatic making chicken noises at work. - azurelunatic
Help Others
- I'm kind of thrilled when someone asks for help with the code tour and I can actually sort-of explain what some of the fixes do. ^_^; - shadowspar
- Spend two straight days rummaging around with something or other, and in a fit of FOR CRYING OUT LOUD write up some documentation for the wiki so at least the next person doesn't have to reinvent the wheel - kaberett
- Spent seriously like a week trying to look up over and over all the commands in the wiki for upgrading code, updating the database, using the version control, etc. and finally decide it was easier to just write a huge enormous omnibus script to remember them for me. The fact it helps other people is fun, too! - jeshyr
- Realise that someone really hates a particular task that you'd find at worst pleasantly soothing, and take it off their hands. - kaberett
Learn
- Better than half of our contributors have never programmed in Perl before, never contributed to an Open Source project before, or never programmed before, at all, period. I think that's amazing. (ref) - shadowspar
- I constantly learn things from people. Frontend stuff is a mystery to me, so I am always learning when I read patches submitted by our styles people. "Oh, CSS can do that? Woah." I still don't understand most of it. - mark
- At some point I realized that other people were (perfectly competently) answering questions that newcomers were asking, then mentioning that for more detail they could ask me. At ... some point I became some kind of expert??? - azurelunatic
Get Invested
- Can't face brushing my teeth? That's okay, I'll spec up a bugfix! - kaberett
Forget to undo a just-for-a-demo configuration change
- While demoing a half-complete new feature to a customer's CIO 3 decades ago, I added them to a group alias and promptly forget I did, so after several days of sending maybe 2 dozen nonsense messages a day to that alias, I get a very pointed would you please stop? reply. pauamma