1
138
submitted 4 hours ago by [email protected] to c/[email protected]
2
104
submitted 6 hours ago by [email protected] to c/[email protected]
3
467
MySQL moment (lemmy.world)
submitted 13 hours ago by [email protected] to c/[email protected]
4
29
It's so simple! (invidious.perennialte.ch)
submitted 9 hours ago by [email protected] to c/[email protected]
5
140
submitted 17 hours ago by [email protected] to c/[email protected]

CheapGuilty™ is an Amazon feature that will not let you set filter "high to low" based on your previous purchases if they noticed you like cheap products and will permanently set your filter to "low to high".

6
262
Bad! (lemmy.ca)
submitted 1 day ago by [email protected] to c/[email protected]
7
98
submitted 1 day ago by [email protected] to c/[email protected]
8
217
submitted 1 day ago by [email protected] to c/[email protected]
9
218
submitted 1 day ago* (last edited 1 day ago) by [email protected] to c/[email protected]

fjärrinlägg från: https://programming.dev/post/10803496

TIL: Sweden had February 30 in 1712 https://en.wikipedia.org/wiki/1712_in_Sweden , so I decided to see how chrono handled that.

use chrono::TimeZone;
use chrono_tz::Europe::Stockholm;

fn main() {
    let feb30 =  Stockholm.ymd(1712,2,30);
    println!("Date: {:?}", feb30);
}
 target/debug/feb30
thread 'main' panicked at /home/snaggen/.cargo/registry/src/index.crates.io-6f17d22bba15001f/chrono-0.4.34/src/offset/mod.rs:252:40:
No such local time
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Result (as expected): Not well! 😄

I also tested Java with

ZonedDateTime feb30 = ZonedDateTime.of(1712,2,30, 0,0,0,0, ZoneId.of("Europe/Stockholm"));

with simmilar result

java.time.DateTimeException: Invalid date 'FEBRUARY 30'

So, lets take a minute of silence for all the programmers of history related software, may the spagetti monster have mercy on their souls.

10
128
codeStyle (lemmy.world)
submitted 1 day ago by [email protected] to c/[email protected]
11
346
submitted 2 days ago by [email protected] to c/[email protected]

The site name's a play on "The Onion" so it's gotta be satire, right? I couldn't find an about page to confirm.

12
530
submitted 2 days ago* (last edited 2 days ago) by [email protected] to c/[email protected]

Sources say the decision was made by how long interns spent in each editor. In fact, it appears the vim users simply never exited once they opened the program, presumably because they found it so productive.

13
353
I need this.... (lemmy.world)
submitted 2 days ago by [email protected] to c/[email protected]
14
88
magnetic fields (lemmy.sdf.org)
submitted 2 days ago by [email protected] to c/[email protected]

cross-posted from: https://lemmy.sdf.org/post/13026743

magnetic fields

15
81
It's kahoot time (lemmy.world)
submitted 2 days ago by [email protected] to c/[email protected]
16
688
dont(); (feddit.de)
submitted 3 days ago by [email protected] to c/[email protected]
17
389
submitted 3 days ago by [email protected] to c/[email protected]
18
303
C++ Moment (lemmy.world)
submitted 3 days ago by [email protected] to c/[email protected]
19
617
wait what (pawb.social)
submitted 3 days ago* (last edited 3 days ago) by [email protected] to c/[email protected]
20
142
PHP Moment (lemmy.world)
submitted 3 days ago by [email protected] to c/[email protected]
21
760
Java... (lemmy.world)
submitted 4 days ago by [email protected] to c/[email protected]
22
368
Bugs fixed (sopuli.xyz)
submitted 4 days ago by [email protected] to c/[email protected]

Have a good day.

23
156
submitted 4 days ago by [email protected] to c/[email protected]
24
739
Stop using floats (lemmy.world)
submitted 5 days ago by [email protected] to c/[email protected]
25
690
What’s in a name? (lemmy.world)
submitted 5 days ago by [email protected] to c/[email protected]
view more: next ›

Programmer Humor

16657 readers
1834 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 8 months ago
MODERATORS