Better HN
topnewbestaskshowjobs
Log inSign up

gitgud

5,433 karma · joined Aug 23, 2017 (9y ago) · 2,457 submissions

Complex solutions create complex bugs...

https://github.com/benwinding

https://benwinding.com

[ my public key: https://keybase.io/benwinding; my proof: https://keybase.io/benwinding/sigs/bVV_JyagfOPTVOiqOf50YZB4rhM0EIDgUvumlGAA6mY ]

Submissions

comment 4y ago · link · parent

> And, I know, for a fact, that some of these patterns are used for exactly the reason that I stated.

You've gone from "I strongly suspect" in previous comment, to "I know, for a fact"...

New methodologies are not necessarily designed for large teams of "unskilled engineers", just like old methodologies were not necessarily designed for "one or two skilled engineers"...

comment 4y ago · link · parent

> It's been decided that Standard ML is the language of this implementation. You can read why in the 100-years.txt file

Link? This site is already basically a txt file

comment 4y ago · link · parent

> lazy loading - and it turns out that you can do that without JS too, now, at least in modern browsers.

The irony is, modern browsers are more likely to have JS enabled, older browsers are less likely to support lazy loading or JS.

454.

Ash HN: Sea levels are rising, so why is coastal real estate not falling?

9 points · by gitgud · 4y ago · 9 comments

comment 4y ago · link · parent

> Being able to batch state -> render updates based on priority even better still.

Mobx [1] is pretty good for this, it batches updates that happen, making rendering more efficient.

Also regarding rendering, react will update a component it it's state changes. It might update its children components, but if you pass them in as props, they won't be updated, as they're rendered in the parent component's context.

This allows you to create complex applications with thousands of interactive components, and have quite good performance, as minimal rendering is performed.

[1] https://mobx.js.org/react-integration.html

comment 4y ago · link · parent

According to the "HN guidelines" [1]

> Otherwise please use the original title, unless it is misleading or linkbait; don't editorialize.

So, "Stop using" could be considered "linkbait", which could be why it was changed to just "Using".

It's ironic that this has the effect of misleading the author's intent...

[1] https://news.ycombinator.com/newsguidelines.html

comment 4y ago · link · parent

Another elegant game is [1] City Skylines. It's amazing how they can create such a huge virtual world with millions of simulated individuals that roam around and have complex lives in your city.

[1] https://store.steampowered.com/app/255710/Cities_Skylines/

comment 4y ago · link · parent

Democratising AI... through our opaque proprietary API...

comment 4y ago · link · parent

> The PR should be created with zero commits

Doesn't a PR need a commit to be able to create it?

comment 4y ago · link · parent

The headings, styles, even features are identical. It's not possible that this is a coincidence.

comment 4y ago · link · parent

> more resistant to trolling and abuse, is that messages are not published until the counterparty replies or accepts your comment.

So this platform proposes that you must make your comment agreeable to other party, which has its benefits; civil discourse, pleasant rebuttals, less polarising discussion. However it gives the power of censorship to each party, giving a false view of discussion.

What really makes a system resistant to trolling is "reputation", this can be in the form of points or even some kind of verification system. The best platforms respect this, and requires you to earn the right to be heard through time and dedication to the community. Points are a way of verifying that the user has had respectful discussion in the past, as users should only earn points through respectful discussion.

462.

Virtual Flossie – The National Museum of Computing(tnmoc.org ↗)

2 points · by gitgud · 4y ago · discuss

comment 4y ago · link · parent

Attracting usage (more people)

and also

Abstracting usage (summary of how it's used)

comment 4y ago · link · parent

A better version of your example would be a 5-year-old that cannot open the packaging to get to the pieces of the paintbrush that need to be assembled, in order to paint his first stroke... that's the (arguably) unneeded complexity of SELinux

comment 4y ago · link · parent

Nextjs is fullstack in the sense that you write "pages" (react for the front-end) and "api" functions for the server. All you do is put these abstractions in files and Nextjs wires up the URL paths based on their file paths...

It's popularity has soared because it eliminates a lot of the routing boilerplate in react apps, and is generally quite pleasing to develop in!

comment 4y ago · link · parent

> "The problem is not so much that selinux is too complicated (it is as complicated as it needs to be)..."

Completely disagree, if the target users are advising each other to disable it... then the tool is definitely more complicated than it needs to be.

Using tools that don't hide any complexity are very painful to use. It feels like the creator doesn't care about the user and put no thought into the display of information or workflows of the tool.

Solving a complex problem with a perceived complex tool is relatively easy... don't hide any complexity.

Solving a complex problem with a perceived simple tool is difficult... hiding complexity at the right time, revealing functionality it based on the user's intentions and experience is not easy but greatly appreciated.

comment 4y ago · link · parent

True, but I think it's a little different when an application has been closed-source for over 20 years.

My point is; open-sourcing something doesn't just mean your project will be "driven by individual volunteers"

comment 4y ago · link · parent

> Because progress will be driven by individual volunteers or corporate stewardship.

Works well in theory! In reality the incentives of open-source contributions are complicated and don't always pan out. This is especially true for complex applications, as they're generally harder to contribute to than small libraries/plugins...

comment 4y ago · link · parent

> as I understand it, the reason Node packages are so small is to make it efficient to run them in browsers

Usage of npm packages in browsers is kind of an after thought, as originally people used a separate dependency management for the browser (bower js)

The NPM ecosystem has a huge focus on reusability of libraries, smaller packages is just an emerging phenomenon when reusability is the goal.

Also, small packages are a way to embrace the Unix philosophy, "do one thing and do it well"

But yes, smaller packages create large dependency chains and a greater attack surface...

comment 4y ago · link · parent

So fracture the community into a bunch of moderated instances with varying rules?.... Sounds like reddit

471.

Virtual World Expo – Dubai (2020)(virtualexpodubai.com ↗)

1 points · by gitgud · 4y ago · discuss

comment 4y ago · link · parent

People that lie on their Résumé's, may also lie on their Github profiles... but that's admittedly a bit harder to fake

comment 4y ago · link · parent

The "rockstars" who write the first system will be despised by the "clean crew" who have to maintain it after its no longer easy to add features...

comment 4y ago · link · parent

This resolution must be orders of magnitudes better now, maybe they're just harder to find...

475.

Bug Driven Development – Sometimes it's the best choice(blog.benwinding.com ↗)

1 points · by gitgud · 4y ago · discuss

476.

Bug Free Software(wiki.c2.com ↗)

1 points · by gitgud · 4y ago · discuss

477.

Stop Validating Email Addresses with Regex (2012)(davidcel.is ↗)

179 points · by gitgud · 4y ago · 215 comments

comment 4y ago · link · parent

Sometimes I think of a world without borders. But after more thought, it would probably require a world government...

comment 4y ago · link · parent

Do you mean https://lobste.rs/ ?

comment 4y ago · link · parent

Anonymity, people don't hold back when there's no reputation to lose.
1
151617
82