There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

xep , in Aaargh....my eyes......my eyes......

This has likely been done intentionally for humour's sake, but take a look at some of the names in Apple's AppKit framework, like https://developer.apple.com/documentation/appkit/nspreviewrepresentingactivityitem

qaz ,

That page is giving me a 403

BombOmOm , (edited )
@BombOmOm@lemmy.world avatar

I’m still annoyed with how verbose Objective-C is. Just check out what one has to do to create and concatenate a string. Madness:


<span style="color:#323232;">    NSString * test = [[NSString alloc] initWithString:@"This is a test string."];
</span><span style="color:#323232;">    NSString * test2 = [test stringByAppendingString:@" This value is appended."];
</span>

And god forbid you want to concatenate two things to a string:


<span style="color:#323232;">    NSString * test3 = [test1 stringByAppendingString:[test2 stringByAppendingString:@" Adding a third value."]];
</span>
dragontamer , in Exam Answer

Is it wrong that I’m stuck trying to figure out what language this is?

Trying to figure out what string.length and print(var) exist in a single language… Not Java, not C# (I’m pretty sure its .Length, not length), certainly not C, C++ or Python, Pascal, Schme or Haskell or Javascript or PHP.

skulbuny ,
@skulbuny@sh.itjust.works avatar
breadsmasher ,
@breadsmasher@lemmy.world avatar

doesnt have print nor allow variable declaration without keywords

Downcount ,

It would have print if it was previously declared as function. https://lemmy.world/pictrs/image/e70dcc5a-1672-4572-b9ee-587a4841fd9c.jpeg

Also, js is as dirty as you want it to be. Keywords are indeed not necessary for declaring variables.

kautau ,

JavaScript is the language of the assassins, with its infinitely modifiable prototypical setup

Nothing is true

true !== 1

true

true + true + true === 3

true

Everything is permitted

[]+[]

‘’

joyjoy ,

print() will print the text to a physical printer with paper and everything. Don’t confuse it with console.log and use it in a loop.

tourist ,
@tourist@lemmy.world avatar

it’s so rough learning this by accident

bleistift2 ,

Sure you can write foo = 3 in JavaScript. It’s a global variable and can be referenced as either foo or window.foo.

mox , (edited )

That recurring puzzle is among the most interesting aspects of this community, IMHO.

Skullgrid ,
@Skullgrid@lemmy.world avatar

Most irritating aspect of switching languages. How are switches done in this one again?

•Searches web•

Ah yes

min_fapper ,

To be honest, that was the biggest value proposition of GitHub Copilot.

kautau ,

It’s weird that people are so focused on it. It’s pseudocode, and it’s purely meant for day one comp sci students to grasp how data is stored and processed, before they are forced into writing Java, most likely

breadsmasher ,
@breadsmasher@lemmy.world avatar

Same thoughts I had.

  1. Language which allows variable declaration as name = value without any keywords or its a variable declared outside of the example
  2. Has lowercase .length and not .len or other
  3. .length is also a property and not a method? Assuming convention .length() for method call like print(x)
JackGreenEarth ,

OCR exam language, a pseudocode format.

kn0wmad1c ,
@kn0wmad1c@programming.dev avatar

This could run in Javascript if you setup print as an alias for window.alert or console.log

PoolloverNathan ,

It can run in regular JS; print() just prints the page (ignoring the passed value).

lemann ,

undefined

xigoi ,
@xigoi@lemmy.sdf.org avatar

The QuickJS interpreter has print as a built-in alias for console.log.

Minotaur ,

I’m very much guessing that this is just supposed to be a type of pseudocode given the context and vagueness of it.

It’s a big reason why I really dont like pseudocode as instruction to people learning the basics of what programming is. It made more sense 20 years ago when programming languages were on a whole a lot more esoteric and less plain text, but now with simple languages like Python there’s simply little reason to not just write Python code or whatever.

I took an intro to programming class in College and the single thing I got dinged on the most is “incorrect pseudocode”, which was either too formal and close to real code or too casual and close to plain English.

It’s not a great system. We really need to get rid of it as a practice

nxdefiant ,

Especially since python is right there.

1rre ,

I mean once you get beyond bash-like scripts python is esoteric as fuck, adding oop to what is essentially a shell is a terrible idea

