djnattyp

joined 1 year ago
[–] djnattyp@lemmy.world 1 points 2 weeks ago

XY Problems are much more common from the person asking the question though...

[–] djnattyp@lemmy.world 6 points 1 month ago* (last edited 1 month ago)

"Devops" original intent meant you don't have a separate "operations" department separate from teams "developing" your product / software due to competing incentives. "Dev" wants to push new stuff out faster; "ops" wants to keep things stable. Or "dev" needs more resources; but "ops" blocks or doesn't scale the same. The idea was to combine both "dev" and "ops" people onto projects to balance these incentives.

Then managers and cloud clowns repurposed it to apply to every person in a project so now every member is expected to perform both roles (badly). Or even more overloaded to somehow refer to "developer infrastructure" teams.

[–] djnattyp@lemmy.world 3 points 1 month ago (3 children)

Google for "replace conditional with polymorphism".

Just checked and it is in "Clean Code" - Chaper 17; Section G23 "Prefer Polymorphism to if/else or switch/case".

[–] djnattyp@lemmy.world 4 points 2 months ago

Parquet is a storage format; graphQL is a query language/transmission strategy.

[–] djnattyp@lemmy.world 1 points 3 months ago

This is also against clean code examples, because Uncle Bob seems to be allergic against function arguments and return values.

I think this is your strawman version of "Clean Code"... not anything that's actually in it...

I "like" some parts of your example more than the previous one, but a lot of this depends on where exactly in the whole program this method is - if this method is on a "Salesman" class - does it make sense to pass the "Contract" in? If there's a Contract class available, why doesn't the "calculateCommission" method exist on it?

[–] djnattyp@lemmy.world 1 points 1 year ago* (last edited 1 year ago) (1 children)

On the map of the level, pick a room near the center of the dungeon (as long as it's not where players enter) and label it as "1", circle this rooms in a random order, labeling them 2, 3, 4, etc., making sure rooms that have connections don't have consecutive numers... keep circling outwards until all rooms have numbers. Then put the rooms in numerical order in the GM module book. Only refer to the room number on the map and the heading of the room. Don't use the room number to reference exits from the current room either, just state things like "a cave exit is to the east and a wooden door is in the north wall".

The DM will constantly have to refer back and forth from the map to the book - and have to flip to random parts of the book since the numbers aren't "in order".

For additional hate, make sure that north doesn't point toward the top of the map, and/or don't place a compass rose on the map.

For even more additional hate, make the players hunt down opponents/creatures in the dungeon that also move through the dungeon as the players move rooms.

[–] djnattyp@lemmy.world 25 points 1 year ago

Summary: 'Life is unfair', chortles an opportunist who benefits from an unfair system.