#month of code
Explore tagged Tumblr posts
Text
Normally I just post about movies but I'm a software engineer by trade so I've got opinions on programming too.
Apparently it's a month of code or something because my dash is filled with people trying to learn Python. And that's great, because Python is a good language with a lot of support and job opportunities. I've just got some scattered thoughts that I thought I'd write down.
Python abstracts a number of useful concepts. It makes it easier to use, but it also means that if you don't understand the concepts then things might go wrong in ways you didn't expect. Memory management and pointer logic is so damn annoying, but you need to understand them. I learned these concepts by learning C++, hopefully there's an easier way these days.
Data structures and algorithms are the bread and butter of any real work (and they're pretty much all that come up in interviews) and they're language agnostic. If you don't know how to traverse a linked list, how to use recursion, what a hash map is for, etc. then you don't really know how to program. You'll pretty much never need to implement any of them from scratch, but you should know when to use them; think of them like building blocks in a Lego set.
Learning a new language is a hell of a lot easier after your first one. Going from Python to Java is mostly just syntax differences. Even "harder" languages like C++ mostly just mean more boilerplate while doing the same things. Learning a new spoken language in is hard, but learning a new programming language is generally closer to learning some new slang or a new accent. Lists in Python are called Vectors in C++, just like how french fries are called chips in London. If you know all the underlying concepts that are common to most programming languages then it's not a huge jump to a new one, at least if you're only doing all the most common stuff. (You will get tripped up by some of the minor differences though. Popping an item off of a stack in Python returns the element, but in Java it returns nothing. You have to read it with Top first. Definitely had a program fail due to that issue).
The above is not true for new paradigms. Python, C++ and Java are all iterative languages. You move to something functional like Haskell and you need a completely different way of thinking. Javascript (not in any way related to Java) has callbacks and I still don't quite have a good handle on them. Hardware languages like VHDL are all synchronous; every line of code in a program runs at the same time! That's a new way of thinking.
Python is stereotyped as a scripting language good only for glue programming or prototypes. It's excellent at those, but I've worked at a number of (successful) startups that all were Python on the backend. Python is robust enough and fast enough to be used for basically anything at this point, except maybe for embedded programming. If you do need the fastest speed possible then you can still drop in some raw C++ for the places you need it (one place I worked at had one very important piece of code in C++ because even milliseconds mattered there, but everything else was Python). The speed differences between Python and C++ are so much smaller these days that you only need them at the scale of the really big companies. It makes sense for Google to use C++ (and they use their own version of it to boot), but any company with less than 100 engineers is probably better off with Python in almost all cases. Honestly thought the best programming language is the one you like, and the one that you're good at.
Design patterns mostly don't matter. They really were only created to make up for language failures of C++; in the original design patterns book 17 of the 23 patterns were just core features of other contemporary languages like LISP. C++ was just really popular while also being kinda bad, so they were necessary. I don't think I've ever once thought about consciously using a design pattern since even before I graduated. Object oriented design is mostly in the same place. You'll use classes because it's a useful way to structure things but multiple inheritance and polymorphism and all the other terms you've learned really don't come into play too often and when they do you use the simplest possible form of them. Code should be simple and easy to understand so make it as simple as possible. As far as inheritance the most I'm willing to do is to have a class with abstract functions (i.e. classes where some functions are empty but are expected to be filled out by the child class) but even then there are usually good alternatives to this.
Related to the above: simple is best. Simple is elegant. If you solve a problem with 4000 lines of code using a bunch of esoteric data structures and language quirks, but someone else did it in 10 then I'll pick the 10. On the other hand a one liner function that requires a lot of unpacking, like a Python function with a bunch of nested lambdas, might be easier to read if you split it up a bit more. Time to read and understand the code is the most important metric, more important than runtime or memory use. You can optimize for the other two later if you have to, but simple has to prevail for the first pass otherwise it's going to be hard for other people to understand. In fact, it'll be hard for you to understand too when you come back to it 3 months later without any context.
Note that I've cut a few things for simplicity. For example: VHDL doesn't quite require every line to run at the same time, but it's still a major paradigm of the language that isn't present in most other languages.
Ok that was a lot to read. I guess I have more to say about programming than I thought. But the core ideas are: Python is pretty good, other languages don't need to be scary, learn your data structures and algorithms and above all keep your code simple and clean.
#programming#python#software engineering#java#java programming#c++#javascript#haskell#VHDL#hardware programming#embedded programming#month of code#design patterns#common lisp#google#data structures#algorithms#hash table#recursion#array#lists#vectors#vector#list#arrays#object oriented programming#functional programming#iterative programming#callbacks
20 notes
·
View notes
Text
it is november, and yesterday it felt like it was supposed to be snowing. in boston, november used a winter month, not a fall month. it is supposed to be chilly; rarely capping over 45F. it is a sweater-and-jacket month. it is a "maybe a scarf too" month. in my childhood, november meant blizzards and sleet.
it did not snow. tomorrow the weather predicts a high of 76.
i have spent so many years of my life studying the longterm possibilities of climate change - the culmination of capitalism wreaking havoc on the bodies of people, animals, plants - but every so often i am still shocked by something small and personal.
in a hundred years, when someone goes outside in boston - will they know the feeling of "snow in the air"?
i know it's a learned feeling, a sensation that maybe only longterm experience can teach. a few years ago, i was walking with my friend who had just moved up from the south. i said it smells like snow and she gave me this look like - what the fuck. i said it feels like snow too, which didn't help. she looked up to the bright blue sky and then back at me and then back at the sky. 12 hours later, we had 3 inches. you can just tell if it's going to snow.
except i can't tell, anymore. i stand outside in a tee shirt and watch my dog dance around a lake. we're in a drought and the skin of the water has peeled back twenty meters. the lake is tamed, quiet, puddlelike and sour. my pokemon go app warns there's a weather condition in my area.
my dog gets too hot from running and sits in the water and i want to laugh about his long frame and how awkwardly he sits - and i can't. some simian part of my brain is scratching the walls. it was supposed to snow. it was supposed to snow, but now it's warm instead.
during the last full solar eclipse, the dogs and the birds and the crickets went crazy under utter darkness. we laughed at them then, promising it will all be okay in a moment. but some part of me is still locked in that long night: some animal sensation.
something is wrong, my body says. i can't afford eggs or rent. i go outside to watch a sunset and listen to birdsong. i don't bring a jacket. allergies are killing me this season, allergies i didn't have as a kid. everyone comments that halloween has started to feel strange, offkilter. that it's hard having "holiday cheer." my body thinks it's april, and then it thinks we're in september, and then june.
something is terribly wrong, she whispers. go outside. it is supposed to be snowing.
#spilled ink#warm up#.....#i had 2 people close to me die within a month#sorry for not being around#on the other hand#my friend code on pokemon go is#4747 8104 8180
16K notes
·
View notes
Text
✦ Fashionably late ✦
#own art#own characters#CanisAlbus#art#artists on tumblr#Machete#Vasco#anthro#sighthound#scenthound#dogs#canine#animals#modern au#I wanted to finish this for halloween but in the end couldn't quite manage#I hope you had nice time :>#I started thinking about what costumes they would choose months ago and changed my mind several times for both of them#I had this false visual memory about Jack Skellington's ribs being visible like that#but when I went looking for references it doesn't seem to be the case#I could've sworn#I adore Howl's jacket#I added little stars to it#no particular reason#Howl is somewhat star coded isn't he and Vasco has this sun motif going on#I thought it suited them both
14K notes
·
View notes
Text
Surely this will have no negative consequences whatsoever!
#dbhc#dbhc art#dbhc grian#dbhc mumbo#dbhc s8#art escapades#grian#Mumbo#mumbojumbo#mumbo jumbo#hermitcraft#hermitcraft au#grumbo#hermitcraft s8#hc watchers#watchers#watcher grian#watcher mumbo#tw eyestrain#tw eye contact#tw eye imagery#tw eldritch#tw glitch#tw horror#not sure what all to tag here so pls lemme know if I should add anything#yeah I took the soul sharing thing in a very ‘’undertale’’ light#those aus where Asriel and frisk share a soul so asriel can maintain his form really changed me /silly#also this was a great idea grian. yeah. yeah okay. give the 6 month old robot with an ai soul the eldritch all seeing powers of a watcher#good idea#love the ‘woah’ page… something about grian being able to see entities at their ‘core’…. the androids being code-contained vessels…
10K notes
·
View notes
Text
happy pride month creepypasta fandom. i redrew this meme i made a year ago that got thousands of notes and wow am i surprised it got that many because it was very shitty
#creepypasta#creepypasta fandom#creepypasta fanart#creepypasta art#ticci toby#creepypasta ticci toby#ticci toby creepypasta#ticci toby fanart#slenderman#crp#the code there translates to: it is pride month toby. you know what that means.
2K notes
·
View notes
Text
self indulgent doodle of scarian as characters from a comic i made in 2022 to cheer myself up
#desertduo#scarian#my art#i was thinking of them one day and thought#wow they are very desert duo coded#i wish i could turn it into a game someday...#something like in stars of time or dead plate#but i have to learn how to code and do sprites#i have so many story plots in my head. too much. im just a little guy#pay rent at least . sobs#head in hands. get out of my head get out of my head get out of my head#sigh.#im so tired dude#i wish i could do the things i want to do#sorry for venting in the tags i havent been feeling the best the past months
1K notes
·
View notes
Text
behind the scene is lbh telling (begging) sy that he can pluck his feathers whenever he needs to write (and preferably with his mouth)
previous || extras || next
#the hex code of lbh's eyes and zuiyin is B00B13 btw#scumponies#i actually drew so much i feel like i was abt to puke#that could also just be the sour cream i ate earlier that was supposed to be used by 2 months ago#i hope i go out and isekai shen yuan style 🩷#this lowkey took my soul#svsss#scum villain's self saving system#mlp#mlp svsss#liu qingge#shang qinghua#mobei jun#luo binghe#shen jiu#svsss fanart#lqg#sj#mbj#sqh#lbh#my art
2K notes
·
View notes
Text
Happy pride to those celebrating. Unhappy pride to those not
#art#fanart#drawing#digital#painting#fan art#logurt#wolverine#logan howlett#nightcrawler#kurt wagner#lgbt#lgbtqia#lgbtq+#pride#pride month#xmen#x-men#x men#i hate the inconsistency of the xmen tags but whatever#anyway happy pride yippie#sadly being gay is illegal in my country so the horrors persist but so do i#also i am a trans wolverine truther. once again stating that there is something so inexplicably ftm coded about this dude#and yes that second blue-green panel is low key softcore#i am also a shiny-black-cat kurt truther#that man is not blue he's jet black just had very shiny fur. i will die on this hill#and with ear tufts. catboy coded
1K notes
·
View notes
Text

Big bird protecting his baby bird :3
#batfam#batfamily#dick grayson#nightwing#damian wayne#robin#robin v#I've had this in my drafts for months#idk where the original image is even from at this point lol#anyway absolutely LOVE this cute art style#and dick's stance#very mama bear coded of him#and little damian!!!!#dreamer queue#truth and justice 16
8K notes
·
View notes
Text
The siblings ever
#very jazz and danny fenton coded#laurance zvahl#cadenza zvahl#mcd#minecraft diaries#digital art#digital drawing#fanart#my artwork#fan art#aphmau#character design#laurance is a couple of months older than cadenza but hes so tiny as a kid because he was malnourished before being adopted#red hair laurance#i know meteli was so sick of the two of them lmao#pumping out posts for a mostly dead fandom one after the other. dndads fans WISH i was this dedicated to them#i am btw give it a like a month or so and ill be back on my bullshit
2K notes
·
View notes
Text
Genuinely, and I mean this kindly, but learning to recognize bait and not engaging with it will change your fandom experience.
#once you realize : oh theyre just trying to rile me up and i dont care to give them a response#everything is less stressful#i keep seeing the same arguments rehashed every six or so months#i know a lot of people are new and dont know but the trolls youre arguing with do#theyre trying to burn yall out and send you packing#also i do think there is something very funny about someone spending all that time color coding a bait post#and no one engages with it like wow you tried#i understand the passion people feel AND at some point you gotta let it go#anyway i do feel like the best way to sustain longevity is to just block the tags/people who enrage you
2K notes
·
View notes
Text
the wizard of waterdeep ✨💜🔮
#baldur's gate 3#bg3#gale dekarios#gale of waterdeep#so guess who’s been in bg3 purgatory for months it’s MEEEE#i love this resident v autistic coded wizard i love him sm#him and my main tav apollo are in LOVE#also this will be a print at London mcm coming up!!
3K notes
·
View notes
Text
CW: Suggestive
Pretty girl, put down your pen, I'll show you how it's done
#art#digital art#fanart#fem!kim kitsuragi#fem!harrier du bois#genderbend#gender bender#gender bent#disco elysium fanart#disco elysium#kim kitsuragi#de kim kitsuragi#de kim#de harry#harry du bois#harrier du bois#kk#hdb#kimharry#harrykim#lesbian#bisexual#queer#pride month#suggestive#old women yuri#fem kim kitsuragi#fem harry dubois#carabiner code#disco sapphics
505 notes
·
View notes
Text

Sketches of my man in code Veronica
#I love wesker in code Veronica#It took me a while but for the first time in months I'm drawing more relaxed than before so I'm happy#albert wesker#resident evil#fanart#albert wesker fanart#wesker#residentevil#resident evil code veronica#code veronica#resident evil fandom#resident evil fanart#resident evil art#digital drawing#digital sketch#sketch
546 notes
·
View notes
Text
the duality of trying to explain that some relationships in fictional media can and should be interpreted as platonic because friends/family CAN IN FACT be very close and affectionate without it having some romantic context behind it and that we shouldn’t take away from ace and aro representation by using ‘oh but aces/aros can still be in relationships!’ As a simple excuse to ship them
AND
trying to explain that some characters have heavily queer-coded/romance-coded relationships that may have not become canon, but are quite obviously there if you pay attention and that some explicit relationship definition (especially for queer relationships) might be replaced by using best friend/family terminology because of censorship.
#satosugu is a great example for the second one.#lgbtqiia+#lgbt pride#pride month#trans#gay#bisexual#lesbian pride#nonbinary#asexual#aromantic#aroace#aroace representation#aroace pride#aspec#aspec representation#queer coding#platonic#shipping#fandom#pansexual
406 notes
·
View notes
Text
Incorrect 9-1-1 + text posts (part 41/??) prev || next
#911EJTP#911+textposts#I HAVENT POSTED ANY OF THESE IN OVER 2 MONTHS IM SO SORRY#buck is so dog coded tbh#like… that is a shelter dog dude. he’s been returned to the shelter so many times he’s nearly given up#911#911 abc#911 on abc#911 textpost#911 fandom#911 text posts#incorrect quotes#incorrect 911 quotes#incorrect 911#evan buckley#buck 911#evan buck buckley#911 buck#evan buckley 911#bucktommy#<- target audience#(top!buck bottom!tommy supremacy)
704 notes
·
View notes