That said, there’s plenty of languages with good syntax that is still good when you get into more complex stuff (modern C#, scala, kotlin and more)

GBU_28 ,

Wut

tryptaminev ,

I disagree. Python is not “esoteric” when making objects. The syntax is certainly easier than in Java.

1rre ,

The syntax is certainly easier than Java

And VisualBasic’s syntax is easier than COBOL, but this isn’t a competition to make the least offensive heap of putrid garbage, so why does it matter?

Python works just fine for basic scripts, frankly it’s amazing for it, but oop and functional programming is so incredibly obviously badly shoehorned in that huge swathes needs scrapping and version 4 releasing

tryptaminev , (edited )

Then help me understand please. What do you mean by “esoteric” in regards to oop in Python compared to a language better suited for it?

jjjalljs ,

What part(s) of python do you think is esoteric?

Minotaur ,

I think you’re missing the forest for the trees here pretty heavily.

Yes, Python has some goofy aspects about managing it while performing high level, in depth tasks.

This is a post and a comment chain about pseudocode being taught to people who likely just learned what a “programming language” was several weeks ago. Essentially no one taking the GCSE knows what “bash-like scripts” even means.

nxdefiant ,

The only thing esoteric about python is the bolted-on typing and anything behind a double underscore.

So yeah, it’s there, but in front of the curtain it’s practically pseudo code.

captain_aggravated ,
@captain_aggravated@sh.itjust.works avatar

Reminds me of 7th grade math class, chapter on estimating. Assignment was “Estimate the following values” with problems like 42+28=? or 14*3=?

One of them was 6*7=? Which having memorized my times tables in 4th grade like they told me to, I knew off the top of my head that it’s 42. I wrote that. And it was marked wrong because I was too precise.

psud ,

In the 90s my high school used Pascal. That seems reasonable if you only want to teach procedural

lugal ,

This is quite a cheap answer but maybe it’s just pseudo code. We had exercises in university about pseudo code with examples that intentionally broke all syntax systems and conventions to show that not everything has to be executable that you write down in a theoretical computer science homework

nxdefiant ,

It’s a shitty question. It’s implied by the fact that “24” is wrong that the answer is “6”, the length of the string “Monday”.

In some languages dot access on objects could give you the properties of the object type (things pertaining to a “day” object) but this would still be ambiguous since a day’s length can be measured in many different ways.

In others, it would require you to call length as a function (.length()) or not be available at all, or require you to pass the object into another function [ length_in_seconds(day_x)]

Matty_r ,
@Matty_r@programming.dev avatar

I think the question is fine, but we have to assume they covered this type of method prior to the exam, where .length would result in the character count of a String.

XEAL ,

Why not Python? Because it needs print(str(x))?

dragontamer ,

It’s len(str) in Python. Not str.length.

XEAL ,

Ohhh thanks

dog ,

Pseudocode and/or a variant of lua.

CanadaPlus ,

Just pseudocode.

magic_lobster_party ,

Scala and Kotlin are close ones, although those requires variables to be declared with var day = “Monday” (unless the variables are declared elsewhere)

NeatNit ,

My headcanon: it’s a language that gets executed by a LLM. Whatever you write, if the LLM can make sense of it, it will execute it.

The output may well be “24 hours”.

paholg ,

It could be Ruby; puts is more common, but there is a print. With some silly context, the answer could even be correct:


<span style="font-style:italic;color:#969896;">#!/usr/bin/env ruby
</span><span style="color:#323232;">
</span><span style="font-weight:bold;color:#a71d5d;">module </span><span style="color:#323232;">DayLength
</span><span style="color:#323232;">  </span><span style="font-weight:bold;color:#a71d5d;">def </span><span style="font-weight:bold;color:#795da3;">length
</span><span style="color:#323232;">    </span><span style="font-weight:bold;color:#a71d5d;">if </span><span style="color:#323232;">[</span><span style="color:#183691;">"Sunday"</span><span style="color:#323232;">, </span><span style="color:#183691;">"Monday"</span><span style="color:#323232;">, </span><span style="color:#183691;">"Tuesday"</span><span style="color:#323232;">, </span><span style="color:#183691;">"Wednesday"</span><span style="color:#323232;">, </span><span style="color:#183691;">"Thursday"</span><span style="color:#323232;">, </span><span style="color:#183691;">"Friday"</span><span style="color:#323232;">, </span><span style="color:#183691;">"Saturday"</span><span style="color:#323232;">].</span><span style="color:#62a35c;">include? </span><span style="color:#ed6a43;">self
</span><span style="color:#323232;">      </span><span style="color:#183691;">"24 hours"
</span><span style="color:#323232;">    </span><span style="font-weight:bold;color:#a71d5d;">else
</span><span style="color:#323232;">      </span><span style="font-weight:bold;color:#a71d5d;">super
</span><span style="color:#323232;">    </span><span style="font-weight:bold;color:#a71d5d;">end
</span><span style="color:#323232;">  </span><span style="font-weight:bold;color:#a71d5d;">end
</span><span style="font-weight:bold;color:#a71d5d;">end
</span><span style="color:#323232;">
</span><span style="font-weight:bold;color:#a71d5d;">class </span><span style="color:#0086b3;">String
</span><span style="color:#323232;">  </span><span style="font-weight:bold;color:#a71d5d;">prepend </span><span style="color:#0086b3;">DayLength
</span><span style="font-weight:bold;color:#a71d5d;">end
</span><span style="color:#323232;">
</span><span style="color:#323232;">day </span><span style="font-weight:bold;color:#a71d5d;">= </span><span style="color:#183691;">"Monday"
</span><span style="color:#323232;">
</span><span style="color:#323232;">x </span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#323232;"> day.length
</span><span style="color:#323232;">
</span><span style="color:#62a35c;">print</span><span style="color:#323232;">(x)
</span>
phoenixz , in Every language has its niche

Is PHP becoming irrelevant? It still comprises the vast majority of web pages out there. Maybe that has been going down but with he amount of competing languages and systems out there, that is to be expected.

Either way, it’s an awesome language, happily been using it for decades now

caseyweederman ,

Perhaps it was before Facebook came along

bionicjoey ,

Wikimedia, WordPress, Drupal…

Anticorp ,

Nah, something like 93% of all websites on the planet were PHP when Facebook came around, thanks to WordPress.

bitcrafter ,

Either way, it’s an awesome language, happily been using it for decades now

Mind taking a moment to share why you like it? I am not very familiar with it.

CanadaPlus ,

… And it’s one of the languages everybody craps on. Like, I’ve seen people compare JavaScript favourably to it.

phoenixz ,

Yeah they do, with no real reason, really. Oohh, “some functions use underscore and others don’t!” And? It’s not a problem, really. Every language has baggage from the past and PHP kept it for stability, I’m happy with that.

CanadaPlus ,

“some functions use underscore and others don’t!”

That’s weird, but more of an aesthetics issue than anything. JavaScript will actually decide to behave oddly for no reason; if that’s it it’s still king of the shitbirds.

bier ,

I’m not the one you asked, but what I like isn’t really about PHP itself, but the fact that I can get dirt cheap hosting with PHP and MySQL. Every time I want to create a small “app” that makes some manual task easier it’s very useful to create something I can access from the internet.

Python is really useful for stuff like that too, but (in my experience) not as easy and cheap to use as an web app.

For example I go to dinner with some friends every month and we always forget who’s turn it is to choose and book a restaurant. So I just made this PHP page that shows the current and next 2 months with a name. So we always use that to see who’s turn it is.

Hadriscus ,

Dope !

AVeryCleverName ,

What makes hosting with PHP cheaper than with python?

bier ,

I don’t know, maybe it’s because PHP used to be the default web based language? I just buy hosting, I don’t sell it…

AVeryCleverName ,

What do you use for hosting? I’m looking for a good host and highly budget conscious.

bier ,

I’m Dutch and use a local Dutch company, I also wanted a .nl tld

phoenixz ,

Though I like that you use PHP, I don’t think there is such a thing as PHP hosting, or python hosting? Maybe I’m not understanding what you’re saying here?

bier ,

When you pay a company and they provide you with a domain (you choose) and give you a webserver, some disk space, a database etc.

I pay about 30 euros a year for 5 websites. They are all very basic (either some php stuff I made, or WordPress). These websites have very few visitors so the hosting specs don’t really matter. All these websites have a specific domain name, some disk space, and a database.

For this price they offer PHP and MySQL. So it’s not a dedicated server where I’m root and can Install other stuff.

bitcrafter ,

I’m not the one you asked, but what I like isn’t really about PHP itself, but the fact that I can get dirt cheap hosting with PHP and MySQL.

Oh, wow, I looked a little into this and hosting really is dirt cheap! That is a benefit that I genuinely was not expecting.

phoenixz ,

Quite early on the eyes, powerful, fast to build and rolk out projects, about. A billion libraries with all the functions you’ll ever need. People both about it because it has some language quirks from way back in the beginning, I see it as stability. I don’t know how node is now but I remember a few years back where every bug fix came accompanied not only by 10 new bugs but also a bunch of interface changes that immediately broke everything. Every. Single. Damn. Time.

Having said that, it under very active development and has been majorly improved over the years. Dumb design choices are no long available and right now it’s quite easy to work securely with it.

Beyond the “but these two functions should have similar naming but they don’t!” argument, that with a good editor doesn’t matter anyway, there isn’t really a good argument out there not to use it.

masterspace ,

Depends on how you’re judging relevance.

93% of webpages could be PHP because of Wordpress, but that doesn’t necessarily mean there’s a lot of PHP developers.

phoenixz ,

If that hypothetical 93% is WordPress, there’s still a huge demand for PHP developers to maintain that and the plugins and so

NikkiDimes ,

PHP is horrible, I hate it, and I will not elaborate. Good day, sir.

phoenixz ,

Well that is an excellent argument if I ever heard one…

NikkiDimes ,

I said good day sir!

phoenixz ,

Good day to you too, how have you been?

NikkiDimes ,

Not too bad. Just chillin’. How 'bout you?

phoenixz ,

Very fine! Nice cool day today.

xor , in Tinder to ban web developers who use 'engineer' in their bio

can we ban web developers who call themselves “developers”?

also php programmers who call themselves anything?

dohpaz42 ,
@dohpaz42@lemmy.world avatar

To be fair, we do develop stuff. Nothing implies quality, so it’s not like we’re misrepresenting anything. Personally, anyone who calls themselves a software engineer and works with any web-related technology (PHP, JavaScript, etc) are the ones to be shunned.

AlecSadler ,

I’m a full-stack web developer and am involved all the way through including cloud infrastructure, API development, database creation/maintenance, test automation, architecture etc.

I guess what makes a “developer” in your context different? Embedded? Kernel?

dabu ,
@dabu@lemmy.world avatar

Only those who code in the same language as I am can be called developers. Everyone else is just an impostor and their technology doesn’t matter! Real programmers use my language of choice

DichotoDeezNutz ,
@DichotoDeezNutz@lemmy.world avatar

If you don’t daily x86 assembly, do you even know anything about computers?

einsteinx2 ,
@einsteinx2@programming.dev avatar

Have you heard about our lord and savior Rust? 🙏

scorpionix ,
@scorpionix@feddit.de avatar

Just like my $variables I can be anything I want. Deal with it! 🫳🎤

Theharpyeagle ,

Nah, no need for this kind of gatekeeping. Anyone who deals with js and its billions of frameworks on a daily basis deserves to be called a developer.

MajorHavoc ,

Agreed.

We also deserve to be called, every so often, to see how we’re doing.

tryptaminev ,

Heyyy its your super duper new project manager! I hope you are feeling a-mazing because you are my a-ce on the team. Anyways i need you to do things twice as fast, because we are running low on budget after sales promised another feature without extra billing and the CEO already signed off on it. Please make this happen somehow. If this project isn’t succesfull i’ll get fired and have to sell the house. But no pressure!

phoenixz ,

Do you even know why you hate PHP?

Whelks_chance ,
Ullallulloo ,
@Ullallulloo@civilloquy.com avatar

Note that that hasn’t existed in PHP for years.

dan ,
@dan@upvote.au avatar

Blame MySQL for that. The PHP API just mirrors the MySQL C API of the same name. dev.mysql.com/…/mysql-real-escape-string.html

Modern PHP doesn’t use it - any modern code uses PDO with prepared statements.

phoenixz ,

Never used it in over 23 years of using PHP. Also, I don’t thing that has existed anymore for the past 10 years or so?

Seriously, if we’re going to do this, can we also bitch about painful java apps from 10 years ago, or the hilariously shitty modules in node from 10 years ago? I can go on for a while, but you hopefully get the point.

Whelks_chance ,

The question was why do I hate it, and it was because of this. I don’t understand your confusion.

phoenixz ,

My confusion is that you hate it tosay because someone over a decade ago wrote 10 times the same complaint that was mostly fixed already since about a decade ago

xor ,

yeah, i’ve used it and it’s absolutely trash…
but here’s an article that sums up my feelings: eev.ee/blog/2012/…/php-a-fractal-of-bad-design/

dan ,
@dan@upvote.au avatar

That article is over a decade old. A lot of these issues aren’t relevant any more or have been fixed. Some weren’t even PHP issues, for example mysql_real_escape_string is a MySQL API (dev.mysql.com/…/mysql-real-escape-string.html).

PHP isn’t the best language, but it’s not as bad as some people claim it to be, especially if you use a good framework like Laravel.

xor ,

lol, no… it sucks
trust me, if you’ve already gotten used to php, you’re smart enough to learn a better language.
really just use node if you’re going that sorta route…

dan ,
@dan@upvote.au avatar

JavaScript has a lot of the same issues as PHP. It doesn’t have some of the same core library issues because it doesn’t have a good core library.

xor ,

ECMA 6 has had drastic improvements over the past js…
however node is still infinitely better than php, and since javascript is inexorably a part of web development, it’s a lot more logical to use it on the backend too…

i don’t mean that node is great, i mean that it’s an easy transition from php, a billion times better, and much more modern and useful… so a very natural transition…

dan ,
@dan@upvote.au avatar

ECMA 6 has had drastic improvements over the past js…

Sure, but it still lacks basic built-in features. For example, why do maps and sets not have sort or filter methods? In Node, why is there no built-in way to connect to a database of any sort? Why can Node.js apps only use a single time zone? Requiring libraries for everything is not ideal as the libraries vary wildly in quality and they can end up either abandoned or containing malware (which has happened several times in the Node ecosystem).

still infinitely better than php

They each have their pros and cons, depending on use case. Node.js does some things better than PHP, but the opposite is true too.

  • You can build a whole PHP website without using any third-party libraries, and it’ll work on any web host that supports PHP (literally any good web host that exists today). There’s value in having that level of flexibility.
  • You can build a PHP site today and it’ll mostly still be working (maybe with some minor changes) in 5 years, whereas for some of my Node.js sites I have to switch to an older version of Node just to build them. For example obviousspoilers.com has been practically untouched since 2009.
  • The fact that PHP can run multiple apps in the same FPM process means that you can run thousands of sites on a single server without issues. There’s some non-Node solutions to this (like Cloudflare workers) but they’re mostly proprietary at the moment.
  • There are more PHP than Node.js jobs, and far more sites use PHP. Wordpress uses PHP and powers over 40% of the web, so that means that at least 40% of all websites use PHP.
xor ,

wordpress does not power 40% of the web…
im not going to argue any more than that because this is a humorous type community, and ya’ll are getting too serious.

i hope you enjoy all of your “programming” with your garbage little “language” and POS word🤢press🤮

p.s. notice how everyone who argues in favor of php and wordpress ONLY know that language and framework?
what a curious thing…

dan ,
@dan@upvote.au avatar

i hope you enjoy all of your “programming” with your garbage little “language” and POS word🤢press🤮

p.s. notice how everyone who argues in favor of php and wordpress ONLY know that language and framework?

lol I don’t use PHP any more… I primarily use C#. I can still see the advantages of PHP without it being a language I use day-to-day.

wordpress does not power 40% of the web…

Do you have any data that proves otherwise? Because all available data I’ve seen disagrees with you.

wordpress.org/40-percent-of-web/

w3techs.com/technologies/details/cm-wordpress

It’s not just small sites. A bunch of major publications use WordPress too. Forbes and TechCrunch both use WordPress for example.

xor ,

lol

dan ,
@dan@upvote.au avatar

also downvotes aren’t supposed to be used just because you disagree with someone’s opinion. Your comments seem like a typical redditor so please just go back to Reddit if you’re going to use downvotes that way.

xor ,

i see you’ve switched troll tactics…

just chill the fuck out, do whatever you want with what programming language you want, and leave me alone, dan

dan

xor ,
xor ,

oh and, adding a library isn’t very hard

dan ,
@dan@upvote.au avatar

Adding a third-party library in PHP is just as easy. The composer.json file looks very similar to a package.json.

xor ,

i was responding to your comment about js not have a good core library…
php having libraries is completely moot

phoenixz ,

That is literally a decade old article with basically 1 complaint that sometimes functions are strpos() and sometimes str_len(). Anything else it’s saying is “I don’t even know how to say it”. Really now? Any of your complaints have been fixed since about a decade ago, so why don’t you give it a try?

xor ,

lol, no…
also this is a joke sub so stop trying to sea lion me about it.
also your “summation” of the article is pretty stupid

astraeus ,
@astraeus@programming.dev avatar

As if webapps aren’t usurping mobile and desktop apps, anything not C# or .NET is a toy language?

xor ,

c# and .net? ewww…

gimme c, c++, go, rust, ruby, python…
and umm, no dude, native apps are a lot more powerful than web apps… they are not usurped at all

there’s more of them, but there’s more scooters than motorcycles…

astraeus ,
@astraeus@programming.dev avatar

Scooters are more efficient, get you where you need to go and cost less to maintain. Your analogy is actually pretty good in that regard.

xor , (edited )

yeah and they only get you around the neighborhood, any actual distance and a motorcycle is infinitely better…
but, it figures you’d miss that, since you’re a dumby dumbo mcpoopoo head webdev

astraeus ,
@astraeus@programming.dev avatar

Now you’re throwing ad hominem around. You don’t need to be toxic to communicate your point, web development did at one point have a lot of growing to do and I can admit that there is still plenty of progress to be made. In 2024 however, ignoring the web ecosystem as any type of developer is purely traditionalist elitism.

xor ,

bruh, this is programming_humor… chill, im sure you’re a fine human being

anzo ,

Please refrain of using offensive words, specially if you are trying to actually communicate an idea that is by all means demeaning to other people. The community is about humour, keep that in mind ;)

