Alright so I find myself liking C# and the .NET framework. For anyone who hasn’t delved into understanding what it is and WHY it is: .NET is, like all other frameworks, a collection of tools for developers. Except this one is on steroids, and tailored to Windows BY Microsoft, meaning you can make awesome Windows applications without tracking down everything you need. It’s all just right there.
C# is basically C++ with all of the .NET adapters actively available. You can also think of it like Java but instead of running inside of the JVM, it runs on Windows.
Microsoft’s documentation is also really well-written for it, which is nice.
BONUS in case anyone is curious: ASP.NET is a framework that extends the overarching .NET to provide tools specifically for web application dev. I haven’t gotten far into the ASP documentation yet so I can’t say much about it other than that.
Went to React’s website to learn the Tic Tac Toe tutorial (it’s about time I got around to it) and was pleasantly surprised to see this. Way to go, React.
C is a shot of American Rye (100 proof, bottled-in-bond)
Python is a Ramos Gin Fizz
Javascript is a bone-dry, dirty, vodka martini
React a Cosmopolitan
Angular an Appletini
Express an Espressotini (yea I say that instead of “espresso martini” because I find it more fun this way)
C# is a Sazerac with equal parts cognac and whiskey, and the person making it will HAVE to tell you how “a lot of people say it’s the first cocktail, but that’s not really true”
if i were a drink i’d be cherry vanilla coke
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.
Looking at you, C++
I won't ever take you back.
And yet it hurts that you don't even want me to.
Has anyone else avoided a programming language because it’s “too mainstream” for them?
Then 2 weeks after this, looking at the chaos that is your disorganized, jumbled mess of code angry and disappointed in yourself.
Rinse and repeat.
Am i the only one who does this
Guess who jumped into his first React project without any planning and now continues to add features thereby creating a monstrosity of spaghetti code. THIS guy!
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.”
I like that a Razor pages app (and really ASP at large) makes organization effortless, but I do not like how complicated a simple project becomes because of that organization.
Yes yes I know that it’s not made for small projects and it exists for large, enterprise endeavors, but still. Just let me pass data to my pages without 3 hours of configuration.
he/himComplaining on Tumblr is a good alternative to punching my computer screen, right?
72 posts