- cross-posted to:
- programmerhumor@lemmy.ml
- cross-posted to:
- programmerhumor@lemmy.ml
cross-posted from: https://lemmy.ml/post/39334581
In the language Gulf of Mexico,
you can use any letters from the word “function” (as long as they’re in order)
union foo () => ()In the language Gulf of Mexico
HUH?
Some languages start arrays at 0, which can be unintuitive for beginners. Some languages start arrays at 1, which isn’t representative of how the code actually works. Gulf of Mexico does the best of both worlds: Arrays start at -1.
Oh, I see they’re serious! Time to ditch JavaScript.
Naming
Both variables and constants can be named with any Unicode character or string.
const const letter = 'A'! var const 👍 = True! var var 1️⃣ = 1!This includes numbers, and other language constructs.
const const 5 = 4! print(2 + 2 === 5)! //trueThis is a recipe for disaster I kinda wanna try
If you’re unsure, that’s ok. You can put a question mark at the end of a line instead. It prints debug info about that line to the console for you.
print("Hello world")?Fucking sold, I was gonna learn rust but you’ve changed my mind
Just looking through this as a fledgling barely-coder…
…It inspires fear. Terror, even. LMAO

Not exactly aimed at language keywords (although it is aimed at the language designers who decided abbreviations in keywords are acceptable):
I hate abbreviations in source code so fucking much. Reading is more of software engineering than writing. If you cannot be bothered to type a whole word because typing is hard for you, find a different job. Do not force others to engage in mental gymnastics to understand what the fuck a variable or function is supposed to mean.
There was a rather famous piece of software at my last job. Guy writing it wanted job security. A lot of the core variables of the application were named based on the sounds a helicopter made. God damn onomatopoeia variables. Pretty sure that shit is still in use somewhere.
I can’t imagine writing something like that. Job security? Hah, I’d end up in an inescapable labyrinth of my own making if I named things something that wouldn’t be obvious to my 3-months-later self!
Maybe that’s the play: He intentionally confuses himself so it takes extra paid time to remember what the heck “SOISOISOI” does, compared to “Whopwhopwhop”.
I get that but also can be kinda nice to have density so that you can read more of the program on a single display.
Bash was derived by a team of criminally insane programmers in the bowels of a South American asylum so deep in the jungle no country can rightfully claim it as its own. It is the product of the demented keystrokes of the damned, possessing a singular logic so alien that its developers can hardly be said to be human at all.
And I wouldn’t have it any other way.
funcitonIdk why but that’s how I type it half the time.
Won’t you take me to
funcitooon?
Won’t you take me to
funcitoon.
You press c and t using the same finger, and i with another. So since you need to use the same finger twice in a row, also moving it a fair distance in between, your other finger just presses the button a little bit too soon, and that’s how you end up with
funciton‘c’ and ‘t’ should definitely be hit with different fingers if you do touch-typing. But with one hand, that’s true.

there’s no ‘i’ on that keyboard?
And two Ls

Fixed. Brought to you by ortho gang.
I bought this yesterday from perplexity.ai