xor ,

word, “dumb ass” was supposed to be a joke too, but i edited it to be less offensive

metaballism ,

So if I’m using Rust to write a web app that compiles to WebAsm, what am I?

xor ,

a dingo

weevai ,

🖕

xor ,

sorry, my browser doesn’t support unicode

MicrowavedTea , in I just ask my problem bro...chill....

Especially useful when the specific thread is now the first result on Google.

FizzyOrange ,

Yeah this is one of the main reasons why Stackoverflow’s question closing policies are bullshit. We’re going to close the question so nobody can answer it… but they can still upvote it and it will still be ranked highly on Google!

Bunch of idiots.

You know the SO Devs actually tried to improve this a while ago - I think you would be able to reopen your question once or something. Of course the power-hungry mods hated that idea and the abandoned it.

At this point it’s unfixable. They depend on their unpaid mods and they’ve already attracted the sort of people you absolutely don’t want to moderate a site.

The only hack I’ve found is that if your question gets downvoted/closed you are allowed to delete it, wait half an hour and ask it again. Much better odds of success than editing the question.

Corbin ,

You can help by gaining points on multiple SE sites and participating in elections. Please vote!

FizzyOrange ,

You can’t. The kinds of people who are nominated are the wrong kinds of people. I’ve participated in many SO elections and none of the candidates ever mention any of these issues.

