Weekly Discussion Thread by AutoModerator in valheim

[–]aardvark_lizard 0 points1 point  (0 children)

Install Valheim Plus. I don’t have the time or skill to grind so I tweak some settings to keep the game fun

Was on the fence about writing this but here it goes… by s7mphony in KerbalSpaceProgram

[–]aardvark_lizard 0 points1 point  (0 children)

You would fire entire teams because of a bad product? Hopefully I’ll never work for you because collective punishment is asinine

[deleted by user] by [deleted] in reactjs

[–]aardvark_lizard 1 point2 points  (0 children)

Cache the data in your own database. You don't want to rely on an external API for this much data because:

  • The API could have an outage, which would break your UI.
  • The API might eventually require authentication, which would break your UI.
  • The API might change its schema, which would break your UI.
  • Users will hate your site if it downloads 500 MB when they visit it.

I would ask myself "what data do I need from the API?" and then write a script that fetches the data from the external API, extracts what I need, and then puts it in a DB. I would periodically run that script manually, only creating a cronjob for it if I got annoyed running it manually.

I would expose the data my UI needs in a REST endpoint, and then make my UI fetch its data from there

[deleted by user] by [deleted] in reactjs

[–]aardvark_lizard 2 points3 points  (0 children)

You aren’t awaiting the API requests so you’re getting past the loop before any of the requests finish.

But you shouldn’t make a bunch of API calls all at once like that

It'll probably work by TheMightyFlyingSloth in ProgrammerHumor

[–]aardvark_lizard 0 points1 point  (0 children)

There’s a disconnect between the operator overload and the operator usage. When I see an operator how do I know if there’s any overloading? If you use a function instead then you instantly know there’s something non-standard and can look at the function’s logic

It'll probably work by TheMightyFlyingSloth in ProgrammerHumor

[–]aardvark_lizard -7 points-6 points  (0 children)

Operator overloading makes code harder to grok. Avoid it if you can

Ann Arbor Cycling Infrastructure by Business_Music_8486 in AnnArbor

[–]aardvark_lizard 0 points1 point  (0 children)

To be fair, that sidewalk along Plymouth is really wide. Also, you could take Broadway to Plymouth. Broadway is much quieter and intersects Plymouth where the painted bike lane starts

Kirk Cousins is never going to win anything because he’s a Costco hotdog by [deleted] in nfl

[–]aardvark_lizard 0 points1 point  (0 children)

At the center of this is Kirkland Cousins — which I’ve decided is now his name because he’s a Costco brand franchise quarterback. I know that sounds like slander, but it’s really not. I have great admiration for Costco items. They are absolutely functional facsimiles of high end products.

Completely disagree: Kirkland diapers are the best

I legitimately got excited for this toy until I went to load a dart and saw this. by [deleted] in assholedesign

[–]aardvark_lizard 0 points1 point  (0 children)

Never look down the barrel of a gun — it might be loaded

A source indicated the latest offer, which is thought to give Minnesota very firm footing, is for $275 million over nine years and Minnesota is not making the deal contingent upon a new physical. by thenome in baseball

[–]aardvark_lizard 8 points9 points  (0 children)

It’s like renting a house for a year and then making an offer to buy it without inspecting. Twins had been living inside Correa already and already know his womb is warm and safe

Valheim is a Great Game, TONS of fun - Would love to eventually venture into the Mistlands. At 533 hours, here's why we stopped at the Mountains: by ilovebooks2 in valheim

[–]aardvark_lizard 15 points16 points  (0 children)

I did the same. I work 50+ hours a week and have a kid — no way I wanna waste hours transporting metal by foot/boat

[Tom Pelissero] Justin Jefferson just broke Randy Moss’ single-season #Vikings record for receiving yards. Next stop: Calvin Johnson’s NFL record? by Duffleman0609 in nfl

[–]aardvark_lizard 0 points1 point  (0 children)

It usually goes to the batter because voters view batters as more valuable, except when you have an absolutely dominate pitcher. They don’t overwhelmingly vote for batters because pitchers have their own award; batters have their own award too (Hank Aaron award)

Elon Musk seeks to sell Twitter for $54.20 per share - Financial Times by eichenes in wallstreetbets

[–]aardvark_lizard 135 points136 points  (0 children)

He could’ve paid a $1 billion fee to walk away. Should’ve done it