I’m certainly not against doing your work in public if that works for you, but I wish GitHub were better at encouraging people to label their half finished experiments as half finished experiments.
This post is inspiring me to go clean up my old repos on Github, and perhaps wax nostalgic about my previous works, even the awful ones.
I wish I kept the earlier stuff from my Amiga days.
int index = 0; while (!element.equals(sortedList.get(index)) && sortedList.size() > ++index); return index < sortedList.size() ? index : -1;
For me, the amount of magic in my code has been significantly reduced.
(First time I've ever seen that word pairing!)
I also enjoy the opposite: when people pronounce words incorrectly because they've never heard them aloud, only in writing.
I've embarrassed myself several times in this regard.
I think we should all behave more like the later; appreciate your growth mindset, and remember 5 years from know whatever you're doing now might be unrecognizable.
But in general, share what you can. Don be embarrassed, even a stern code review will help you improve, but I very rarely see 'stern reviews' outside of Linux Kernel development :)
I remember writing monolith methods/functions with 1000+ lines of code.
I remember manually generating SQL as a string for ado.net. I also remember being unaware of stringbuilder and doing tons on += on strings and wondering why the application was slow.
Looking back now at my first time, it seems funny more than embarrassing. I remember it fondly.
I am not quite sure how this is going to work out as I am self-taught coder .... https://blog.mypad.in/