xmunk , in Aaargh....my eyes......my eyes......

Obviously, we can’t allow code like that - PascalCase is heresy… camelCase that shit.

TrippaSnippa ,

snake_case gang represent

bleistift2 , in Review Please

That’s when you set the intern’s IDE to preserve the line endings.

shotgun_crab , (edited )

.gitattributes is our best friend

coloredgrayscale , (edited )

Automatic code formatter with company style rules for more consistency across all developers.

locke , in How do we tell him ?

You have been in this council for 9 years and we will grant you the rank of master.

graff ,

*copy and paste you the rank

sabreW4K3 , in I just ask my problem bro...chill....
@sabreW4K3@lazysoci.al avatar

Meh, just put your question and wrong answer in a meme and post it anywhere, within an hour everyone will correct it with the right answer 😂

ImplyingImplications ,

Or post your question with a picture of Kurisu Makise saying “you should be able to solve this”

That’s how they got a 4chan user to post the solution to an unsolved math problem

hemko ,

Holy shit that’s actually amazing

exocrinous ,

I’m clearly not understanding the problem, because I think the only answer is 14!. What am I getting wrong?

ImplyingImplications , (edited )

The question is about “superpermutations”. The permutations of 1 and 2 are “12” and “21”. A “superpermutation” would be “1221”. It contains the numbers 1 and 2 as well as all permutations of 1 and 2. However “121” is also a superpermutation of 1 and 2. It also contains “12” and “21” and it’s shorter than “1221”.

The problem is finding the shortest superpermutation. Stand-up Maths has a video where he interviews a mathematician that published Anonymous’ solution. So yes, there is a math paper where the main author is “Anonymous 4chan Poster”.

astraeus , (edited )
@astraeus@programming.dev avatar

What’s funny is that watching The Endless Eight already feels like you’re watching 93,884,313,611 episodes of Haruhi

Dagnet ,

I seriously could not believe what I was watching when I got to that part. I would start the next one thinking “there is no way… Yep, again”. How did the director even convince people to do it?

astraeus ,
@astraeus@programming.dev avatar

As annoying as it was to slog through the episodes (I think I went through 5 of them before realizing I wasn’t missing much skipping the other three), there is something to be said about how much it captures that feeling of uselessness that Kyo and Yuki have. Kyo begins to realize each time and Yuki is forced to be aware through each repetition. Haruhi is so powerful that she creates an endless time loop, that was both amazing and terrifying.

Dagnet ,

Thats the really weird part, Nagato could end it whenever she wanted, yet she always chooses to tell them just enough to keep it going forever

astraeus ,
@astraeus@programming.dev avatar

She can’t interfere, her job is to monitor and observe and only stop Haruhi if she’s going to endanger the universe. So even with the ability to stop her, she can’t do anything by the code of her position.

