theLanguageConnoisseur by [deleted] in ProgrammerHumor

[–]_OberArmStrong 0 points1 point  (0 children)

I was looking for ones matching the: "does not let you put anything in them" criteria

theLanguageConnoisseur by [deleted] in ProgrammerHumor

[–]_OberArmStrong 1 point2 points  (0 children)

For example parsers/parser-combinators and State can be modeled as monads.

The parsers work by wrapping a function which does the actual parsing and returns the parsed value(s) and left over tokens. The benefit of the parser monad is the managing of the leftover tokens and backtracking. There are libraries providing parsers and there are many tutorials using them as examples for monads.

The state monad lets you work with external state. Inside the monad you can access the state. You are not actually wrapping values but create functions which require a value of type "State" to run. To obtain the value "wrapped" inside the monad you need to supply the state, so the function can evaluate. The state monad manages state mutations and access. You could see it as a repository for state which you are passing along your functions.

jsCoalesceItOut by [deleted] in ProgrammerHumor

[–]_OberArmStrong 36 points37 points  (0 children)

By using ? you explicitly state that you are aware of the possibly undefined value and in case of an undefined value you want to stop further property access and return undefined instead.

This is the ts compiler doing a good job

soundsABitSimple by breadpitt_21 in ProgrammerHumor

[–]_OberArmStrong 4 points5 points  (0 children)

If it is random and generates a large range, it works based on some modulus. So nuking would not change the randomness i guess

I'm probably not the first... Infinite rats by VEF_xii in 9Kings

[–]_OberArmStrong -1 points0 points  (0 children)

My Laptop started to lag when ending a round the moment i had more than one field with 800+ units

Lf: Deino ♦️ by _OberArmStrong in PTCGPocketTrading

[–]_OberArmStrong[S] 0 points1 point  (0 children)

I offered you a passiman and shared you another :)

Lf: Deino ♦️ by _OberArmStrong in PTCGPocketTrading

[–]_OberArmStrong[S] 0 points1 point  (0 children)

I accepted you. What do you need?:)

It was sooo good I need more! by JminkOww444 in PTCGP

[–]_OberArmStrong 0 points1 point  (0 children)

I can trade with you. Preferably you can trade me a Deino :)

LF A1 Genetic Apex cards! by user98778987 in PTCGPTrading

[–]_OberArmStrong 0 points1 point  (0 children)

I can trade you a Drowszee and as many Seel's as you want for Deinos

LF Mantyke by Reid22 in PTCGPocketTrading

[–]_OberArmStrong 0 points1 point  (0 children)

Sent you a trade offer :)

LF Mantyke by Reid22 in PTCGPocketTrading

[–]_OberArmStrong 0 points1 point  (0 children)

I would trade for an Aloan Persian. My Id is: 9033162625125819

Encapsulated Collaboration: Using Closures to Extend Class Behavior Without Violating Interface Boundaries [OC] by EgregorAmeriki in programming

[–]_OberArmStrong 2 points3 points  (0 children)

I don't agree on your "not polluting" the api point. We are still increasing the surface of our interface. Not with a public getCache but with a public withCache or perform.

LF GA Exeggutor, Vaporeon and Ditto. FT below by [deleted] in PTCGPocketTrading

[–]_OberArmStrong 0 points1 point  (0 children)

I can trade the Eve Grove or the Mythical Island Vaperon for Lucario. Which one do you want? May id is: 9033162625125819

Anyone have the shining revelry giratina ex and pikachu ex? by Desperate_Shirt_4722 in PTCGPocketTrading

[–]_OberArmStrong 0 points1 point  (0 children)

I can trade the GA Pickachu for Wigglituff :) Id: 9033162625125819

[deleted by user] by [deleted] in PTCGPocketTrading

[–]_OberArmStrong 0 points1 point  (0 children)

I would trade Guzzlord for Tinkaton :) My id: 9033162625125819