HNHacker News
TopNewBestAskShowJobs

patsplat

292 karma · joined June 3, 2014

http://patricksdata.com
submissionscomments
patsplat··on The Door Problem of Combat Design
In linear single player games lowering the cost of failure is a powerful way to encourage aggressive play. Games like Super Meatboy don't even make the player wait after death, encouraging the player to keep trying immediately.

In multiplayer games, looping maps discourage tentative play. Remain in one space too long and get flanked.

I like the way World of Tanks discourages cautious play with scouting and artillery

patsplat··on Unison File Synchronizer
What a fantastic tool!

A long time ago used unison to keep file uploads on 2x primary web servers[1] in sync. It worked like a charm. With IIS on Windows!

patsplat··on Composing better emails
Agreed. I generally delete everything but the bold sentences.
patsplat··on Escape the scripter mentality if reliability matters (2011)
Investing time upfront is only productive if one has ready access to a broad and relevant corpus of data.
patsplat··on What Were CGI Scripts?
So many problems solved by formmail.pl
patsplat··on What Were CGI Scripts?
OP does a poor job explaining what CGI scripts were.

From the RFC linked in the OP: https://tools.ietf.org/html/rfc3875#page-23

CGI defined an interface between a web server and an executable that would provide a response.

- Request meta-data i.e. path, query string, and other headers passed as environment variables.

- Request body passed via stdin

- Response header and body passed via stdout

In this way, a webserver like Apache could provide a platform for a wide array of languages. Yes there were security and scaling concerns, but it also was an opportunity to rapidly release and iterate on a product.

patsplat··on Welcome to the Old Internet Again
Reading this on an Android phone... Some might argue it's an abuse of open source but it is Linux nonetheless.
patsplat··on Great Pacific garbage patch: giant plastic trap put to sea again
From the article:

> A ship towed the U-shaped barrier from San Francisco to the patch in September to trap the plastic. But during the four months at sea, the boom broke apart under constant waves and wind and the boom was not retaining the plastic it caught.

patsplat··on The NYC subway system runs on OS/2
It's a bit unclear. So does OS/2 run on the turnstiles?

Also my mom loved OS/2 Mahjong so it had a long life in my house growing up.

patsplat··on Micro Frontends
The result of this architectural pattern:

https://vimeo.com/166807261

patsplat··on Absolute truths I unlearned as junior developer
Learned as a junior: results matter Learned as a senior: stories matter
patsplat··on Should array length be stored into a local variable in C#?
If your workload is summing 32 million float32s use foreach. Otherwise pay for readability with CPU.
patsplat··on Should array length be stored into a local variable in C#?
It's the appropriate first choice.

If things are slow, instrument and investigate. Only bother fiddling with Array.length if profiling with production workloads exposes that as the bottleneck. More likely the problem will be elsewhere.

patsplat··on Ask HN: Server-side web apps – is the database still a bottleneck?
Persistence is still slow, but is no longer a major bottleneck. SSDs are faster, but io and network is still slow.

What has changed it is much easier for the client to be continually in touch with the server so that by the time the next "page" is loaded all necessary data has been retrieved.

This way the database is no longer the same obvious bottleneck.

patsplat··on Should array length be stored into a local variable in C#?
Use Linq and forget about array length.

It's an interesting analysis and all, but why bother when the language has such an elegant collections API.

patsplat··on Virtual DOM is pure overhead (2018)
Double buffering is a standard rendering technique. It might be pure overhead but it won't look that way.
patsplat··on JSON as configuration files: please don’t (2016)
Thanks for the links, though I stand by my snark
patsplat··on JSON as configuration files: please don’t (2016)
Lol https://developers.google.com/protocol-buffers/
patsplat··on JSON as configuration files: please don’t (2016)
Not just Scala https://github.com/yellowblood/hocon-js
patsplat··on Tickling (2018)
It's never to early to teach consent
patsplat··on Ask HN: How can I learn how to paint?
Figuring drawing is a great first step to loosen up, relax, and practice seeing and abstraction. There's probably a class nearby.

Photography, especially digital, is a great way to explore composition and narrative.

And a key bit of advice - take a class in oil painting first. Acrylic and water color seem simpler, but are less forgiving of mistakes. Dedicate a studio space / corner to practice painting.

Art is like exercise - pick what you enjoy doing and will keep doing over what someone else says to do.

patsplat··on Famous Laws of Software Development (2017)
The loading graphic may be more to prevent a Flash of Unstyled Content (FOUC) than to mask loading times:

https://en.m.wikipedia.org/wiki/Flash_of_unstyled_content

Single page apps have quite a bit of control over rendering, however Google prefers that indexed markup be pre rendered from the server. Juggling the two competing priorities leads to byzantine technical issues.

Front end development for content sites can be complex.

patsplat··on Programming the Z3 SMT solver
Found these links helpful:

https://en.m.wikipedia.org/wiki/Satisfiability_modulo_theori... https://github.com/Z3Prover/z3/wiki/Slides

Appears to be useful for static analysis and verification of a program.

patsplat··on Fossil vs Git
Not sure why this was down voted. Squash’n’Merge on Pull Request keeps master history clean while tolerating sheninagins on feature branches.

If important things are lost then perhaps the PR was too large.

patsplat··on It is fast or it is wrong
This seems to be more a benchmark for ClosureScript rather than "the web"
patsplat··on Serverless Computing: One Step Forward, Two Steps Back
the analogy to "distributed CGI" is on point
patsplat··on Serverless Computing: One Step Forward, Two Steps Back
that sounds like an interesting architecture and problem set but don't see how 'serverless' would help
patsplat··on Serverless Computing: One Step Forward, Two Steps Back
Please, share the use cases where serverless is the optimal choice.

Because I've tried it. For problems like thumbnail generation which is literally the canonical example [1]. And even in that case, found myself switching the workload back to containers to control the exact version of imagemagick to prevent a color gamut bug.

1. https://docs.aws.amazon.com/lambda/latest/dg/with-s3-example...

patsplat··on Serverless Computing: One Step Forward, Two Steps Back
Serverless applications suffer from a few under reported drawbacks:

- Local development is complex. Does one provision a full cloud environment per developer? Emulate a cloud environment locally? These are solvable but it's a grind of special cases.

- Limited customization. Eventually one needs to customize the language / libraries of the lambda. Again these are solvable with a grind of special cases.

- Limited execution model. Not all compute tiers are the same. Some quickly assemble results from a database. Others run for a long time. Others build up a model in RAM before delivering results. Serverless optimizes for some but not all models.

Unlike serverless / lambda, all of the above can be addressed by containers.

- Containers have orchestration solutions for local development and deployment

- Containers are designed to support customization

- Containers can be deployed to run in many different ways.

Not to be a booster, but in my experience containers are the scalable compute architecture.

patsplat··on Psychology’s Replication Crisis Is Real
That and we're all fools for doubting the scientists diagnosing ADHD https://news.ycombinator.com/item?id=18562975 /eyesroll
← PreviousPage 2 of 6Next →