News for hackers. Stuff that matters.

moretti

Can someone build this?

Show HN: HackerHype - an aggregator for every Hacker* aggregator

  HackerHype
  ├── HackerTube → videos recommended on HN
  ├── HackerBooks → books mentioned on HN
  ├── Wikihack → Wikipedia articles mentioned on HN
  ├── HackerHack → posts posted on HN
  └── ...
Re:OpenCode 2.0 on Thursday October 15, 2026 @04:13AM (#50100763)
Does opencode support anything similar to claude code's auto mode (https://code.claude.com/docs/en/permission-modes#eliminate-p...)?

I'd like to switch to opencode, But "yolo mode" feels risky and manually approving every command the model runs kills the flow

Re:Vite 8.0 Is Out on Friday March 13, 2026 @05:21AM (#47362201)
Thanks to the Vite team for building a faster, modern bundling solution on a fully open source stack that isn't tied to a specific framework...cough cough, Turbopack
Re:MDN Redesign on Tuesday March 01, 2022 @02:08PM (#30518571)
It looked okay until I scrolled down to the browser compatibility table and had to tilt my head to read the vertical text
Re:macOS Monterey on Monday October 25, 2021 @10:04PM (#28995619)
Can anyone confirm if the final build number is the same as 12.0.1 RC2 (21A559)? You can run `$ sw_vers` from the CLI to check it.
I use Copilot mostly as replacement for intellisense and macros. It helps me automating repetitive tasks. I would never trust Copilot for an algorithm or a snippet, I mean I would treat the code just like anything taken from StackOverflow or Github.
Re:Yarn 3.0 on Friday July 30, 2021 @03:20PM (#28011337)
yarn 2 solved real problems with zero install and advanced PnP. Maybe the only problem was that it was released too early, wasn't mature enough when it came out. Now it's just better than v1 and npm, works particularly well on large mono repos where upgrading a package can often break other modules due to how node_modules hoisting works.
Re:Valve Steam Deck on Thursday July 15, 2021 @02:01PM (#27847862)
it has a microSD card slot: https://www.steamdeck.com/en/tech
They slow down the phone after an unexpected shutdown, when the battery is unable to deliver the necessary peak power.
Re:Removing jQuery from GitHub.com frontend on Thursday July 26, 2018 @12:06PM (#17618510)
By declaratively I mean that in React you typically declare how an element should be render given the current (props, [state]).

For example, in vanilla JS, you might have something like:

  const btn = document.createElement('button');
  btn.className = 'btn red';
  btn.onclick = function(event) {
   if (this.classList.contains('red')) {
     this.classList.remove('red');
     this.classList.add('blue');
   } else {
     this.classList.remove('blue');
     this.classList.add('red');
   }
  };

In React instead:

  class Button extends React.Component {
    state = { color: 'red' }
    handleChange = () => {
      const color = this.state.color === 'red' ? 'blue' : 'red';
      this.setState({ color });
    }
    render() {
      return (<div>
        <button 
           className=`btn ${this.state.color}`
           onClick={this.handleChange}>
        </button>
      </div>);
    }
  }
I find it simpler to understand, because render, given its state, describes exactly how the UI should be.
Re:Removing jQuery from GitHub.com frontend on Thursday July 26, 2018 @04:31AM (#17615939)
It’s interesting that you find this “simpler”. One of the great advantages of React is that is declarative, it’s easy to understand how a component will render given a set of (props, state). Your example is quite the opposite, the render method violates this principle and each event handler manipulates the DOM using a ref. I’d call this spaghetti-React.
Re:How to optimize React applications that use Redux on Thursday July 06, 2017 @09:12AM (#14710092)
Redux is not an implementation of Flux. These two blog posts explain the main differences: https://code-cartoons.com/a-cartoon-guide-to-flux-6157355ab2... https://code-cartoons.com/a-cartoon-intro-to-redux-3afb77550...
Re:How to implement a programming language in JavaScript on Wednesday June 29, 2016 @03:33AM (#12000058)
This is also a really good resource: https://github.com/thejameskyle/the-super-tiny-compiler
Re:We Need a New Username System on Saturday April 02, 2016 @09:23PM (#11414466)
I'm not a number, I'm a free man!
In npmcdn the author of the package has to manually include the UMD build of the library.
Re:Node.js 5.0 Released on Friday October 30, 2015 @12:20PM (#10478733)
You still have to simulate named arguments with an object:

    const foo = ({ a = 2, b = 2, c = 3 } = {}) => a * b * c;
    const dict = {b: 4, c: 6};

    foo(); // 12
    foo(dict); // 48
You're probably not familiar with Atwood's Law[0]:

> Any application that can be written in JavaScript, will eventually be written in JavaScript

[0]: http://blog.codinghorror.com/the-principle-of-least-power/

Re:Embed Node.js on any website on Thursday October 01, 2015 @01:48PM (#10313024)
Cool, that looks really interesting...
Re:Embed Node.js on any website on Thursday October 01, 2015 @01:41PM (#10312968)
Embed CSS on any website! ;-)

How do you specify npm dependencies. Does it "automagically" inspect your `require` statements?

Re:Clipboard.js: Modern Copy to Clipboard on Wednesday September 30, 2015 @06:32AM (#10302903)
So Safari is holding back webdev because it doesn't support an experimental technology?

Fun thing: the author of the Selection API draft works for Apple :-)

http://www.w3.org/TR/selection-api

Re:Goto in Python on Monday September 21, 2015 @07:48AM (#10251592)
Here's another Python 3 compatible implementation: https://github.com/cdjc/goto
Re:Relay: Declarative data for React applications on Tuesday September 15, 2015 @06:59AM (#10219909)
Actually, if you leave off the "new" you get a TypeError:

    TypeError: Class constructors cannot be invoked without 'new'
Re:Modals in React on Thursday July 30, 2015 @10:30AM (#9975188)
How a polymer component would be better than a react component?

Older »