Dagnet ,

Thats the thing, she does interfere, but just enough that it keeps happening. 100% no interference would be not even telling them that there is a loop going on when they try to find out

mindbleach ,

A tangent about Haruhi and 4chan wouldn’t even be the weirdest leap, if this somehow helped prove P=NP.

Mikufan ,

Exactly that’s Darvins law.

magic_lobster_party , (edited )

It’s Murphy’s law

Mikufan ,

Murphy? Wasn’t that the guy that made those darn good Burgers?

sabreW4K3 ,
@sabreW4K3@lazysoci.al avatar
snooggums ,
@snooggums@midwest.social avatar

Brannigan’s Law.

Anamana , (edited )

Wow that’s such a good approach :D

r/unpopularopinion might also work well

Anticorp ,

Quite often it gets corrected with another wrong answer.

StaticFalconar ,

Obviously thats so wrong. The correct answer is to pray for the answer and keep taking naps until you get your answers.

sabreW4K3 ,
@sabreW4K3@lazysoci.al avatar

Have you been stalking me?

morgunkorn , in Review Please
@morgunkorn@discuss.tchncs.de avatar

LGTM

keksbaecker ,

This response is so true and so sad.

OpenStars ,
@OpenStars@startrek.website avatar

Better than “rejected - git gud”? :-P

