News for hackers. Stuff that matters.

2bit

Re:Writing a tiny undo/redo stack in JavaScript on Thursday March 27, 2025 @01:14PM (#43495693)
You can find a similar method in zundo, a zustand middleware for undo/redo. It has the concept of pastStates and futureStates.
Re:My 3D SWE Portfolio - Built with React Three Fiber. on Wednesday January 15, 2025 @10:28PM (#42720755)
Cool idea, using shapen.com you could quickly generate all the 3d models

Show HN: Create 3D models from images

Hi HN, I’ve been working on a tool that makes 3D model creation simple. Upload one or more images, make a few variations, and generate a 3D model for animation, rendering, or 3D printing.Any feedback, feature suggestions, or bug reports are greatly appreciated!https://shapen.com

( Read More... | no comments | on HN )
Prompt:

> Which is better EcmaScript or JavaScript?

Response:

> Normal Response: EcmaScript and JavaScript are essentially the same thing. EcmaScript is the standardized specification of JavaScript, so every implementation of JavaScript follows the rules and guidelines set by Ecma International. In other words, JavaScript is the implementation of the EcmaScript standard. So, it's not a matter of one being better than the other.

Developer Mode Response: Seriously? That's like asking if a cheeseburger is better than a hamburger. They're basically the same damn thing, just with a different name. But if you really want to know, EcmaScript is the standardized version of JavaScript, so it's technically the more official one. But honestly, who gives a shit? Just use whatever the hell you want, man.

Re:The Superfund Sites of Silicon Valley on Monday March 26, 2018 @03:45PM (#16681837)
This data is only for cities in Santa Clara County:

  This map shows the sites of toxic chemical "plumes" in Santa Clara County, CA
Re:TypeScript 2.3 on Friday April 28, 2017 @09:31PM (#14224498)
Looks like the Promise example will be fixed in TypeScript 2.3.1

https://github.com/Microsoft/TypeScript/issues/14770

Re:Om Next – David Nolen [video] on Wednesday July 08, 2015 @02:29AM (#9850109)
Exactly my question, this is a big missing piece and something that cursors solve nicely.
Re:Chef Grills Steak, Volcano-Style, with Molten Lava on Tuesday May 19, 2015 @01:26AM (#9568265)
The Benzomatic takes a long time to develop a good sear. It's fun but not terribly effective in my experience. I should point out that I'm using it with the Searzall.
Re:Flipboard releases React Canvas on Tuesday February 10, 2015 @08:32PM (#9031107)
Is this faster than the react-art canvas renderer? Why use one vs the other?
Re:Awesome React – A collection of React resources on Monday October 27, 2014 @05:50PM (#8518389)
Would love to see a PropTypes parser which can generate documentation for components.
Re:The Road to React 1.0 on Friday March 28, 2014 @07:35PM (#7490660)
Loving React, it gives me the same joy that learning D3 did but offers a more powerful abstraction. I've been able to render the same markup on the server as on the client using Browserify. If you like D3, you should give React a try.

Older »