Better HN
topnewbestaskshowjobs
Log inSign up

brokencode

3,309 karma · joined Mar 26, 2015 (11y ago) · 825 submissions

Submissions

comment 1y ago · link · parent

People learn best in different ways. Some learn best by reading, some by tinkering, some by watching and listening. I heard this over and over in school and college.

I don’t think it has anything to do with reading speed. When taking in complex technical information, you spend more time thinking and trying to understand than actually reading.

If you’re finding that you can quickly race through content, it probably just means you find the content easy to understand because you’re already familiar with many concepts.

comment 1y ago · link · parent

Yeah, this is not ideal. I’m hoping that the breaking changes don’t affect the code at my work, since we also had to spend multiple years on a major .NET Core transition. I want the faster compiles right away, not in a few years.

comment 1y ago · link · parent

Also, most laptops will run at significantly worse performance when not plugged in. Macs are much more consistent both thermally and when not plugged in.

comment 1y ago · link · parent

I’m not dismissing it. I’m saying that it’s different than traditional investments since most of the potential uses are still speculative, whereas it’s pretty obvious what value you can get from ownership of a company or a barrel of oil.

comment 1y ago · link · parent

Nope, not at all. Stocks represent partial ownership of a company. If you buy all the stock for a company, you own the company. Companies are valuable because they (ideally) make a profit for the owners.

Bonds are valuable because the company or government that issues them signs a contract to pay out a certain amount on them. They won’t always do that, but thats why we have rating agencies to help investors understand the risk.

The closest equivalent to crypto in traditional assets is probably precious metals and gemstones, though even those typically have some industrial uses to drive demand.

Diamonds are a great example of the downside of looking at the market value of something alone. The natural diamond market has been massively disrupted by the rise of artificial diamonds and diamond alternatives.

comment 1y ago · link · parent

At least gold has real world uses, such as in electronics and spacecraft. Keeping large quantities of it safe for the future seems prudent, even outside its use as a value store.

comment 1y ago · link · parent

OpenAI releases one dud and suddenly people come out of the woodwork to trash them.

I agree that OpenAI's endless hyping about AGI seems pretty unrealistic, but let's take a breather here. There are no major research projects where you don't run into setbacks and failures before you reach your goals.

And even if they never really progress beyond where they are today with their current models, just bringing down the cost could open up a lot of doors for useful applications.

comment 1y ago · link · parent

Clearly it is able to solve various logical problems, and therefore an at least imitate logical thought. Is that not reasoning?

And there are plenty of logical problems that many humans can’t solve. Does that mean they’re not capable of reasoning?

At what point would you say something has reasoning? I’d argue that it’s more about how good something is at reasoning, rather than saying it is or isn’t capable of reasoning in absolute terms.

comment 1y ago · link · parent

If your concern is primarily about researchers in academia using this and believing what it says without skepticism, then higher education has failed them.

And if you think that all published “research” was guaranteed to be accurate before AI tools became available, then I think you should start looking more critically at sources yourself.

comment 1y ago · link · parent

> “They will be harmed as a result.”

Compared to what exactly? The ad-fueled, SEO-optimized nightmare that is modern web search? Or perhaps the rampant propaganda and blatant falsehoods on social media?

Whoever is blindly trusting what ChatGPT is spitting out is also falling for whatever garbage they’re finding online. ChatGPT is not very smart, but at least it isn’t intentionally deceptive.

I think it’s an incredible improvement for the low information user over any current alternatives.

comment 1y ago · link · parent

You have to use your best judgement. If you are confident in your approach, then I think it makes sense.

You are then also owning this decision, and would have to face more consequences for it going awry. So I don't think it "places a ton of pressure on your coworkers" as you say. It relieves them of pressure since they don't have to decide and won't be held accountable.

But if you think an action will be controversial or are unsure, then you need to make sure you are getting feedback and buy in from other stakeholders before proceeding.

This is not only to make sure you are making the right decision, but also spreading accountability for this potentially bad decision to other members of the team. This accountability will put more pressure on your coworkers, but it is needed to help make the right decision.

comment 1y ago · link · parent

> “I appreciate the time and effort the author put into breaking this down.”

Let’s be honest. The author was probably playing cookie clicker while this article was being written.

comment 1y ago · link · parent

But the whole point of these “deep research” models is to.. you know.. do research.

LLMs by themselves have not been good at this, but the whole point is to find a way to make them good.

comment 1y ago · link · parent

If you’re trying to build a team from scratch, you probably want to hire devs with relevant experience.

But I think it’s a sign of an unhealthy or immature team if it is unable to onboard and train new developers.

You are right that a new developer could easily make a lot of mistakes, but it is the responsibility of the senior developers on the team to give feedback and review the code of less experienced members.

comment 1y ago · link · parent

I think it’s better to have somebody who has a deep understanding of all layers of the application rather than only one part.

If a developer is already an expert in the back end using Go, then great. Maybe they’ll bring a different perspective when they work on the front end. And they will probably enjoy a new challenge.

Web development is not so hard that a good developer can’t learn the basics in a couple months, especially with some mentoring.

comment 1y ago · link · parent

I think companies are way too worried about hiring developers based on their specific technology they’ve previously worked with.

Unless maybe you are doing something radically different, like web development to graphics drivers or something.

Development skills are typically very transferable between languages, libraries, etc. And I think it’s healthy for developers to branch out and try new tech stacks from time to time.

I’d be more worried about a developer who doesn’t have the versatility to pick up something new. Because they probably also haven’t invested the time and effort to really understand what they’ve worked on in the past.

comment 1y ago · link · parent

Theoretically customers can give their money to some other company, but we have seen massive consolidation across most industries over the course of decades. Many important markets are dominated by only a few large companies.

