skysight-inc/HackerNews huggingface dataset:
I don't mean to throw shade on the whole book, but I don't think the section on errors takes things in the right direction.

A distinction should be made between errors and exceptions. In JavaScript and many languages, we conflate the two and use exception handling as logic flow control. In my experience, this can end up being a headache and encourage unnecessarily weird structuring of code.

Look at this example from the page on errors:

---

function getAccount() {

let accountName = prompt("Enter an account name");

if (!Object.hasOwn(accounts, accountName)) {

throw new Error(`No such account: ${accountName}`);

}

return accountName;

}

---

The possibility that a user will enter a account name that doesn't exist is not an exception, but we are treating it like one in this case. In order to handle this exception when getAccount is called, we have to wrap it or some higher level scope in a try-block and then regex-match the error message if we want to handle it differently from other errors.

You might be saying "it's just an example", but there's plenty of production code in the wild that is written this way. Maybe this could be improved by subclassing Error, but now you're having to manage a bunch of clutter and using object-oriented features as a way to reliably determine what kind of exception you're dealing with.

I find this pattern to be preferable:

---

const ACCOUNT_NOT_FOUND_ERROR_CODE = 1;

function getAccount() {

let accountName = prompt("Enter an account name");

if (!Object.hasOwn(accounts, accountName)) {

return {

accountName: null,

error: {

code: ACCOUNT_NOT_FOUND_ERROR_CODE,

message: `No such account: ${accountName}`,

}

};

}

return { accountName, error: null };

}

---

Then we can call the function like this:

---

const { accountName, error } = getAccount();

if (error) {

if (error.code === ACCOUNT_NOT_FOUND_ERROR_CODE) {

errorModalService.show(error.message);

}

} else {

// do something with the account name

}

---

No doubt, you may still want to catch exceptions at a higher level scope, but at the nice thing here is that exceptions (almost) always represent actual unexpected conditions that aren't being handled properly while return values with error codes represent expected conditions and can be handled like any other logic in your code. It also reduces any ambiguity of how an error should be handled but without subclassing. An error can even contain more information than just a message if you want it to.

Also, if you really want to ignore an error for some reason, then you can just pretend that the error doesn't exist. No need to use a try-catch where the catch-block is a no-op.

I wish we'd encourage this sort of pattern, but maybe that's one of many pipe dreams of mine.
Sweden has a pretty solid defense industry. Gripens and NLAWs for example are Swedish production.
I think it's fair to say that those who were reservists were "not really civilians".
And here I was thinking that "arrogant" was expecting a neighboring country, whose nation, identity and language you claim "aren't real", whose people you call "little Russians", would fall at your feet within days.

And flagrantly violating every agreement that has ever been made w/r/t Ukraine. And killing political opposition with impunity. And giving medals to every soldier in the units stationed in Bucha a few days after of the massacres were uncovered. And "annexing" regions of Ukraine where your soldiers haven't even reached, and putting them on official maps of Russia.

And using chemical and radiological weapons to conduct assassinations on UK soil. And blowing up Czech ammo depots.

And telling the world that if there were any Russian soldiers amongst the "little green men" in Crimea, they were merely on vacation.

And this trash: https://www.bbc.com/news/technology-60562240.
this is how I guessed we were being acquired - a request to compile a list of the licenses of the dependencies of our mobile app, out of the blue and without further explanation
Dynamo locks you in as much as Oracle. This is not a problem for Amazon, but if you're a normal customer, you should should think carefully.
I've seen these videos on YouTube. If it's real why is nothing getting said. I'm a little confsed on whether to believe it. Would appreciate some reliable and factual source/report on this.
Anecdata... I was having good talks with an early startup founded by a couple and a third person.

They all were smart and nice and capable and experienced, and I was leaning towards joining. Though I was a little wary that they were all friends and I'd probably be a non-founder, and aware that usually a couple-like imbalance of power/relationship among the co-founders can be tricky. (I've seen this in detail elsewhere.)

(Relevant background: I'm probably best right now as a technical cofounder who'd solo build the MVP software and infra, and then switch to building&leading engineering as the company grows. But I was also open to being a founding engineer, with the right team and arrangement.)

After the good meetings with the team, for further diligence, I had an extended one-on-one with the third person, on what they'd already built, architecture, and their roadmap for the next year or so, and also to get more familiar with each other.

After talking, I indicated that it looked like the third fo-co-founder had everything covered, and didn't actually need me. Then this third co-founder was speaking more candidly, and indicated that they wanted to herd junior developers to do what remained. My impression was that the co-founders weren't in-sync on hiring someone like me, so I decided to leave things at letting the co-founders regroup.

Speculation: Since I'd found them through a strong personal referral, it might've been a "hire of opportunity", rather than a kind of hiring they'd all decided beforehand that they needed right now. And if the referral came in through a contact of the couple co-founders, it's possible that was an edge case in which a dynamic of two co-founders who're especially close -- no matter how conscientious -- might've inadvertently resulted in the third co-founder having been less in the loop in that instance, and railroaded by circumstances.

I think that particular exceptionally good team will figure out whatever comes their way. But startups are all about learning, and there will be learning opportunities even around things you know and had handled.
>book because of some weird analogies involving crows and their nests that didn't seem to make any sort of sense to me.

I am glad I am not the only one. I believe he over-abstracted it to it's own detriment.

I went to purchase a paperback earlier this week. Now I will wait for this one to hit print.
Show HN: My first software project – a website to set goals and track progress
Two years ago, I started building this site that allows people to document their learning and progress in real time.

The idea is: as you learn new things, you document your progress piece by piece, creating a collection of failures, breakthroughs, and knowledge. Along the way, your friends can cheer you on, and the community can give you tips and feedback. Over time, we'll create a public collection on how different problems were solved.

With each progress, the site prompts you to reflect on questions like, "If you could go back in time, what do you wish you had known?"

This was my first web dev project, and everything was self-taught. It's been both a great passion and a significant learning experience!

All feedback is welcome, big or small. I hope you enjoy it and find it useful.

Stack: Angular, Python/Postgres, AWS, PWA service workers for notifications.
Don't forget the contribution and sacrifice of Ukraine
A lot of evidence, if you choose to believe videos coming out of IDF.

But to take a step back, why would Hamas operating from hospitals, schools and mosques surprise you in any way ? Would you then think anything different of them ? This is asymmetrical warfare. Of course they would use anything they can to create an advantage. Let's not kid ourselves. It's the same as using human shields. That's just how this type of war works.

You work with what you have to survive and gain an advantage
Agreed, it's so worth the watch. Thank you Nolan, if you happen to see this!
It has been going better than the last 30 years. Military cooperation in Europe broke down with the last Reforger of '93. It is great that Europe cooperates more, the view of the US public on NATO can be seen in any US TV series or Hollywood film - it does not exist.
Fetal cell organoids grown from amniotic fluid
Not sure this is shockingly difficult, especially when for a lot of Windows apps you can already deblur the fonts by clicking a high dpi compatibility setting of a given exe file
The Role of Design [video]
I came up with this fairly early around gpt 3.5 release, I started working at a narratie based game, but basically gpt will let people do whatever, see this zero shot adventure example: https://chat.openai.com/share/8b59bbb9-f6a3-42a9-a14e-766195...

to control for that I had this general idea to have a grounded hidden truth to anchor the llm, things like having the scenario written and ground all player outcomes to the hidden secnario. that worked well in terms of pushback, but gpt are far too optimistic - i.e. it was impossible to lose a game, or to even die or have permanent wounds. gpt also allowed any kind of problem solving if narrated well enough - common sample, you can just keep drinking healing potion regardless of whatever situation you are in and just reset the game.