RustyNova ,

[Open]

"LTGM!"

  • Last update a year ago
humbletightband ,

Lol go try merge

__init__ ,

🚢🚢🚢

magic_lobster_party ,

Let’s test in prod

Restaldt ,

Real men test in prod

Reaaal men of geeenius

vzq , in Whoa there buddy, calm down

Closely related to:

xkcd.com/538/

Although that looks more like a $50 wrench to be fair.

jqubed ,
@jqubed@lemmy.world avatar

It even says as much in the bonus text!

agent_flounder ,
@agent_flounder@lemmy.world avatar

Inflation.

Godnroc ,

I don’t think an inflatable wrench would work very well.

BleatingZombie ,

Now I’m just imaging a judge trying to get order in the court room with an inflatable mallet

Godnroc ,

“Order! Order in the Court!”

SquEAKy

redcalcium ,

It’s free if you borrow from your in-law (then never return it).

zarkanian ,
@zarkanian@sh.itjust.works avatar

I knew somebody would have the relevant xkcd.

assembly ,

I’ve used a duress password with crypto containers since the old TrueCrypt introduced me to it a while back. Sure you can have the password and unlock the vault but it’s just text file notes in there that aren’t at all important. In reality though, no one would ever give a shit about my data enough to even ask me my password.

CanadaPlus ,

What, you think that guy dishes out for non-stolen wrenches?

Rentlar , in I just ask my problem bro...chill....

If it’s a question I know how to answer but believe it really it would take 30 seconds of searching for a regular person to find…

I’d give the answer but be a bit snarky about it.

RustyShackleford ,
@RustyShackleford@programming.dev avatar

Does the snark really make you feel better?

RadicalEagle ,

Honestly, yeah sometimes. It’s my emotional reflex to frustration that was programmed into me by my parents and I haven’t done enough cognitive behavioral therapy to undo it.

RustyShackleford ,
@RustyShackleford@programming.dev avatar

As someone who discovered my Type 1 ASD at 40, the gods know that I have a lot more work to do on my self-awareness and abrasiveness.

Not saying you should adopt this, but sometimes I read aloud what I type and imagine myself replying to a student in real life in the way of and with the tone that people sometimes have on StackOverflow.

My gut reaction at that point, usually, is to rewrite a response or post completely with a more generous dose of humility and compassion.

I don’t always get it right, but when I remember to do that and read replies, I like myself a little bit more.

RadicalEagle ,

I’ve been thinking about this a bit more, and I realized that I talk to other people the way I talk to myself. This probably wouldn’t be a problem if I weren’t so critical of myself.

I think I need to not only put in the effort to reread the things I write when communicating with others, but also to just be kinder to myself in my internal monologue.

I spend too much time being frustrated inside my own head, and that makes it easy to use that same tone when I’m interacting with other people.

Thanks for sharing your advice. I think verbalizing my thoughts the way you suggested will be really helpful.

RustyShackleford , (edited )
@RustyShackleford@programming.dev avatar

This probably wouldn’t be a problem if I weren’t so critical of myself.

Same.

I spend too much time being frustrated inside my own head, and that makes it easy to use that same tone when I’m interacting with other people.

Same.

My Dad’s neighbors always say:

Hurt people hurt people.

And as a counterpoint to that, from Slavoj Zizek:

