I saw this post today and it took me back to my only CS class which was taught using Java. I'll post my embarrassing final project below π
No judgment: share the most embarrassing code you've ever written!
I saw this post today and it took me back to my only CS class which was taught using Java. I'll post my embarrassing final project below π
No judgment: share the most embarrassing code you've ever written!
For further actions, you may consider blocking this person and/or reporting abuse
Otu Michael -
klyse -
Ben Halpern -
Andrew Baisden -
Once suspended, peter will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, peter will be able to comment and publish posts again.
Once unpublished, all posts by peter will become hidden and only accessible to themselves.
If peter is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Peter Kim Frank.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community safe. Here is what you can do to flag peter:
Unflagging peter will restore default visibility to their posts.
Top comments (12)
I write open source code, so all my shame is public
Its not so much a piece of code itself, but my most embarrassing moment was when I got called behind the pc of a team mate and he showed me that his password was visible in localstorage, because the login I implemented put it there... I put the credentials instead of the token in localstorage and then I messed up further, by adding the password to the token which isn't private either, just slightly harder to decode π€¦ in the end I did it right, but that was a painful way to learn π
@peter Are you implying that post had some embarrassing code? ;)
I don't have it because I don't own that code (a former employer does), but I had a commit that I later had to fix in production with the comment "The only explanation I have for this past code is that I was coding on painkillers at the time". I can't recall the specifics of what the code was, but I still remember the message of the fix commit.
The first EJB 1.0 code that I wrote trying to figure out what the hell it was supposed to be useful for and why it existed.
For the record, it was useful for and existed only for billing lots and lots of hours as a consultant ...
Can't reproduce exactly but goes like this (pseudo code):
Took me a while to understand that in the end it was just procedural code and no enum, switch or for loop were required. (Ps it was probably a 200 lines function! Which in itself is embarrassing)
Most of my most embarrassing code is lost to the sands of time.
But when I was a huge n00b at frontend stuff, one of my first projects was a web game for practicing Japanese kanji readings, and it was disgusting. Not only did I suck at CSS, I sucked really bad even just at coordinating colors too.
It got reviewed here and you can see some screenshots. Just hideous, I cringe to see it now.
I am still bad at frontend, but not as bad. I have polished this project up a bit since and it's far from amazing but I'm no longer ashamed of it :)
tbh I've seen worse design from "professional web designers" π€·ββοΈ
Cursing Css for an hour before I turned my monitor brightness up...
Some comments may only be visible to logged-in visitors. Sign in to view all comments.