next step was to keep track of item consumption outside of the gpt, so I built a database and a few shot instructions system. gpt still doesn't push back on a player trying to cheat, but there's nothing much I can do there. also, I needed to lead gpt into negative outcomes, so I outsurced skill rolls. that eventually led to a massive engine to run the game, with llm just describing outcomes, where the pipeline is natural input > llm convert to structured json describing the action > engine ask for an action for every npc in the zone > llm map structure to game rules > engine executes the rules and update game world state > llm pick output and describe the result to the player - and the world is in a hierarchical structure, so only few npc get executed but the world state is tracked as the player explore and return to past locations

now, this is not it. this is a smaller engine that just take the skill roll and a simpler version of the item tracking, and instead of being the game controller, is referenced from a gpt for most of the game. as I said this approach is a fair bit weaker, but can provide a good enough result, if you are compliant with the narrative (i.e. willing and honest participant to the game) and will absolutely break apart if you challenge it too much

this is the originating gpt to which I added the nasa context: https://chat.openai.com/g/g-bLhy3K71r-gpt-and-paper and this is the engine, in all it's semplicity: https://pastebin.com/GQuJtEqf
Would be nice to have extension manager that operates like tampermonkey, be able to customize code and manage revisions.
Mortal Pongbat for classic Mac OS was also great!

https://www.macintoshrepository.org/5394-mortal-pongbat
I don't want them to "learn JS." Most likely the person in question is trying to write web applications, and I want them to learn what is most useful for that. After writing web applications for years without TypeScript and then for years with it, I cannot imagine going back. I can make complex refactors with very little worry. Thanks to type inference, most of the TypeScript code I write is indistinguishable from JavaScript, so the idea that learning TS takes away from learning JS is ridiculous. When I suggested that the extra syntax might be distracting at first, I meant for like... a week.
What would be fascinating is imagining how the permanent daytime would influence their perception of time. The day is after all the fundamental unit of all human timekeeping, along with the seasons, and a tidally locked planet would have none of those. Maybe, if they are lucky, a moon big enough to be visible during daytime?
Arithmetic comes to mind. We can multiply large numbers but we’re very bad at it.
To be reductionist - history is written by the victors.

https://www.smbc-comics.com/comic/status-2
This sounds like a carbon copy of the project tree layout specified in C++'s pitchfork conventions.

https://github.com/vector-of-bool/pitchfork
"Binding" is used thousands of times in the language standard, including for variables: https://tc39.es/ecma262/#sec-variable-statement -- that's my point, that this book is precise while being approachable to beginners.