deleted by creator
I just recorded myself typing it a dozen of times, and it always goes as:
F - Left index U - Right middle N - Right index C - Left index T - Left middle I - Right middle O - Right ring N - Right index
I usually generally follow zones while typing, but for frequent words like this I tend to break it, which mostly make sense, like using middle finger for U to free index finger for N, and then moving it one over for a quick IO without lifting the index from N), but then that CT thing is a decades-long ingrained thing that I didn’t even realize how weird it was until I looked closely at it. It reminds me of that thing that bothers me on my other kb which is ortholinear and I always struggle in games with it because I can’t press 2 while holding Shift and W at the same time. On normal keyboards I use ring fingers and slightly twist my wrist clockwise, but on ortholinear it’s not there, and it’s actually easier to use index finger and twist the other way, or roll middle over without lifting, but it’s very hard to break that habit.
And you can continue typing it that way for as long as you want if you set up autohotkey to automatically fix your typos.
Autohotkey? Naw, you wanna setup a daily cron job to read and replace every one of your common typos with the correct spelling. That’s the way, trust me.
Edit: Daily cron job typo correction.
Dude, I set up wild crap with Autohotkey, for a job. I had it logging in to vendor websites where it would pull up clients, compare contact info to our local system, check if recent payment had been made, pull appropriate client docs (if not already in our local system), and leave notes for me before moving onto the next client on the list. I had AHK doing most of the job I was hired for.
Thankfully, the multiple vendor websites made occasional changes to their layouts, color schemes, etc. so all my methods of navigation would inevitably break, requiring me to maintain it.
I was also building stuff where it would automatically fire off an email at certain points if there was a special change to tell the client about, if payment wasn’t seen on the vendor site by certain deadlines, etc.
That job eventually fell through for unrelated reasons (they moved me off that to somewhere they needed me more, and several years later got pushed out of that position and the company entirely).
Where do I get a job that let’s me build that stuff again?!
In a perfect world you could get paid to automate stuff with AHK. I wonder if you could market yourself as an AHK consultant where you basically shadow someone’s job for a week and then start figuring out how to automate the tedious stuff.
Personally I like the functionality of AHK but I can’t stand the syntax compared to Python and C. I start with such great plans of what I want to automate but get sick of fighting with the language after about an hour and settle for something simple.
I actually started thinking about exactly this minutes later, and have been VERY excited about trying it. I’ve been unemployed for awhile now, not by choice, and already have diagnosed depression going back years before. Job market stinks and I’m bad at getting hired. BUT this idea actually excites me, in a way I haven’t felt in WAY too long.
I plan to start working on some basic function libraries for myself, rebuilding some things from that old job, and I’ll also be contacting local businesses for a start. The old job was for a small business, so I have a decent feel for how to fit it into places.
So many of my "-tion"s end up as "-tino"s.
JS:
() => {}While
Cfeels fine without having a keyword for function, I feel likebashwould have benefitted from it.Bash (specifically Bash, not POSIX sh) does have a keyword for functions (
function), but it’s optional.Ooh nice.
The optional bit messed it up, because even though I can make my scripts easier for me, other’s scripts won’t be.
But thenbashhad to be usable withshscripts, so I get it.Right. It’s optional so that Bash remains backwards compatible as a superset of POSIX sh. If you’re working with exclusively Bash, though, it’s nice to use as syntactic sugar if nothing else.
basic:
def fn() => {}
R:
\()Well hello right back!
O/
new fangled…
Nix:
:( although Nix doesn’t allow empty bodies so it won’t build )
Best no contest
Kotlin seams fun
It is. Also *seems
No, no, they’re saying Kotlin seams together the fun.
A pointer?
To a dictionary
Meanwhile Haskell:
=
too bad they chose
::for type declaration instead of:\x -> …
The examples on the meme don’t bind any variables. If those are lambdas, the Haskell version is just the
part.I mean if we are talking lambdas the kotlin would just be {}
Related: Every
Fnkey on a keyboard is a missed opportunity! That’s not fun at all!
Begs the question, what’s the other shift key labeled!
Doesn’t matter: Nobody uses right shift for anything but pinball games!
okay, now i gotta figure out how to start a keyboard rave when i press fn
That’s a cool looking keyboard!
def ():is pretty niceEdit: also as someone doing a bunch of CI work right now, Bash can GTFO (unless the alternative is whatever Windows is doing)
Windows’s powershell has OOP :D
PowerShell seems like what you get when you combine the convenience and accessibility of a Linux shell with the annoying verbosity of Java
Have you tried “Get-ahilariosulylongnounandnoimnotkiddingsomearethislong?”
Nushell is pretty nice. It’s the good parts of “what Microsoft is doing”, i.e. real structured data in a shell-like language and real error handling.
also better to type with one hand
You QWERTY people…
/jk
Colemak is great though












