636
Zero to Hero in 1 hour (sh.itjust.works)
top 50 comments
sorted by: hot top controversial new old
[-] phorq@lemmy.ml 48 points 11 months ago

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

[-] db2@sopuli.xyz 41 points 11 months ago* (last edited 11 months ago)

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

[-] jerome@kbin.social 35 points 11 months ago
[-] GuybrushThreepwo0d@programming.dev 45 points 11 months ago

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

[-] ripcord@kbin.social 15 points 11 months ago

I assume it was meant as a compliment.

[-] jerome@kbin.social 2 points 11 months ago

(i said it with love)

[-] UnRelatedBurner@sh.itjust.works 5 points 11 months ago

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

[-] Kache@lemm.ee 5 points 11 months 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?

load more comments (1 replies)
[-] KIM_JONG@lemmy.world 2 points 11 months ago

I hope I never have to see this code.

[-] UnRelatedBurner@sh.itjust.works 1 points 11 months ago

sending it asap (when I get home)

load more comments (1 replies)
[-] darcy@sh.itjust.works 2 points 11 months ago* (last edited 11 months ago)

thats great unless you want i to be an unsigned integer

edit: oops u already mentioned that

[-] pec@sh.itjust.works 6 points 11 months ago

That's accurate. There's always a few steps not included in the tutorial

[-] sj_zero@lotide.fbxl.net 36 points 11 months ago

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

[-] lightnsfw@reddthat.com 19 points 11 months ago

Break grandma's hip in 10 easy steps!

[-] KIM_JONG@lemmy.world 8 points 11 months ago

My grandma is so hip, she uses kubernetes.

[-] milkjug@lemmy.world 2 points 11 months ago

Yo she alright but does she even know how to exit vim

[-] KIM_JONG@lemmy.world 2 points 11 months ago

Bitch, my g-ma :wq yo ass :1,$s/Twice on Sunday//g

[-] PersnickityPenguin@lemm.ee 5 points 11 months ago

Lol 1 easy step

[-] my_blackest_day@lemmy.world 2 points 11 months ago

Children injury in 5 easy steps! Available now!

[-] TheBat@lemmy.world 2 points 11 months ago

Your grandma sounds kinky ngl

[-] PersnickityPenguin@lemm.ee 7 points 11 months ago

“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 12 points 11 months ago

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 6 points 11 months ago

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

load more comments (1 replies)
[-] LegionEris@feddit.nl 6 points 11 months ago

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.

[-] ChickenLadyLovesLife@lemmy.world 5 points 11 months ago

I run 6 miles every other day. A local rails-to-trails path near me is exactly 2.5 miles long, so I have to find some way of getting in an extra mile on my runs. The trail ends at a real railroad track, so for a while I tried running a half mile on the track and back, between the rails landing on every other tie as I ran since the distance perfectly matched my stride. This went on for a couple of years until one day I was doing it and actually started thinking "wow, this is pretty amazing that I can do this and not fall". Not five seconds later I tripped and fell, landing both elbows and both knees on tie.

Somehow I was only bruised and didn't break anything, and after ten minutes of groaning I was able to drag myself up and even complete my run. That was my last time running on railroad ties though.

[-] PersnickityPenguin@lemm.ee 2 points 11 months ago

You should try the Oahu Diamond Head hike then. Its like a half mile of hiking up a funicular track.

[-] LegionEris@feddit.nl 1 points 11 months ago

Yeah, never take it for granted. You gotta do it on purpose with your feet every time. Learning to purposely activate intuitive motion is the goal. In a way, they're extraordinarily zen stairs. You have to be right there on the stairs every time.

[-] sj_zero@lotide.fbxl.net 3 points 11 months ago

"My wife" aka the lady you brought down before the drugs wore off who can never leave your basement.

:P

[-] LegionEris@feddit.nl 3 points 11 months ago

Psh. The drugs never wear off. She smokes weed all day every day.

[-] GbyBE@discuss.tchncs.de 2 points 11 months ago

Perfect stairs to your man cave 🙂

[-] LegionEris@feddit.nl 3 points 11 months 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.

[-] GbyBE@discuss.tchncs.de 2 points 11 months ago

Sorry, I somehow failed to notice the [she/her]. Didn't mean to offend.

load more comments (1 replies)
[-] Enkers@sh.itjust.works 35 points 11 months ago

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

[-] NegativeLookBehind@kbin.social 24 points 11 months ago

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!

[-] u_tamtam@programming.dev 14 points 11 months ago

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

[-] alphacyberranger@sh.itjust.works 4 points 11 months ago

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

[-] CanadaPlus 2 points 11 months ago

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

[-] u_tamtam@programming.dev 5 points 11 months ago

I've found it best explained in some stackoverflow answer mentioning the pet vs cattle analogy. In short, if you know how many servers you have from the tip of your tongue, and what they do more or less, then they are akin to pets: you treat them well and keep an eye on each of them.
Kubernetes is meant for when you have so many of them, that come and go without you even noticing or caring, bearing a number for the sake of production/cost control, this is cattle. Needless to say that this is not your typical app/company running at such a scale, and that there is a 24/7 team of "ranchers" keeping an eye on the herd.

[-] smik@discuss.tchncs.de 8 points 11 months 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!

[-] KIM_JONG@lemmy.world 11 points 11 months ago

I think you covered at least 10 things.

[-] r1veRRR@feddit.de 22 points 11 months ago

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

[-] FarceMultiplier@lemmy.ca 16 points 11 months ago

FWIW, I suspect these stairs have been photographed before adding wood steps that are deeper/wider. I base that on the low visible height of the bottom step. A 1.5-2 inch wooden slab would normalize the height of each step.

[-] bacondragonoverlord@feddit.de 16 points 11 months ago

Aka Thighslitting nutcracker.

[-] Obi@sopuli.xyz 13 points 11 months 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 9 points 11 months ago

The anklesnappers.

[-] looz@sopuli.xyz 4 points 11 months ago

minikube start

[-] ShittyRedditWasBetter@lemmy.world 1 points 11 months ago* (last edited 11 months ago)

K8s basics isn't that hard, but it builds on quite a bit of knowledge. And running anything of complexity to multiple nodes is going to take at least some intermediate tuning to get your app stable.

This is fantastic though.

load more comments
view more: next ›
this post was submitted on 05 Sep 2023
636 points (97.7% liked)

Programmer Humor

18890 readers
746 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 1 year ago
MODERATORS