Never presume that your suffering is, in itself, a proof of your authenticity.

Just because we wrestle with ourselves internally, it doesn’t justify our perniciousness to others.

Uncle Iroh nailed it:

Sometimes the best way to solve your own problems is to help someone else.

I just don’t wanna sound like an asshole when I attempt to do that!

bleistift2 ,

It’s not about feeling better. It’s about getting the other person to understand that Google exists and that they can use it, too. Too many people refuse to put in any effort of their own and go ask someone instead.

IMHO in that situation answering isn’t even the right thing to do, since it encourages that behaviour and prevents the asker from learning to find out stuff for themselves. Something about fishing for hungry people or so…

When someone is genuinely stuck, doing research themselves allows the answerer not to go down the same dead ends, which saves time for both.

Corbin ,

If it’s on Stack Exchange, you can help us keep the community decent by assuming good faith and being patient with newcomers. Yes, it’s frustrating. And yeah, sometimes, it’s basically impossible to avoid sarcasm and scorn, just like how HN sometimes needs to be sneered at, but we can still strive for a maximum of civility.

If all else fails, just remember: you’re not on Philosophy SE or any of the religious communities, it’s just a computer question, and it can be answered without devolving into an opinion war. Pat yourself on the back for being a “schmott guy!” and write a polite answer that hopefully the newbies will grok. Be respectful of plural perspectives; it’s a feature that a question may have multiple well-liked answers.

Hammerheart , in I just ask my problem bro...chill....

Hacker news isnt an appropriate forum for most questions tho, that one is valid

Corbin ,

Yeah, this list of sites is making me think of asking for a book by loudly asking a library, a series of coffeeshops, a chud microbrewery, and an 11-year-old bully. Try quietly reading in the library first, I guess.

bruhduh , (edited ) in I just ask my problem bro...chill....
@bruhduh@lemmy.world avatar

Try chatgpt and the like, it’s gonna give you same barely correct answers, at least it isn’t gonna send you out, well… Most of the time

devilish666 OP ,

ChatGPT is give you general answer not the right ones from my experience
Sometimes you get the right answer if you fine tune your question…but sometimes don’t

bruhduh ,
@bruhduh@lemmy.world avatar

Same with stack overflow, in my experience at least) i just googled questions btw, not started them, so in my personal experience chatgpt is google++

Appoxo ,
@Appoxo@lemmy.dbzer0.com avatar

It’s enough to start the own research.

bruhduh ,
@bruhduh@lemmy.world avatar

Yes, that’s what I’m thanking about)

AFaithfulNihilist ,
@AFaithfulNihilist@lemmy.world avatar

Am the grammar an spelling part of joke?

bleistift2 , in I just ask my problem bro...chill....

Peple misunderstand “Closed as duplicate” as an insult, when it’s just the hint to look at the provided link. If you didn’t find the answer previously, this just means there are multiple ways to express the problem, which use different words and thus don’t all find the same google result.

BatmanAoD ,

They also changed the wording from “closed” to “on hold” years ago, and I don’t think I’ve ever seen the people complaining about the site take any notice.

JoYo ,
@JoYo@lemmy.ml avatar

It’s because they don’t use the site and they don’t have a problem to solve. They’re just here to complain.

codemonkey644 ,

But it’s those people who close it as a duplicate and not post the link to a valuable answer.

bleistift2 ,

You cannot even mark it as duplicate without providing a link to the answer. What are you talking about?

https://feddit.de/pictrs/image/5a9fd699-51a2-440e-ac02-4ae1d5551ff5.png

lastunusedusername2 ,

You can provide a link to an answer but it’s invariably not to the same question.

MotoAsh ,

No, it is always the same question.

… from a person sitting in a very different situation with a slightly different problem.

marcos ,

Some times the question has no semblance at all. Other times the answer has no semblance at all. Some times there’s no answer at all. And obviously, modern SO is full of people that will just post a ridiculously incorrect answer. There is a wide variety of possibilities!

I remember being very surprised as a I followed one of those links and got the answer I needed. But I don’t remember exactly when.

MotoAsh ,

I’ve had both happen a lot. Only the basic stuff gets a correct answer, because nuance is difficult even for the tech savvy.

lastunusedusername2 ,

At the very least it has some of the same words. And the person marking it as duplicate figured it was probably the same.

Heavybell ,
@Heavybell@lemmy.world avatar

It’s annoying when it is not a duplicate tho

Anticorp ,

Which is quite often

BatmanAoD ,

That’s fair, but if you edit the question to explain how it’s different (without which, how could anyone even answer your question?), it can be (and often is) reopened.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines