this post was submitted on 05 Sep 2023
18 points (100.0% liked)

Programmer Humor

20667 readers
2041 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
 
top 28 comments
sorted by: hot top controversial new old
[–] Enkers@sh.itjust.works 2 points 1 year ago

OK, but who can I sue if I suffer grave bodily injury while installing kubernetes?

[–] phorq@lemmy.ml 2 points 1 year ago (1 children)

I count 13 steps, so it just means you're gonna trip up on 3 of them...

[–] db2@sopuli.xyz 2 points 1 year ago* (last edited 1 year ago) (2 children)

15 steps. You're not counting the top, and the bottom is step 0 and we all know counting starts there.

[–] jerome@kbin.social 2 points 1 year ago (1 children)
[–] GuybrushThreepwo0d@programming.dev 1 points 1 year ago (1 children)

We are on a programming sub of a federated and open source reddit clone. We are all nerds.

[–] ripcord@kbin.social 1 points 1 year ago (1 children)

I assume it was meant as a compliment.

[–] jerome@kbin.social 2 points 1 year ago

(i said it with love)

[–] UnRelatedBurner@sh.itjust.works 1 points 1 year ago (2 children)

sometimes i start my iterator with = -1. As I only +=1 it with a condition and I know that it will return true on the first cycle. I'll chuck array[iterator] and need it to be 0 to start with ofc.

I just have no idea how to not do this, but it looks so bad, i need a i8 instead of a u8 at least because of this

[–] darcy@sh.itjust.works 2 points 1 year ago* (last edited 1 year ago)

thats great unless you want i to be an unsigned integer

edit: oops u already mentioned that

[–] Kache@lemm.ee 1 points 1 year ago

What? My intuition is there's always gotta be some equivalent nicer refactor that could do away with such an awkward construct.

In what kind of situation would that be totally unavoidable?

[–] sj_zero@lotide.fbxl.net 1 points 1 year ago (3 children)

Unrelated, I love those stairs. They seem like a disaster waiting to happen but I love them.

[–] PersnickityPenguin@lemm.ee 2 points 1 year ago (1 children)

“Seem?”

As an architect this is honestly insane. First rule is to do no harm, but someone obviously is a psychopath, and thats the designer.

There is no way that thin metal can even structurally support a person.

[–] GbyBE@discuss.tchncs.de 0 points 1 year ago (1 children)

Of course the metal can support a person. It's not like one side is floating in thin air. The way this is constructed, both sides of each step are supported and the metal seems thick enough to support quite a bit of weight.

The only thing that bothers me is that forward/backward motion of the steps would put a lot of strain on the connection to the wall or floor. With normal use, that motion is quite limited though.

I'm quite confident the designer of those stairs used the right thickness for the material used, which you can't judge from a picture.

[–] discostjohn@programming.dev 1 points 1 year ago

My concern would be if someone slipped and got their leg wedged between two of the steps

[–] lightnsfw@reddthat.com 1 points 1 year ago

Break grandma's hip in 10 easy steps!

[–] LegionEris@feddit.nl 0 points 1 year ago (1 children)

Yeah, I am, without sarcasm, super agile and coordinated. I would love to have these steps. It would be fun for me every time. And I'd feel so safe at the top of my tricky stairs. Unfortunately my wife would never. She'd just be trapped downstairs.

[–] GbyBE@discuss.tchncs.de 0 points 1 year ago (1 children)

Perfect stairs to your man cave 🙂

[–] LegionEris@feddit.nl 0 points 1 year ago

Except I'm not a man, and I don't have a cave. I'm a woman, and I have a cage. But it has to be accessible to my wife so she can let me out eventually o_o So again, no agility stairs allowed.

[–] Obi@sopuli.xyz 1 points 1 year ago

I'm usually one to think folks exaggerate the dangerousness of strange staircases in posts like these, but yeah these are definitely gonna cause a few accidents.

[–] dingleberry@discuss.tchncs.de 1 points 1 year ago

The anklesnappers.

[–] bacondragonoverlord@feddit.de 1 points 1 year ago

Aka Thighslitting nutcracker.

[–] r1veRRR@feddit.de 1 points 1 year ago

Kubernetes is so easy! Unless you're insane enough to have any state at all in your app. But who does that?

[–] NegativeLookBehind@kbin.social 0 points 1 year ago (2 children)

Ok so just learn Kubernetes. And then realize that for it to be useful in a production environment, it needs like 10 other third party things, which you’ll also have to learn, and you’re done!

[–] smik@discuss.tchncs.de 1 points 1 year ago

10 is a bit exaggerating. What do you really need?

ExternalDNS is nice so you don't have to config your DNS manually. You might need to install your own Ingress controller. If you want to automatically add and renew certificates cert-manager is great. Security is important! Speaking of, you should add some kind of secret management (something like sealed-secrets, vault or Secrets Store CSI Driver).

A really important thing is monitoring so you know your pods and the cluster itself is healthy. Prometheus is still king in that regard in my opinion. PromQL isn't that hard. Of course some kind of alerting like AlertManager is a must for prod environments. Be aware that the front ends of those tools are not behind a login so something like oauth2-proxy and dex is vital! You might want to have some visualisation too so Grafana is a nice addition. If you add Loki too you got your OPs covered.

Keeping track of all of your stuff is the hard part so some GitOps is highly recommended. ArgoCD or FluxCD are popular for a reason!

I think that should cover the basic setup so you may scale your CRUD app without worries!

[–] u_tamtam@programming.dev 0 points 1 year ago (2 children)

Rule of thumb for kubernetes, if you are learning it "for fun" or on your own, you are not gonna need it :)

[–] CanadaPlus@lemmy.sdf.org 1 points 1 year ago (1 children)

I just want to understand in detail what it is and how it works. Advice?

Thanks for saying that.....I thought I was the only one who thought like that.