And I dispute the claim that "boxes" are the right abstraction for anything in JS. (Boxes may work for primitive values, but nothing further.) Directly seeing names as bindings ("tentacles") not only skips the incorrect "boxes" step, but also causes no confusion or problems whatsoever at any point. (If you have an example, I'd be curious to see it.) (There are some differences in the language between primitive values and Object, but none of them are particularly helped treating variables as boxes AFAICT.)
I've been a PixelSnap user for a couple of years. I mainly use it for frontend dev: measuring the width or height of an element in the browser without needing to open DevTools or measuring an Electron BrowserWindow's dimensions to determine how large I should make it by default to ensure everything fits on load. I probably use it around once a quarter though, so I'm glad it's not subscription-based.
Flipper Zero WiFi attack can unlock and steal Tesla cars
“AI, file a DPA complaint please»
The poles receive sunlight at a near 90 degree angle, ignoring the axial tilt.

Direct sunlight vs. spread over an area.
Serious question, what does this change? NATO gets a bit more revenue from Swedish taxpayers? So what?
no, AI like chatgpt delivers fuck tons of content by having been trained on it but that content, that cost money to produce, doesn't get the money back
When, not if, and that's a good thing. I don't share your alarmist view. I think the other members of NATO will just start doing their fair share, as they should.
Projects Killed by Google and Why We Miss Them
Hard and soft skills for developers coding in the age of AI
With whom?

Anyway, usable local AI will probably lead to fully automated luxury communism, so I am not very worried.
If the people of Ukraine want to get in NATO for protection, how is this the West being arrogant?
> A whole lot. Think of all those ChatGPT queries that are robbing Google of search ad revenue, as people realize they can get the information they want more efficiently than looking at search results.

Is this overblown? The questions ChatGPT answers don't seem like they are very valuable from an advertising perspective.
This new, "it's because of liberals, groupthink, wokes" tone is really desacralizing the Economist image.
Or the blackmailing by Hungary and Turkey.
Probably a while, ownership is likely unclear, given the number of corporate transactions Midway has been through.
that's a good idea. still a bit heavy but preferred to installing the toolchain on the host OS
> You’re going to see ads whether you like it or not.

That is not true. Avoiding all ads on the web today is not only easy, but free.

It seems quite unlikely the people who can't be bothered to install uBlock Origin or use Brave, will suddenly decide to browse the web by means of ChatGPT, or ask it to rewrite web pages to get rid of marketing fluff before they access them.
A bigger alliance is harder to defeat in war.

Also, a bigger alliance requires each member to contribute fewer troops to manage a common defense.

Sweden is a fairly wealthy country that can contribute the required amount to NATO.

Sweden's ports are beneficial in a potential Arctic conflict.

Finally, Sweden does not bring any new potential conflicts/enemies with it.
I wouldn’t count those as universities.
Ad-blockers for Safari are readily available on iOS and are simply installed from the App Store.
Such links are very useful in an 'it's OK to have security match the use case' type of way. You don't need maximum security for everything. You just want a barrier to widespread sharing in some cases.

As an example i hit 'create link share' on a photo in my photo gallery and send someone the link to that photo. I don't want them to have to enter a password. I want the link to show the photo. It's ok for the link to do this. One of the examples they have here is exactly that and it's fine for that use case. In terms of privacy fears the end user could re-share a screenshot at that point anyway even if there was a login. The security matches the use case. The user now has a link to a photo, they could reshare but i trust they won't intentionally do this.

The big issue here isn't the links imho. It's the security analysis tools scanning all links a user received via email and making them available to other users in that community. That's more re-sharing than i intended when i sent someone a photo.
Google Photos and iCloud Photos Alternative Ente Open Sources Its Server Code
> I remember seeing video on YT where the guy bought a really old ARRI Alexa that was used in Hollywood back in 05 or 06. When they showed some of the footage they took with it, it looked exactly like an mid-2000's big screen movie, I honestly didn't realize those movies even had a "look" until I saw his video.

Is this the video?

https://www.youtube.com/watch?v=hahBgDUESjE
Sure, that's fair.

I would say 'that is an unethical but 'reasonable' strategy for a rich CEO or whatever as an individual' (where reasonable here is 'probably would work' not 'morally sound').

It is an unreasonable one for the company as the company.
Some more here on the official Swedish gov post https://news.ycombinator.com/item?id=39631139
Chernobyl was owned by the state. I don't really see how nuclear plants owned by corporations is the knottiest problem.
It’s not a hobbyists’s impulse buy, but it puts a week’s rental at a couple grand - that’s plausibly a group of upper middle class teenagers. It’s also something the equipment lending library in a media studies department can make available to student projects.

Big step up from shooting on iPhones or hacked DSLR bodies, for a relatively small (in the universe of film production) increment in budget.
That is no longer offered here.
US govt announces arrest of ex Google engineer for alleged AI trade secret theft
I see it as comparing comic book (visual) vs text book (text code). You can express some visual better with comic books, but in the end, I find text books easier to define richer and complex matter.
I've seen Blue Jays do something similar, it started off as a single male jay dive bombing the hawk with 2-3 more Jays showing up in a few minutes. It occurred to me that the birds must have a "flee" call that's distinct from a "help" call because while they seemed to want to scare away the hawk I've seen them simply flee when a cat's around.
Wouldn't mentioning products at all be a dead giveaway?
The super strategic island Gotland, for one.
Sweden has a pretty advanced and self-sufficient defense industry for its size.

Examples: https://en.m.wikipedia.org/wiki/Saab_JAS_39_Gripen https://en.m.wikipedia.org/wiki/Stridsvagn_103 https://en.m.wikipedia.org/wiki/Ground_Launched_Small_Diamet...

PS: Not sure why parent is getting down voted for asking a neutral question. Curiosity!
I know Ukraine will not and cannot do this, but writing off it's East and Crimea would enable NATO membership and EU ascension.
Original title was

> US gov’t announces arrest of former Google engineer for alleged AI trade secret theft

which was a few characters too long.
This happens to all threads about China here.
I use a reader for everything online and I have ad blockers. I haven’t seen an ad since so long ago I don’t even remember when (except on insta because can’t block them but I report each and every one of them out of spite and don’t use insta much anyway).
DDJ published Stallman's GNU manifesto, demanding people take up the mantle of free software and I daresay that movement is one of the most impactful things to ever happen to computer science/information technology, regardless of how much credit any one person wants to give RMS. Wish I still had my original copy strictly for the sake of nostalgia.
Every time someone finds "lost media", I always wonder how much media is lost to time because the wrong people went to the garage sale and did not know how rare a find was and it gets thrown away at the end of the sale.
For the most part, I believe it is all about the management and troubleshooting ability from the ISP side. You can buy ONT devices, but I think that the OLT device of the ISP must support the one you bought, which really defeats the purpose of buying it. There are even SFP modules that can work as an ONT interface.

Really your best bet is to ask your ISP if they can bridge a port on the ONT so you can use your own router after that without double NAT. In this scenario the ONT will be functioning mainly as a media converter.
Doesn’t surprise me one bit. Buy Brother printers.

But it’s a worrisome trend that is now spreading to so many areas. We need to opt out and start using alternatives. Even if it means using an inferior product.
Ah. Perhaps it is conditional on past usage. Mine is >1 per day.
That’s a lot of buildup and words to say nearly nothing except pitch a very vague and ill-defined “AI OS” concept.
This suggests that an analyst at HP has omitted the "brand damage" column from their spreadsheet.
Are you trying to say that Ukraine would've preferred to be completely taken over by Russia?
What if you're asking for a product recommendation, but you want it unmarred by paid influence?
I'd imagine that fat solubility plays a significant role, but the study describes the plastic particles as large and jagged when viewed under and SEM.
I understand what you say is true in theory, but does this mean the US will deploy fewer troops in NATO theaters, in practice?
Can someone smarter explain to me what is different between?

1) domain.com/login user: John password: 5 char random password

