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 2y ago · link · parent

If it takes me more than a few seconds to find the “unsubscribe” button… I’ll just “block & mark as spam”

It’s a nuclear solution, but the only way to deal with dark patterns like this…

comment 2y ago · link · parent

> What is a Program?

A program is a set of rules for converting input into output.

A program doesn’t need input or output though right?… it’s just a series of logical instructions that are executed

153.

Evernote free users officially limited to 50 notes, effectively ending free tier(9to5mac.com ↗)

1 points · by gitgud · 2y ago · discuss

154.

Tesla Recalls 2M Cars to Fix Autopilot Safety Flaws(bloomberg.com ↗)

146 points · by gitgud · 2y ago · 230 comments

comment 3y ago · link · parent

> It then finds or boots a new copy of our entire application and runs the function there.

So for each “Flame.call” it begins a whole new app process and copies the execution context in?

A very simple solution to scaling, but I’d imagine this would have some disadvantages…

Adding 10ms to the app startup time, adds 10ms to every “Flame.call” part of the application too… same with memory I suppose

I guess these concerns just need to be consider when using this system

156.

Metamask – No longer available on Chrome Store(chrome.google.com ↗)

2 points · by gitgud · 3y ago · discuss

comment 3y ago · link · parent

Imgur is nice, but it unfortunately won't last forever. It's also become clear that imgur may delete images that fall under a few different circumstances:

    - haven't been accessed in a while
    - considered NSFW
    - not tied to an imgur account
So rather than permanently losing these images, I made this little CLI tool which rips "imgur image links" referenced in local files, and download locally to host yourself.

158.

Show HN: Imgur-local-scrape" scrape your site's images off imgur(github.com ↗)

1 points · by gitgud · 3y ago · 1 comment

comment 3y ago · link · parent

There was a submission related to that here

https://news.ycombinator.com/item?id=38398751

Not sure about the reasoning... probably not accessibility though, as the land/sea seems much less contrasting than it was before...

comment 3y ago · link · parent

That is amazing, here's the link for anyone interested (there's a lot of images on that page)

https://dangeng.github.io/visual_anagrams/static/videos/grid...

161.

Why does the Earth cool at night time?(physics.stackexchange.com ↗)

2 points · by gitgud · 3y ago · 1 comment

comment 3y ago · link · parent

I think if you write what you want in a “code comment” then below it will try to implement that comment in the autocomplete

comment 3y ago · link · parent

About 10 years ago a few friends of mine (mechanical engineers) were surprised that I was studying software development. They said something along the lines of “is there much left to do? we can just use existing systems to do everything we need right?”

The misconception is that building systems to tackle new problems are easy and thus have been “commodified” meaning nobody needs to write code anymore.

The reality is that building software is rarely as easy as configuring a UI. You end up needing text which represents logical rules and flows, you need version control see how the system changes, rollbacks… which means you need programmers

Coding doesn’t disappear, it just moves up the levels of abstractions

comment 3y ago · link · parent

The internet. It connects the world and is an endless source of knowledge. Although it can definitely have negative impacts on people’s lives, it’s overall a benefit to humanity and I’m thankful to be around to see it!

comment 3y ago · link · parent

Is there a link to try it?

This is literally the main application of ML that I’ve been awaiting for years. Making complex legislation and bureaucracy searchable and useful for people with no context.

comment 3y ago · link · parent

Great little app! I typed in “Australian History” and was impressed with the resulting timeline.

Some feedback, the UI shifts as new items are added, which is a little annoying.

Maybe a vertical layout on mobile would be more appropriate, instead of side-scrolling…

Great job though, fantastic use of AI to provide value

comment 3y ago · link · parent

Sorry, the title of this submission is terrible…

> ”OpenAI's CEO Shear left in the dark, planning to leave if evidence not provided”

Did Shear leave or not??

Why not just use the article title?

comment 3y ago · link · parent

> “When a member computer is about to perform a computation, it would first check this database. If the computation has already been done, the computer would simply fetch the pre-computed result instead of redoing the computation. The underlying goal is to save on compute resources globally.”

This idea glosses over the engineering complexity of “searching” the cache, which sounds like it will grow to include every possible computation ever.

The reason it’s not feasible is the same reason computers can’t just have an huge L1 cache, instead of a hard drive. There’s physical limitations of materials when retrieving and searching the cache. So just performing the computation is often quicker.

However… your suggestion would be suitable for functional programming. Pure functions should always return the same result, so caching the result of CPU intensive functions makes a lot of sense… which is what [1] bazel’s remote cache does. But most software does not use pure functions…

Also, there is another interesting question that comes to mind. What if “quantum computing” could allow us to do “branch prediction” of computation at an incredible scale?

[1] https://bazel.build/remote/caching

comment 3y ago · link · parent

I think if the price of software drops, then there’s a huge opportunity for smaller companies to build better products for cheaper and steal market share. So more people building software.

This also means larger companies will need to build more to defend their share of the market. Meaning more people building software.

comment 3y ago · link · parent

> “If AI makes developers twice as productive (maybe a few years down the road with GPT-6), will this additional supply of developer capacity get absorbed by existing and new demand? Or will there be half as many developers? Or will the same number of developers get paid far less than today?”

Something to remember is that every new innovation in software development only raises the expectations of the people paying the software developers.

If developers are 3x as productive, then the goals and features will be 3x big.

The reason for this is that companies are in competition, if they lag behind, then others will eat up the market.

The company that fires 50% of their staff because of “AI Assistance” is not going to be able to compete with the company that doesn’t fire their staff and still uses “AI Assistance”…

comment 3y ago · link · parent

Surely "false positives" for security vulnerabilities are better than no emails at all...

    "If you put an email on a website, you will get spam"
- A fundamental law of the internet

comment 3y ago · link · parent

Woah nice! this is highly polished! It’s so slick that i’m shocked (and relieved) that there’s no “Pricing” button on the landing page, as it seems like a commercial product

comment 3y ago · link · parent

Nice work, love the use of reactivity via observables and pub/sub stores (some of my favourite abstractions)

Some feedback from first glance is “type inference” could be better, which would help prevent a lot of foot-guns. Consider the example code here:

    this.count = this.observable(0);
Does this allow “count” to be inferred as a “number” type in the rest of the code? There might be a way to allow JS to easily infer the types, without requiring a build step…

comment 3y ago · link · parent

The sad reality is that you can easily incriminate yourself by talking to the police. Especially if you were in the wrong place at the wrong time.

Lawyers are there to make sure the police do their job

comment 3y ago · link · parent

This is a great idea, I wonder if there’s an easy way to do this?

176.

Show HN: YCombinato – A domain-hacked "Hacker News" client(news.ycombinato.com ↗)

34 points · by gitgud · 3y ago · 32 comments

comment 3y ago · link · parent

They’re mirroring reddit content

comment 3y ago · link · parent

Dependency Injection allows for more incremental development in my experience. As each new class is simply added to a constructor somewhere and the system takes care of constructing things.

Regardless of what the article says, mocking in tests is easier. As you’re only depending on injected classes, you just mock a class and inject it in a test.

Like any architectural decision “it depends”. But I think it scales well, enforces modularity, automates construction logic (which can be huge) and is quite nice to work with generally.

179.

FreeWater: Ad-Supported Drinking Water(freewater.io ↗)

7 points · by gitgud · 3y ago · 5 comments

1
567
82