#software humor
Explore tagged Tumblr posts
mentalisttraceur-humor · 11 months ago
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
therefinedtroll · 1 year ago
Text
True
Tumblr media
27K notes · View notes
retrogamingblog2 · 1 year ago
Photo
Tumblr media
19K notes · View notes
elperteinpine · 1 year ago
Text
Tumblr media
1 note · View note
punstars · 1 year ago
Text
Tumblr media
1K notes · View notes
mentalisttraceur-software · 6 months ago
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
Tumblr media
Any ideas on how I can work around this?
4K notes · View notes
computer-nerd-girl · 4 months ago
Text
Tumblr media
200 notes · View notes
nixcraft · 1 month ago
Text
the current status of FLOSS
Tumblr media
103 notes · View notes
Text
Software authors experience a similar struggle, but luckily we are more likely to have liberating accidents with "rm -rf".
I often wonder what happened to authors of unfinished fanfictions.
170K notes · View notes
mentalisttraceur-software · 2 years ago
Text
If you elect me as your dictator, all Archived repositories on GitHub/GitLab/Codeberg/etc will be required by law to say why they are archived.
The penalty for non-compliance shall be a light (for I am merciful) public flogging, repeated only once a month (for I am merciful) until compliance is achieved.
For those who cannot muster even a sentence of explanation, several generic but sufficient explanations will be made available for you to copy-paste from (for I am merciful), such as
"this package is still perfectly good, but I am no longer maintaining it",
"I have realized there are flaws in the design which are best solved with an alternative API/workflow/etc",
"this was just experimental, it's probably still very broken" and
"this has been superseded by a superior [upstream | 3rd-party] solution".
20 notes · View notes
capitalism-and-analytics · 1 year ago
Text
Tumblr media
149 notes · View notes
animentality · 2 months ago
Text
my boss is like, make a pull request, and I'm like ok, and then a week later, he's like why haven't you updated (whatever), and I'm like, because it's in a pull request you have to approve, and he's like oh I haven't gotten around to looking at that.
like no shit.
check your pull requests before complaining I'm not doing anything. I can't merge with master myself here, buddy, old pal.
49 notes · View notes
dailytransitiongoal · 1 month ago
Text
Tumblr media
transition goal<3
21 notes · View notes
psvcomic · 6 months ago
Text
Tumblr media
46 notes · View notes
puneet07 · 8 months ago
Text
That moment when you get free basic SEO from TechLogic Softwares and feel like a no one can beat me! 😂
29 notes · View notes