this post was submitted on 27 Dec 2023
1 points (100.0% liked)

Programming Horror

1847 readers
1 users here now

Welcome to Programming Horror!

This is a place to share strange or terrible code you come across.

For more general memes about programming there's also Programmer Humor.

Looking for mods. If youre interested in moderating the community feel free to dm @[email protected]

Rules

Credits

founded 1 year ago
MODERATORS
 

Jesus Christ, just add an if statement for even or odd!

top 18 comments
sorted by: hot top controversial new old
[–] [email protected] 0 points 9 months ago

Maybe if you donated they could afford to do this properly.

[–] [email protected] 0 points 9 months ago (2 children)
[–] [email protected] 0 points 9 months ago (4 children)

lol are you licensing each of your comments for real?

[–] [email protected] 0 points 9 months ago

He is. He's also a dumb ass

[–] [email protected] 0 points 9 months ago (1 children)
[–] [email protected] 0 points 9 months ago

two ppl enter lemmy, one says...

[–] [email protected] 0 points 9 months ago (1 children)

You're the one missing out of all the sweet earning potential.

brought to you by Carl's Jr - "fuck you, I'm eating"

[–] [email protected] 0 points 9 months ago

lol you're right silly me!

patreon me

[–] [email protected] 0 points 9 months ago (2 children)
[–] [email protected] 0 points 9 months ago
[–] [email protected] 0 points 9 months ago (1 children)
[–] [email protected] 0 points 9 months ago (1 children)

If you want to :) My reasoning is here.

TL;DR AI scraping stuff

CC BY-NC-SA 4.0

[–] [email protected] 0 points 9 months ago* (last edited 9 months ago) (1 children)
[–] [email protected] 0 points 9 months ago (1 children)
[–] [email protected] 0 points 9 months ago (1 children)

Anybody can join :)

I'm violating your license by not crediting you when I quote your comment.

[–] [email protected] 0 points 9 months ago* (last edited 9 months ago)

Expect to shortly find the indictment in your mail.

CC BY-NC-SA 4.0

[–] [email protected] 0 points 9 months ago (1 children)

https://en.wikipedia.org/wiki/Template:Signpost/item, if that's what you mean.
The JPxG person (who is not an employee of WMF for some reason; maybe they didn't apply?) recently put this in the testing version of the template:

<!--

The previous thing was unimaginably bad, so I fixed it. It's still pretty bad, but now it isn't 40 lines of the same thing pasted over and over.
(JPxG, 2023 December 6)

--></noinclude>
{{#switch: {{{2}}}
  | 0 =        {{#switch: {{{1}}}<!-- Case handling for speshul snoufleik "0" parameter to put note from the editor top and centered. -->
                 | 3 = <div style="text-align:center; margin-top:15px; margin-bottom:15px;"><span style="font-size:75%;">''{{{4}}}'' &mdash; ''[[#{{{4}}}|{{{5}}}]]''</span></div>
                 }}
  | #default = {{#switch: {{{1}}}{{#expr:{{{2}}} mod 2}}<!-- Everything else. -->
                 | 10  =
                 | 11  =
                 | 20  =
                 | 21  =
                 | 30  = <div style="float:left;  clear:left;                                width:49%; margin-bottom:15px; text-align:left;"><span style="font-weight:bold; font-size:70%; color:#777;">{{{4}}}</span><br />[[#{{{4}}}|{{{5}}}]]</div>
                 | 31  = <div style="float:right; clear:right; position:relative; right:-3%; width:49%; margin-bottom:15px; text-align:left;"><span style="font-weight:bold; font-size:75%; color:#666;">{{{4}}}</span><br />[[#{{{4}}}|{{{5}}}]]</div>
                 | 40  =
                 | 41  =
                 }}
}}

maybe he was rejected because of his awful date format?

Anyway, the testing version has now been automatically protected from editing because JPxG also tested his kewl new testing version by using it in an old 2010 issue, which resulted in 827 page updates

[–] [email protected] 0 points 9 months ago

For all the good wikipedia does, it has the worst markup language I've seen.

CC BY-NC-SA 4.0