Hacker Newsnew | past | comments | ask | show | jobs | submit | sayrer's commentslogin

Yes, can't have .unwrap() in production code (it's ok in tests)


Like goto, unwrap is just a tool that has its use cases. No need to make a boogeyman out of it.


To be fair, if you’re not “this tall” you really shouldn’t consider using goto in a c program. Most people aren’t that tall.


Nonsense. Linux kernel for one example, uses goto everywhere for error handling.


How many codebases besides the Linux kernel had you seen an intentional amount of use of goto?


The answer is one search away on GitHub.

I will give you one example though: various .NET repositories (runtime, aspnetcore, orleans).


Yes it's meant to be used in test code. If you're sure it can't fail do then use .expect() that way it shows you made a choice and it wasn't just a dev oversight.


panicans should be using .expect() in production


unwrap itself isn't the problem...


Haha: Can't find a good Windows laptop.

It's true, most of them are bad. Galaxy Book5 Pro or Microsoft Surface are OK.


Ever since Apple Silicon macs came out, it's been a real struggle. Almost 6 years later and there is still nothing on the market that:

* Has the same level of performance

* With the same or better battery life

* With the same quality of screen

* With the same quality of speakers and touchpad

* Runs as quiet or as cool

as the Apple Silicon macbooks. If you add in "needs to be able to run Linux" your choices go down from maybe 1 or 2 to 0.

They all have some sort of compromise. Either the speakers, screen, keyboard, touchpad, build quality, battery life, or thermals.

I have a Surface Laptop 7 with the Snapdragon X Elite, and it's pretty close. Checks the boxes for Screen, build quality, and touchpad. Loses out on speakers and battery life, and the fans need to run a lot more than my M4 Pro MBP does. It also loses on performance, and it doesn't run Linux. Windows on Arm also still has a lot of little quirks and bugs that start to become daily annoyances.

It's incredibly frustrating. I want, essentially, my 14" M4 MacBook Pro, but in a Linux laptop, and there's no OEM out there that's fulfilling that need without compromises.

Apple keeps pulling ahead in silicon and every other laptop OEM is just being left in the dust, shrugging their shoulders, and putting out the same old 1200p 16:9 plastic garbage they have always been putting out.


Yeah, "coq" is a grade school joke in French class. It just means "rooster" or something in French, but it sounds ridiculous in English. This one has the same problem.

A company with that in the name made the French national team jersey for a while.

https://en.wikipedia.org/wiki/Le_Coq_Sportif

It's Nike now, but it still has a rooster on it.


Coq is also named after the creator Coquand. It’s a shame that his work is being minimized because the English-speaking majority is sensitive and can’t hear a homonym for the slang for a male body part.

I wish we sometimes lived in a world where people wouldn’t be afraid at work to discuss why they like or dislike Coq or whether it meets their needs or if it’s too much for them. A man can dream though, a man can dream.


To be entirely fair cock (which surprisingly isn't actually derived from french but from english's germanic roots) also means rooster in english as well.


It is striking that it sounds like Brian Eno - An Ending (Ascent)


They used to! Anyway, Iceland is really easy to travel to. Everyone speaks perfect English, and the coffee is good. I know a little bit of Icelandic because they think I am Icelandic for some reason (I can read the signs at least, so maybe I don't look lost). There's a street with hot dog stands and stuff right in the middle of the capitol, which they seem to like. There are good hamburger places too, but they are expensive.

Greenland is another level.


No kidding. It is /so/ fast. It has remote development like VS Code, and most of the features I use, so it's my main thing now. Claude Code was the only thing that made me wince, since I wondered if I was living in the dark ages. VS Code of course has many more extensions, but I don't use that many.


A lot of them use G or F because that is the biggest bass note you can get in a club system.


Yep. You can see it on the map in the Museo Nacional de Antropología. El periférico ("the ring highway") and other major roads follow the old causeways. I have been there many times in my life, maybe 30 or 40.


They are using the wrong tactics. They should use the "Kleenex" argument and say it's generic. But what do I know.


They're doing both - the issue is that the fraud issue either gets dropped (which Ryan doesn't want to do) or it blocks the second "generic" issue until resolved.

> Oracle waited until the deadline to file this motion, delaying their response to the real issue: whether “JavaScript” is a generic term.

and

> Oracle won’t even discuss whether “JavaScript” should remain a trademark until they’ve finished dragging out this fraud claim.

> This legal maneuvering puts us in a difficult position:

> 1. Agree to drop the fraud claim, letting them get away with misrepresenting their trademark renewal.

> 2. Spend months fighting this procedural issue before even getting to the real debate.


But they are… genericness is a key part of their argument.

>Our petition challenges Oracle’s trademark on three grounds:

>Genericness – JavaScript is a widely used programming language, not an Oracle product.

>Abandonment – Oracle does not control, maintain, or enforce the trademark.

>Fraud on the USPTO – Oracle submitted misleading evidence in its renewal filing.


oh, it is "declaration", yes, but not South America. this guy is even on Amazon:

https://www.amazon.com/James-Lambert-1758-1847-Elaboration-R...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: