News for hackers. Stuff that matters.

kentor

Re:Deno 2 on Wednesday October 09, 2024 @11:50PM (#41795339)
The logo is not as cute, sad :(
Re:Show HN: InstantDB – A Modern Firebase on Thursday August 29, 2024 @03:02AM (#41388113)
Just replaced Firebase with this in my personal notes app. Also removed redux along the way :) This is great!!
Re:The most incriminating evidence against Hans Niemann on Wednesday October 05, 2022 @03:18AM (#33092287)
chess.com's 72-page report[0] alluded to this video, and I'm glad this is what they had to say: "We have concluded that the methodology and the underlying tools used in those analyses do not meet our standard."

[0] https://www.chess.com/blog/CHESScom/hans-niemann-report

Re:The Full Chess Cheating Report of Hans Neiman on Wednesday October 05, 2022 @01:30AM (#33091636)
He's a native speaker, just spent too much time around people with broken English recently.
Re:Fresh is a new full stack web framework for Deno on Wednesday June 29, 2022 @03:46AM (#31917510)
I was pleasantly surprised to find that they finally dogfood Fresh for https://deno.land/

Source can be found here https://github.com/denoland/dotland

Re:Use fzf for tmux session switching on Sunday May 08, 2022 @05:57PM (#31308483)
Video is cut off on mobile
Re:Deno in 2021 on Tuesday January 25, 2022 @03:35PM (#30077667)
I've recently used Deno to implement a couple of bots for a small discord channel, namely webhook handlers for Discord Slash Commands and Twitch's EventSub. It's honestly been amazing. Next to no configuration and deployments are dead simple. Just set up some env vars and push to github to deploy.
Re:Exploring Deno Land with Ryan Dahl [audio] on Tuesday June 08, 2021 @04:07PM (#27440083)
Is there a way to play at 2x speed?

Edit: Oh they're on the overcast app, which allows playing faster.

The 3b1b video was mind blowing. Link: https://www.youtube.com/watch?v=spUNpyF58BY
Why hate JSX? There are lots of benefits to it, like debuggability and variable scoping rules are exactly those of javascript. Templating languages, on the otherhand, are not debuggable and have awkward scoping rules. And, they always feel broken in one way or another.

JSX is not magical which is what I appreciate the most about it.

That is just javascript trivia that one rarely encounters in real code, and shouldn't be used to dismiss the entire language.
My view is you define methods with parameters, you call methods with arguments.

`ArgumentError` is consistent with an error during call time.

Re:Weird Ruby: Positive and Negative Strings on Friday May 10, 2019 @11:49PM (#19884434)
Mutable strings was a mistake.
Re:TypeScript 3.4 on Saturday March 30, 2019 @03:48PM (#19531382)
"const a = {}" disallows reassignment to "a" but still allows you to mutate the object e.g. "a.b = 1". The const context does not allow you to mutate the object.
Re:Ask HN: What is setup for your static blog generator? on Saturday February 10, 2018 @02:24AM (#16346322)
I wrote one for node: https://github.com/kentor/tiny-ssg

No "configuration". All code. You have to assemble the libraries from npm to make anything useful out of it though. Good luck.

Re:MyRocks – A RocksDB storage engine with MySQL on Sunday December 03, 2017 @12:30AM (#15836114)
Maybe if it weren't plural. You're way over thinking things.
Re:Visual Studio Code July 2017 Update on Thursday August 10, 2017 @03:55PM (#14983507)
Still no support for 4 column panes :\
Re:Netlify Raises $12M from A16Z on Wednesday August 09, 2017 @09:48PM (#14975610)
Even a thin doctor who stays thin with a terrible diet?
Re:Atom 1.19 – Improved Responsiveness and Memory Usage on Wednesday August 09, 2017 @01:20PM (#14971433)
VSCodeVim is atrocious in handling multiple cursors

amVim does it better, but is missing ; for repeating the last t or f command

Re:Malicious crossenv package on npm on Tuesday August 01, 2017 @09:28PM (#14907157)
if you have yarn run

    yarn why crossenv
to see if you have it in your dependency tree
Re:GitHub was down on Monday July 31, 2017 @01:58PM (#14894407)
Why would it?
Re:Firefox marketshare revisited on Wednesday July 19, 2017 @08:01PM (#14809043)
Graceful degradation working though.
Re:Functional programming in JavaScript is an antipattern on Tuesday June 27, 2017 @02:29AM (#14642945)
I have a few large React apps that have been using mostly Immutable.JS from the very beginning, so I rarely run into issues where I need to think whether what I'm dealing with is an Immutable.JS object or plain JS objects. I can see an issue if you are incrementally converting an app to Immutable.JS and dealing with a mix of plain JS objects though.

I have heard criticisms of lisp macros as making it a write-once language. If you're not working on a team then maybe it's fine, but other people aren't gonna want to figure out how your macros work.

Re:Top Static Site Generators of 2017 on Thursday June 01, 2017 @01:07AM (#14458127)
Indeed! It also isn't for people who have "javascript fatigue." And they can use any of the 10 in the list by the OP.
Re:Top Static Site Generators of 2017 on Thursday June 01, 2017 @12:39AM (#14458033)
I wrote my own because I don't like magic, reading a lot of documentation, and I hate templates. Using server side rendering with React is great! https://github.com/kentor/tiny-ssg
Re:Node v8.0.0 Released on Tuesday May 30, 2017 @10:30PM (#14450079)
It would be weird for async functions to be synchronous wouldn't it?

Also the consumer is not required to use await with a called async function. They can use .then on it, or pass it around to other functions that consumes promises. Or, you could pass the async function to decorators that consume promise returning functions. Using experimental decorator syntax:

    @debouncePromise
    async function() {
       ...
    }
Yes it is a trade off of performance for convenience and consistency.

Also... the right side of await will effectively be wrapped in a simple Promise.resolve() if it is not a promise. Proof: http://babeljs.io/repl/#?babili=false&evaluate=true&lineWrap...

Older »