#software humor
Explore tagged Tumblr posts
Text
mentalisttraceur don't get mad at someone else's software before it turns out the problem is in your own software challenge (impossible difficulty)
9 notes
·
View notes
Text
Developer: I consent.
Language: I consent.
Isn't there somebody you forgot to ask? [Every other developer who has to read this code after you.]
10 notes
·
View notes
Text
Thousands of replies and no one has properly helped OP!
First, since Python won't let us have an if-elif chain that's as long as we need in the source itself, we need a way to generate it. Generators are perfect for this, and very Pythonic:
def _is_even_branches(): yield 'if a == 0: return True' number = 1 while True: yield f'elif a == {number}: return False' number += 1 yield f'elif a == {number}: return True' number += 1
That generator never finishes, which is good design because it lets the calling code control how high to generate.
Next, we're going to need a better Python - but we can optimize by just implementing the subset of Python that we need: it only needs to interpret lines in the form `(if|elif) a == <integer>: return (True|False)`:
def _is_even_evaluator(lines, a_value): for line in lines: condition, body = line.split(": ") if_or_elif, a_name, equals, number = condition.split() assert if_or_elif in ('if', 'elif') assert a_name == 'a' assert equals == '==' # `int` raises ValueError if it can't parse if int(number, base=10) == a_value: return_, result = body.split() assert return_ == 'return' assert result in ('False', 'True') return eval(result) # The above `eval` is safe # so long as you don't turn on # Python's optimization option # (which skips all asserts).
And now, finally:
def is_even(number): if number < 0: number = -number return _is_even_evaluator(_is_even_branches(), number)
So python is apparently unable to handle if-statement with more than 2996 elif’s, which is fair, however, it’s really limiting my implentation of an is_even function
Any ideas on how I can work around this?
5K notes
·
View notes
Text
April 4th
AKA 4/04
AKA "Date not found"
0 notes
Text

#playstation#gaming#video games#90s#retro#funny#humor#meme#skeletons#from software#psone#ps1#nineties#retrogaming
2K notes
·
View notes
Text

#programmer humor#programming#geek#nerd#programmer#technology#computer#phone#mac#windows#os#operating system#website#web development#dev#developer#development#full stack developer#frontend#backend#software#hardware#html#css#meme#despicable me#gru#joke#software engineer#apple
479 notes
·
View notes
Text
Also software development.

1K notes
·
View notes
Text
305 notes
·
View notes
Text

"Why armor class is important" -- Wizardry: Proving Grounds of the Mad Overlord for the Apple II took a lot of inspiration from D&D. The armor class scale begins at 10 and descends for improved armor, as used in OD&D through AD&D 2e, before D&D 3e finally changed to ascending AC numbers. (Will McLean comic panel from the game manual, Sir-Tech Software, 1981)
#Will McLean#Wizardry#Wizardry: Proving Grounds of the Mad Overlord#Apple II#D&D#gaming humor#tank#Dungeons & Dragons#dnd#armor class#AC#computer game#Sir-Tech Software#1980s
185 notes
·
View notes
Text

#punstars#puns#punny#humor#jokes#pun#joke#bad jokes#dad jokes#bad puns#computer jokes#programming jokes#python#software engineering
1K notes
·
View notes
Text

Other people follow rules. I follow results
#programming#coding#developer humor#tech meme#programmer life#relatable#software engineering#funny#debugging#chaos coding#tumblr humor#dev life#software dev#meme#software#lol memes#dank memes#memes#lol#haha
98 notes
·
View notes
Text

Experiments in science
#science#maths#computer science#physics#biology#astronomy#chemistry#geology#zoology#software#coding#psychology#studying#studyblr#insidesjoke#memes#funny#meme#humor blog#humour#dank memes#Twitter memes
146 notes
·
View notes
Text
Expectation: "chooses the number of threads automatically using heuristics"
Reality: `self.threads = 2`
5 notes
·
View notes
Text
This should have been an option.
#detroit become human#dbh#dbh connor#dbh rk800#dbh memes#dbh humor#dbh comedy#dbh software instability#dbh funny
69 notes
·
View notes
Text
I don't like that the dev community picks on people who are most fluent in Python, when the ChatGPT-using "vibe coders" are right there. At least Python babies are coding. Bully the non-coders instead.
#coding#programming#anyone that doesn't know 'vibe coding' means they asked ChatGPT to write code for them.#Same concept as 'I am a creative bc an LLM regurgitated an output for me'. 'I am an artist bc I told a machine to paint for me.'#programmer#I don't know if people even use that phrase anymore to be honest I feel like it's fallen out of use in favour of engineer or developer#ai bullshit#like. If they hire anyone that actually does know the first thing about coding in favour of a prompt engineer (so-called engineer)#they are going to realise—to costs to the tune of millions—that you can't 'vibe code' your way out of security vulnerabilities. Idiots.#I think we're a good few years out from that since anyone that still has a dev team (i.e. everyone; yes even Salesforce*) realises that#letting a text generator run your business would be MADNESS. That's not gonna happen until the AI snakeoil salesmen manage to gradually#lower everyone's standards of accuracy; security and objectivity. When that happens we're all fucked#(*https://www.salesforceben.com/salesforce-will-hire-no-more-software-engineers-in-2025-says-marc-benioff/#tl;dr salesforce snakeoi— CEO says no more software devs; our AI is sophisticated enough.#Balls it is.)#software engineering#programmer humor#etc etc
48 notes
·
View notes
Text
You know how those r/iamverysmart people all sound like a high schooler with a thesaurus? Well, with this program I wrote, you can type in any sentence and sound like that kid! It uses the Natural Language Toolkit (NLTK) to finds all the synonyms for every word in the sentence, and then it prints the longest one. The example sentence I used is
"I am writing my blog post about something I wrote and I hope you enjoy it"
and the output is........drumroll please.......
"atomic number 53 amplitude modulation committal to writing my web log Charles William Post approximately something atomic number 53 drop a line and atomic number 53 Leslie Townes Hope you delight information technology"
20 notes
·
View notes