2) domain.com/12 char random url

If we assume both either have the same bruteforce/rate limiting protection (or none at all). Why is 1 more safe than 2?
Hug of death is strong with this one currently, try: https://archive.ph/RBkiB
Yeah, so maybe after a decade and trillion dollars or three of selling recommendations with impunity they'll get slapped with a fine that's 1/1000th of that.
I can find some peace by disagreeing with the author and consider stupidity as a quality for actions instead of people.
The lesson is that is you befriend a bully, you might save billions.
flow-bin has substantially fewer downloads than coffeescript and both are declining. That is a dead project.

https://npmtrends.com/coffeescript-vs-flow-bin
A fair consideration indeed but a very relativistic use of terminology. $17,500 is not $200,000 that's for sure, but it's also not $5000 or $2500 or $100 (not that I expect $100 cine cameras).

My only point is that their hearts were in the right place, but they may have ultimately done their best work as instigators.

As well, despite my appreciation for their company, I never liked the images from their cameras.
That would be great, but I think it's premature to predict it happening. At every stage of the arms race, when one side comes up with a better weapon, they say "this is it, we've won!" and then the other side just comes up with a better counterattack. A $1T industry wouldn't just roll over and die.

That said, if some company makes a paid browser with an AI filter that zaps all ads, trackers, modal "sign up for our newsletter" prompts, chatbots, and all the rest from the web, I'd pay... hmm... $50 a month to use it. Just declaring that now.
https://archive.is/fa0Wc
Something's missing in your comment, like which country is attacking Ukraine for example. That might sounds like a small detail but it has its importance on how the war can end.
I would say not dupe, given the different angle.