Me, offering my teammate the bug fix story that will certainly drive them to insanity
I have so much respect for the ToString() method of Pandas Dataframes in Python.
If you’re wondering why, it’s because I’m currently trying to make a halfway decent depiction of a C# matrix multidimensional array that just puts my hashkeys in the right places and things are not going well at all.
Happy Pride!
Alan Turing, one of the best computer scientists and programmers ever, was gay. The world lost him at a young age because he wasn’t treated with the kindness every human deserves.
Be nice to your fellow person. Be they a mathematical prodigy or an innominate stranger, everyone deserves to love and be loved.
Some articles about Turing:
https://medium.com/lessons-from-history/alan-turing-a-prodigy-whose-life-was-curtailed-for-being-homosexual-5bd5e686c1c0
https://www.washingtonpost.com/news/the-switch/wp/2013/12/24/alan-turing-was-a-war-hero-prosecuted-for-being-gay-he-finally-got-a-pardon/
An epistle on an “oh duh” moment I just had while pondering switch functionality in Python.
Every couple of months when I get back into some hobbyist Python development I find myself DuckDuckGo-ing “switch in Python” and am subsequently always reminded that that’s not explicitly a thing. You, of course, get that functionality from dictionaries.
I’ve always thought that was dumb, but today I was considering it and realized that it’s all because of the interpreted nature of the language. Switch statements have the wicked performance improvements over if ladders in compiled languages because the switch tells the compiler to put a bunch of branches in the intermediate assembly so a lot of unnecessary condition checks are skipped.
Without in-depth knowledge of how the interpreter works, it now becomes clear why you have to use the dictionary. It’s not the Python lords being pretentious and imposing their pythonic ways; you have to be more explicit to the interpreter about where to look for the logic to run because the interpreter doesn’t craft intermediate assembly, it just plows straight through. So a switch in Python would ultimately perform no better than an if ladder.
That doesn’t mean a switch wouldn’t make me happy, mind you.
Scene: I’m sitting in my dorm room the first semester of college.
I finally get my code working and am doing the final cleanup before submitting. I delete some lines that I had commented out because, you know, I was scared to get rid of them at the time in case they became useful later.
I run my code after deleting the aforementioned COMMENTS just to make sure everything still works. As expected, it works! Then it doesn’t. Then it works again! And again! Then it doesn’t. I put the comment back in just in case that’s what was keeping everything together (see: superstition) and it works for 6 straight tests, which thoroughly confuses me.
I ultimately found out that the problem was not, in fact, with the comments that do nothing but actually with an integer I was declaring and incrementing without ever initializing, creating “random” behavior.
It really be like that sometimes
Before and after adding css animations
before and after tie dye
It has builtins that let you change the color of the text in the console! By far my prettiest Hello World to date.
Has anyone else avoided a programming language because it’s “too mainstream” for them?
There are only 2 options when I’m writing my commit messages:
1. “I haven’t pushed in a while so here are a LOT of changes to at least 7 files.”
2. “I hate myself because I worked for 2 hours tonight and as I write this message I realize that all I have to show for that time is a 3 line for loop.”
For those new to code culture, I encourage you to revisit the original post’s comment section numerous times over the coming weeks.
Because the battle over that choice for H is going to age like fine wine. Sure, sure, there’s a definitively right answer. But what power does definition hold in the face of emotion?
Maybe we can make a scavenger hunt out of it. Point values for potential phrases below:
{
“Describes” : 1, “Instructions” : 2, “Markup Language” : 3, “Haskell” : 5, “Turing Complete” : 8
}
The only statement I’ll go on record saying is that whichever side you take, I respect you and you’re safe here.
Learn alphabet with programming languages
he/himComplaining on Tumblr is a good alternative to punching my computer screen, right?
72 posts