The free market works when there is actual competition. If we want a healthy free market, then we need vigorous antitrust action to block mergers and break up companies that get too big.

comment 1y ago · link · parent

No, it’s not the only route they have at all. There is a long history of companies screwing over their own customers to make money. I can’t honestly believe that you aren’t aware of this.

Just look at how Wells Fargo a while back was opening up accounts and charging fees to customers who never authorized it.

Or Purdue Pharma that gave kickbacks to doctors to prescribe opioids and misled the public about how addictive they were.

Or payday loan companies that suck people into vicious cycles of debt. Or the numerous companies that profit from gambling addiction.

Or the big banks that gave out dubious mortgages and lied about risks to investors, which precipitated in a global housing meltdown and recession in 2007.

Or how cigarette companies lied about the dangers of smoking, leading to countless deaths.

Companies will lie, cheat, and scam their way to profits if they have to. Not all of them, and not all of the time, but the endless quest for more money is always corrupting.

comment 1y ago · link · parent

> “That's why any and every corporation exists, to benefit it's customers.”

That is an incredibly optimistic belief you have about the purpose of corporations. In reality, corporations only have the responsibility to benefit their shareholders.

Making sure your customers are happy and keep giving you business is certainly one route. And I think most companies at least start out this way.

Though it’s funny you use Apple as an example, since they’ve been widely criticized in recent years due to the parasitic App Store practices enabled by their stranglehold over the smartphone industry.

Government does get corrupted by money, but that money ultimately comes from rich corporations. Eliminating government involvement could just make corporations abuse their power in other ways.

comment 1y ago · link · parent

In what ways does government involvement cause problems?

And what actions do you think companies might take to benefit customers if not for government involvement?

comment 1y ago · link · parent

Sure, it's a good idea to have something like that just in case. But crashing is really not desirable and could cause all kinds of problems, even if you do have recovery mechanisms in place.

A crash in a web server could result in data loss, timeouts and performance issues on clients due to the response never coming back, crashes on poorly written clients, cascading failures in poorly written services, etc.

And for a client application, imagine if your web browser would just randomly crash sometimes. Do you think it would make it much better if the browser would detect the crash and relaunch itself? And what if it relaunches itself and then crashes again for the same reason?

comment 1y ago · link · parent

Yup, that would be the fix. It is a logical error to even try to be dividing by zero, so your code should handle it. Regardless of whether there is a panic, this is what you'd want to do.

But the problem is that people make mistakes or forget every once in a while, and as you get more people working on large programs, these mistakes happen more often.

So you have to assume that it'll most likely happen in your production software sooner or later. Crashing the whole program is a fairly catastrophic outcome in my opinion, and should be reserved for only truly unrecoverable problems like hardware failures.

comment 1y ago · link · parent

The situation in Rust seems to be a bit complicated. But I did find that panicking within a thread you spawn kills just that thread and not the whole program. And it seems that Tokio has the same behavior.

https://github.com/tokio-rs/tokio/issues/2002#issuecomment-6...

And web frameworks like Tower provide standard ways of handling panics and turning them into error responses.

https://docs.rs/tower-http/latest/tower_http/catch_panic/ind...

So I don’t think panics are necessarily meant to be program-killing in Rust, even if Result types are heavily recommended instead.

comment 1y ago · link · parent

All error handling is messy in one way or another. I am personally a fan of the exceptions in C#. It’s good enough for me and doesn’t make me add a bunch of error types to all my methods.

I also like the Erlang philosophy of letting the lightweight process crash as soon as any problem occurs and having a supervisor decide what to do.

comment 1y ago · link · parent

Programs have all kinds of bugs for all kinds of reasons. That’s why you need unit testing, functional testing, performance testing, usability testing, accessibility testing, etc.

Why single out just a few types of bugs to crash the whole program? Let me catch it and decide what to do.

If it’s in a single request to my web server, I’d like that single request return an error code. I would not like all other concurrent requests for all other users to fail as well.

comment 1y ago · link · parent

Thats fair, and it’s your language to design how you think is best. Just throwing out my two cents here based on my personal experiences.

I have 2000+ developers at my work, many of them making changes on a single huge web application. Compile/publish of the testing servers takes several hours and happens regularly throughout the day. There are thousands of testers all testing many different workflows all the time.

If one developer makes a mistake in a dark corner of the code one day, it seems bad to have the whole server crashing and disrupting all the other testing that’s going on for multiple hours while we wait for a fix and another build.

Quality and fix prioritization is in the hands of project teams for usability problems, performance problems, functional problems, etc. Uncaught exceptions should be logged somewhere, and it’s ultimately up to the team to decide whether they care enough to fix them.

comment 1y ago · link · parent

How is it knowing to panic if it isn’t checking? It seems like I am paying the cost of doing the checking either way, at least in terms of performance. So it should give me the ability to handle the error somehow.

As a C# and Typescript developer primarily, this concept of killing the whole program due to a bug anywhere in any part of the code is very foreign to me.

I’d expect that to only happen if you ran out of memory, had a hardware failure, or other such catastrophic error. To me, dividing by zero is a problem, but not worse than pretty much any other type of logical error that doesn’t panic.

comment 1y ago · link · parent

Inko is an interesting language, though the handling for panics sounds disturbing. Based on the documentation, panics abort the whole program and are not recoverable.

Things like dividing by zero or accessing an index outside of the bounds of an array will panic.

While these aren’t incredibly common, I would never want my whole production web server to go down because some random, infrequently used endpoint had a bug in some edge case.

The language seems heavily inspired by Erlang, which is very resilient to programmer errors in comparison.

In Erlang, the philosophy is to let a lightweight process crash and restart it when there is a problem. This doesn’t need to have any effect on other lightweight processes that are running.

1
121314
28