News for hackers. Stuff that matters.
Re:Why is learning functional programming so damned hard? (2... by jyounker on Sunday August 15, 2021 @07:24PM (#28193499)
"Port", "starboard" are unambiguously defined relative to the vessel. "Left" and "right" require specifying or guessing a point of reference.

For instance if you're facing port and I ask you to take two steps forward, you could either take two steps to port or two steps towards the bow. If I tell you to take two steps to port then the direction is unambiguous.

Re:Why is learning functional programming so damned hard? (2... by warble on Sunday August 15, 2021 @10:38PM (#28194460)
In theater you always specific 'stage left' or 'stage right' for the same reason, even though it's more syllables.
Re:Why is learning functional programming so damned hard? (2... by temp0826 on Monday August 16, 2021 @01:00AM (#28195076)
I've told my doctor that I had a problem with my passenger-side nostril before
Re:Why is learning functional programming so damned hard? (2... by xyzzy123 on Monday August 16, 2021 @03:16AM (#28195696)
One fun thing about this is that I have to guess what country you're in to know which side you mean.
Re:Why is learning functional programming so damned hard? (2... by lupire on Monday August 16, 2021 @10:46AM (#28198744)
The passenger side is where the booger is sitting.
Re:Why is learning functional programming so damned hard? (2... by coldtea on Monday August 16, 2021 @07:34AM (#28196929)
It's still ambiguous.

"Stage left" as if I'm standing looking towards the stage from the audience, or looking from the stage towards the audience?

Re:Why is learning functional programming so damned hard? (2... by dboreham on Monday August 16, 2021 @10:14AM (#28198347)
No it isn't because the term was invented specifically to avoid this confusion -- it means "left from the perspective of the performer facing the audience".
Re:Why is learning functional programming so damned hard? (2... by fsckboy on Sunday August 15, 2021 @09:58PM (#28194266)
ok, but forward on a boat is toward the bow, as unambiguous port and starboard
Re:Why is learning functional programming so damned hard? (2... by hn_go_brrrrr on Sunday August 15, 2021 @10:17PM (#28194349)
It's the difference between "forward for you" and "forward for the boat". Without words like "port", you might do the wrong thing when I say "take one step forward". Did I mean for you to go further in the direction you're already facing, or did I want you to step towards the prow?
Re:Why is learning functional programming so damned hard? (2... by shagie on Sunday August 15, 2021 @11:06PM (#28194591)
We use similar approaches with terrestrial navigation too.

At the intersection of Main and Oak, go two blocks east. The building will be on the north side of the street.

Those instructions are the same no matter what direction the person is facing or direction they came from.

However, on a ship, the absolute positions of NSEW (relative to the Earth) aren't as useful as the ship may be heading any direction (and may be going forward or reverse). So a different absolute coordinate system is use - fore, aft, port, starboard.

Re:Why is learning functional programming so damned hard? (2... by lupire on Monday August 16, 2021 @10:47AM (#28198759)
Terrestrial navigation is also multidirectional.
Re:Why is learning functional programming so damned hard? (2... by LanternLight83 on Sunday August 15, 2021 @10:28PM (#28194416)
It's not as unambiguous because, to the guy with his back to starboard, forward could just as easily mean port! It may seem clear if someone's shouting, and pointing, at the bow, but if I'm recounting the action of a tense combat scene and say he "slips on a banana peel and falls 'forward'", you can't know for sure what I mean- does he fall straight towards port, or does he a break a leg, twisting, tumbling toward the bow? c:
Re:Why is learning functional programming so damned hard? (2... by voidreaper on Sunday August 15, 2021 @10:18PM (#28194353)
You can step forward to any side of the boat.
Re:Why is learning functional programming so damned hard? (2... by gnubet on Sunday August 15, 2021 @10:54PM (#28194535)
In Soviet Russia, the boat can step forward to any side of YOU!
Re:Why is learning functional programming so damned hard? (2... by coldtea on Monday August 16, 2021 @07:37AM (#28196946)
It's not, because forward depends where you are looking it. That is, the front part of the boat might be on your back.

So "move forward" doesn't say much, whereas "toward the bow" e.g. does.

Same for left/right compared to port/startboard.