this post was submitted on 18 Feb 2025
991 points (99.4% liked)

Programmer Humor

20735 readers
1336 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 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] brokenlcd@feddit.it 41 points 4 days ago (2 children)

What heinous crime one must commit to be forced to learn fortran

[–] Droggelbecher@lemmy.world 23 points 4 days ago (1 children)

Pursue a particle physics degree

Source: I've been at my masters thesis for two years please kill me

[–] dependencyinjection@discuss.tchncs.de 12 points 4 days ago (2 children)
[–] Droggelbecher@lemmy.world 5 points 3 days ago

Nah my death wish is too passive

[–] bleistift2@sopuli.xyz 9 points 4 days ago (2 children)
[–] dependencyinjection@discuss.tchncs.de 8 points 4 days ago* (last edited 4 days ago)

Huh… Not my intention.

I wasn’t wishing them success with their thesis /s

[–] Sabata11792@ani.social 1 points 3 days ago

You both got this and don't got this at the same time?

[–] AnUnusualRelic@lemmy.world 4 points 4 days ago (1 children)

Isn't Fortran more or less Basic with Maths?

[–] mkwt@lemmy.world 1 points 17 hours ago

No. For several reasons.

Fortran is older than Basic and C. In fact, Fortran is more or less the first high level programming language. The first Fortran compilers date to the early 1950s.

Fortran was created mainly for the purpose of linear algebra: operations with (giant) matrices. Linear algebra is used to compute approximate solutions to ordinary and partial differential equations, and this is a major part of what people needed computers for (and still do).

Programming concepts like subroutines, functions, if statements with blocks and else clauses... All of those were not in original Fortran because no one had thought of them. These things entered Fortran over time as they became popular, and goto slowly became less popular. Syntax from the punch card era was replaced in Fortran 90, but it is still available as an option for compatibility purposes.

Structurally, I prefer to describe Fortran as like C, but with better built-in arrays, and no built-in general purpose pointers. Not having the pointers allows the compiler to do certain optimizations that C can't. But C is the better systems language, because the pointers let you naturally express all kinds of data structures besides arrays.