@lambda@chaosfurs.social avatar

lambda

@lambda@chaosfurs.social

23 y/o fuzzy protogen from Austria. Posts in EN/DE.

Embedded systems engineer, hobby #rustlang developer, #Linux user. #Trains are cool too.

Follow requests welcome - fresh empty accounts may be rejected, if in doubt, shoot me a DM.

Dieses Profil is von einem föderierten Server und möglicherweise unvollständig. Auf der Original-Instanz anzeigen

foone , an Random Englisch
@foone@digipres.club avatar

I'm writing rust without fully understanding the language. Pray for me.

Actually I guess that's true of most language I program in? Like, I'm sure there's some obscure python syntax or behavior I can't remember, despite calling myself a python programmer and having done it professionally for many years.

but my point was more that I barely know any rust. there's entire parts of syntax I don't understand yet. but I'm coding anyway!

lambda ,
@lambda@chaosfurs.social avatar

@foone I usually do something along the lines of:

alt((map(integer, Value::Integer), map(string, Value::String), map(point, Value::Point), map(color, Value::Color)))

Where Value is an enum, each variant being a 1-tuple of the respective type

fasterthanlime , an Random Englisch
@fasterthanlime@hachyderm.io avatar

I ate breakfast and my mood isn't fixed yet, plz advise

lambda ,
@lambda@chaosfurs.social avatar

@fasterthanlime science requires you to try again with a second breakfast

mattgrayyes , an Random Englisch
@mattgrayyes@chaos.social avatar

The American road system baffles me for many reasons. The main one being:

🔴 Traffic light red:
You can turn right.
There will be no pedestrians crossing. You have right of way.

🟢 Traffic light green:
You can turn right.
There will be pedestrians crossing in front of you. You do not have right of way.

lambda ,
@lambda@chaosfurs.social avatar

@mattgrayyes wait, how exactly does this work? Do all crossings have separate straight and turn traffic lights for cars? Or are there three phases, cars one direction, cars other direction, pedestrians all directions?

TechConnectify , an Random Englisch
@TechConnectify@mas.to avatar

I don't know who needs to hear this (that's a lie: ~80% of drivers) but when you're in a turn lane or an exit only lane, you should still signal to confirm to those around you that you are aware of the lane you're in and where it's about to go.

lambda ,
@lambda@chaosfurs.social avatar

@TechConnectify look, just because you can afford to top up your blinker fluid every week doesn't mean everyone else can too.

  • Alle
  • Abonniert
  • Moderiert
  • Favoriten
  • random
  • haupteingang
  • Alle Magazine