The code below is one of my earliest Python codes and I find it terribly cute :3
My code input:
print("WELCOME TO PYPET")
bunny = {
"name" : ...
For further actions, you may consider blocking this person and/or reporting abuse
Not that much. After all, my old code is from when I had less experience. I sometimes rewrite my old projects, to help me learn more. Then I get more experience, and the cycle repeats. I'm sure I'm not the only person like that.
This is exactly what happens to me. =
As my mentor said just yesterday:
No offense, he is a tough one. And this was said in the context of an internal chat for devs with, at least, a few years of experience.
I want to assume good faith and file that under an invocation of the olympic motto "faster, higher, stronger". Yet, I am not sure if such a view point doesn't degrade into some kind of programmer machismo that in the end impedes growth in adjacent areas, that are of equal (if not higher) importance the more senior you get. Investing in programming alone yields diminishing returns.
I cannot agree or disagree with you here because I don't understand what you mean by programming. But it seems, that you are meaning "programming in small".
Certainly, I wasn't verbose enough about my mentor and our cool underground OOA/D cult.
I feel like this is a really bad take from an insecure person.
Why would you feel shame over your past contributions? Does your code not work? At least this would make sense to me, because if your implementation falls down after two months, then perhaps you were doing it wrong in the first place.
I mean, I did a lot of stupid s*t when I was younger, because I didn't know any better. If I was still doing the same stupid s*t now, I'd probably feel ashamed and it would be valid to say that I have not progressed as a human.
But come on! Why do you need to be ashamed of your past work in order to progress in your programming?
I don't feel ashamed of my eight year old because he can only count to 10 in binary: I feel proud, because he's able to count to 10 in base2! That's amazing for someone with little to no experience.
You should feel proud of your work and be kind to yourself. You delivered something that work(s/ed). It's the reason you're here today, and not quitting for another profession because some brogrammer flexed their muscles to make you feel inferior.
Hopefully your dev team are secure enough to ignore this kind of brain-rot being passed of as sage advice.
In our underground, Spartan-like software architects' school, we don't do wimps or whiners.
Everyone picks their own comfort zone, pace and their view from the window.
This is ours ¯_(ツ)_/¯
Come on, if you're able to spot a major flaw in your programming or architectural decisions from just two months ago, and if you're brave enough to not only feel ashamed but also to rush in and fix it, that's a real reason to be proud of yourself :)
It is always easy to bring pawns up and "let it work for the time being, this is working innit"? naah))))
But of course, this is us, and unfortunately (or fortunately?), this approach and mindset doesn't work for most people. Everyone deserves to live their lives filled with happiness and joy. Keep spreading the love, my friend <3
Taking pride in being ashamed... how quaint.
What happens when you discover defects introduced by other team members? Does everyone in your team dogpile on them? In my experience these kinds of attitudes in teams don't produce wins: quite the opposite.
Also, does everyone in your team go to crush weights in the gym together, and do you go before or after throwing the wimps off the cliff? I'm dying to know so I can incorporate this into my routine :P
Spartans are famed for their military prowess, individuals putting aside their little egos and working together as a single unit - although mostly applied to enslaving the helots to do all of their work for them. The modern day software equivalent would be outsourcing your work to India and then showboating around while you take credit for the work.
It's a false equivalency to say that people who don't feel ashamed of defects in their software won't fix said defect. You don't need to be ashamed of yourself to roll up your sleeves and fix a problem, and not feeling ashamed of your past choices doesn't mean that you'll say, "Nah mate, she'll be right." In my experience it's usually the people who are ashamed of their mistakes who try and cover them up, not the other way around.
More to the point, the assumption that your code is "shit" is the only reason for defects to appear in your system is not a good starting point for resolving issues. Yes, I think it's healthy to assume that you are at fault and work on eliminating yourself as the cause first. But that's literally so you can avoid the blame game - not buy into it like your mentor seems to suggest.
Text book example would be a regression, which could have happened through no fault of your code, and possibly been introduced by someone else. So back to my first question, do you reach for the dunce's hat and pile on that person, or do you kindly explain what's happened and work with your team to resolve the issue?
Here's a thought: try skipping the pride and the shame and go straight for humility.
Anyway, point is that your decisions two months ago produced a working implementation and passed whatever checks and multiple stakeholder approvals to get shipped in the first place (this is a team sport).
And some friendly advice from a greybeard who has spent countless hours mentoring impressionable young lads such as yourself: get a mentor who is not shit and is secure in the fact that they have no clue. <3
It is a tale of two kitchens code does not age gracefully, even if it started out clean, it accrues technical debt over time. The decisions you made originally probably seemed like a good idea at the time.
We have all been there:
What does this do 🤔️ ?
What 😕️?
WTF 🙄️?
WTAF 🤬️⁉️
This is so wrong on so many levels 😡️ !
How did this even work 🤯️?
Who wrote this 💩️ ?
Ooooooops 😊️🤫️🤐️😇️
You can format your code by putting it inside backticks - here's a
Markdown cheatsheet about embedding code. It's particularly important for Python since whitespace is significant to the language and without using proper formatting, your program looks like it's all left-aligned :)
Much respect for the PyPET(s) 😁
My oldest work is not online (it's printed on fanfold, in the back of my masters degree project report from 1989), but the stuff I did a couple of years into the 90s was on 1/4" backup tapes, so a few years ago I did the decent thing and published here:
dev.to/phlash/everyone-should-writ...
I'm not ashamed of this work, it's where I was after 4ish years of professional development, and this was a fun side project, which taught me a lot about structuring both production code and tests to stay sane.. although the less said about the compiler warnings the better!
Thank you so much! 😊
Woah, awesome! Oh, and writing my own operating system has truly been on my mind! You seem to be quite the hustler, you are AWESOME! ✨
I used to be — now I'm self-assured enough to be proud of my progress without much regard for shame for the old thing.
There's only one project that I can say I'm ashamed I wrote. It was a Computer Graphics class, and we had to implement simple low level graphics algorithms (drawing lines, polygons, clipping, etc) in a series of assignments. I chose to do it in the language I knew best at the time, Perl. It was definitely not my best work.
Besides that, no because I always tried my best, it did the job (and hence I got paid, when it was for work), and even mistakes are learning opportunities.
Part of me really wants to see that 2D graphics in Perl 😁, I did something similar very recently in Java: Graphics.java
Performant it ain't, but it works (tm).
As for old code... mine is on fanfold printout from 1988(!), and I'm certainly not ashamed of it, although it's well past it's useful period, even if the language is still alive and well (thanks C!)
Not at all. When I or someone else looks at my old code, I hope they say, "You have come a long way."
Which is also an excellent way of saying I have learned and expanded my understanding of the problem I was solving.
This is also something I learned to get over real fast when I started live streaming development thanks to all the back seat coders :)
This is an excellent way of looking at your old code! I like to see my code this way as well :)
That is why someone invented Refactoring. The "old code" is your creation. It is to be approached, improved, refactored and then feel good about it. When you are done you know that you are a better programmer!
No I am not, It reminds me how far I came and I smile a little bit whenever I see my old works. Also my old projects are my fav I keep working on them whenever I got time and try to improve them as much as possible. And yeah its good.
In a word, no.
I do feel some negative emotions when previously working implementation stops working, even though it's remained unchanged for
[insert age of last commit here]
... But never shame.If there is any emotion, thought or action that my previous work inspires in me, it's the same when one I experience when working with less knowledgeable or experienced developers: kindness.
As others have said, I'm not ashamed of it, because we all sucked at it when we were beginners, and we all still suck at it sometimes, that's just life. I would only be ashamed if I lied, cheated, and/or stole!
It isn't necessary to feel shame in order to look back and understand that you would do things differently today, knowing that your that your knowledge and experience have grown since then. Maybe better to think of it as feeling proud about how far you've progressed.
Sure no, that is what I was studying with) I had a period in time, when I hided my projects from others, but later I started to view some other person`s projects and saw that everyone make silly mistakes and use inappropriate methods.
Exactly! Well said!
I miss my old code tbh. Lack of knowledge made me more creative in finding solutions with rudimentary tools. Building Command Line games built 100% off of 600 line if else trees was such an interesting time. Though nothing I wrote in my first year of code was considered "good" I was so proud of it. So no, I was proud then and I still am today.
To be honest, in terms of best practices and design patterns, my old code is pretty bad. Apart from that, there's nothing to be ashamed of. It has become a silent witness or proof of my coding journey.
It's kind of nostalgic as well, since the first time I wrote code was during college back in 2019 using C++. I created a shop invoice with it.
Well, I guess after 40 years of coding I would be in trouble when I'd be ashamed of all the things I did in the past. I am just amazed how far I and technologies have come... and in some sense still feel the same.
I wouldn't use the word "ashamed" for my old code, but I'd say I'm "impressed" by how much more structure and intentional my code is now when looking at old code.
I hope looking back in a few years, I'll continue to be impressed by the progress I've made. We're all the worst and best versions of ourselves at any given point!
I find my old code might not be great, but it described someone who cared and tried to do a lot despite the lack of experience. This is why I'm not a big fan of judging someone's output as "Bad" to "Great". Even in the "Bad", there may be parts that are great that should be acknowledged.
No, and no one should feel ashamed. What you wrote in the past is a reflection of what you knew at that time, and feeling like it is bad code is just a sign that you have improved. No need to feel ashamed.
You should not be ashamed of your old code because it is a sign of your learning journey and how much you have improved over time. Coding is a skill that requires constant practice and refinement, and there is always room for improvement.
Have fun with your Pypets 😊
Well said! I totally agree with you. Thank you! 😁
Ohhh very ashamed. I look at them an cringe, want to re-write them but I understand that it's from a time when I didn't have as much experience as I have when looking back at it.
Not as much as I hate my older stuff in other disciplines (which I dispise), the most hatred I get out of it is trying to understand it but that'd be the same for anyone else's shitty and uncommented code
it looks good for a practise for dict in Python
Sometimes, reviewing old code reveals many great things, especially from 10 years ago, even though I lacked experience at that time
No, I’m not. I feel estranged from much of my code as work-for-hire code is not mine. It doesn’t matter how proud I am of my accomplishments, I still don’t own them.
You should be, that shows that you grow.
Not at all. It's part of my old journey. Of course, my old code is not that good, but I was learning, and making mistakes, and I'm not ashamed of it.
Only as much as seeing my pictures from high school.
I use javascript, which means I am ashamed of all code I write :)
What do you mean? I know a little Javascript but I still do not get what you meant.