HNHacker News
TopNewBestAskShowJobs

adrianhel

99 karma · joined May 4, 2018

submissionscomments
adrianhel··on Google will delete new accounts' data by default in 18 months
Can I consent to permanent storage somewhere? I love using the timeline in Google Maps!
adrianhel··on A little bit of plain JavaScript can do a lot
Why bother with jQuery? I don't see the value add anymore.
adrianhel··on Advice to Young Web Developers
Another thing I painfully realized: It that is not a good idea to document HTML in HTML.

<details> <summary> It's not a good idea </summary> really. &lt/details>

adrianhel··on Advice to Young Web Developers
It's the snappiest browser at the moment and I love its render as text function and automatic ad blocking on mobile. I've made a permanent switch on mobile, but I tend to miss the Chrome dev tools whenever I use it on a computer.

It's also wonderful that the browser is truly privacy conscious.

adrianhel··on The Road Less Traveled to Fusion Energy?
I did not know that. That's great!
adrianhel··on The Road Less Traveled to Fusion Energy?
There is a lot of land in the world. And definitely have the capacity to build the supply chains. It's just that it's slow and expensive while oil, gas and nuclear is fast and cheap.

We need policy changes. Or in a very ideal world, fusion.

adrianhel··on Userinterface.js – A small library to build front-end JavaScript applications
And to elaborate on the other side of the argument: JSX creates plain JavaScript objects instead of exposing an "almost-JS" templating language. Additionally you get an enormous amount of flexibility. For some types of apps that is very important.
adrianhel··on From Node to Deno
It's an unstable feature, but you can use import maps with Deno.
adrianhel··on From Node to Deno
I agree. But I do like query builders (Knex for Node). I still write and think in SQL, but don't have to write queries as strings.
adrianhel··on Have the record number of investors in the stock market lost their minds?
For 7% a P/E of 14.285714285 or less would be good to be very precise.
adrianhel··on A one-line package broke `npm create-react-app`
There should be a Promise.isThenable or Promise.is. Strictly speaking this library checks if a value is a thenable.

With optional chaining I would however use this check:

    typeof x?.then === 'function'
Or if I was code golfin:

    x?.then?.call
The first case does not account for built in prototype extensions and the second has false positives with certain data structures.

So the function in is-promise should be available as Promise.isThenable or Promise.is.

adrianhel··on The JavaScript Black Hole: A playbook for ethical engineering on the web
Scrolling on iOS browsers is an utter pain due to rubber band scrolling. It can be solved with -webkit-overflow-scrolling and hard work.
adrianhel··on Mounting evidence for Covid-19 treatments
This was really interesting! Would be interesting to see how this interacts with hemochromatosis.
adrianhel··on Things Markdown got wrong
Agree. It's really missing the point of how this has been used in reality for the sake of promoting semantics in an area where semantics rarely matter.
adrianhel··on Why Amazon got out of the Apple App Store tax and other developers won’t
"Singular marketplace" – there's your problem.

With Android, at least you can download an APK.

adrianhel··on Why Amazon got out of the Apple App Store tax and other developers won’t
That's anti-trust at its worst. Sue Apple.
adrianhel··on Ask HN: Best practices for ethical web scraping?
I like this approach. Personally I wait an hour if I get an invalid response and use timeouts of a few seconds between other requests.
adrianhel··on Rust docs team is no more
Good strategy. By ensuring good documentation in the early stages, the community will likely follow.
adrianhel··on How to manage HTML DOM with vanilla JavaScript only?
Just use vanilla JS to begin with. If your app has a lot of interaction, you can use React with create-react-app makes things easier.

You can still use vanilla JS, HTML and CSS. And it's not morally wrong.

Assess the requirements. Lots of moving parts and not a whole lot of time? React or Vue lets you draw the big lines quite simply. Need something simple or with fancy animations? Vanilla may be your best bet.

Personally I use vanilla for simpler stuff and React for more complex apps.

Don't worry, just make cool stuff. Nobody ever cares how you built it, just that it works.

Trello still uses CoffeeScript. It really does not matter as long as it works.

PS: You can combine if and when needed.

adrianhel··on How to manage HTML DOM with vanilla JavaScript only?
That is not the case anymore. Vendor prefixes are discouraged and seldom needed.
adrianhel··on How to manage HTML DOM with vanilla JavaScript only?
DOM diffing is great for most stuff. When you need anything other than "Replace this with that and don't defocus my input fields", DOM manipulations are great. Drag'n'drop is a great example of this.

There is a lot of potential for the imperative APIs for this though. I even made a proposal:

https://github.com/adrianhelvik/proposal-move-events

adrianhel··on New iPad Pro with LiDAR Scanner and trackpad support
I just hope it doesn't use a butterfly keyboard. Man, Apple is making home office worse than it needs to be.
adrianhel··on Harvard epidemiologist: my colleagues assumed UK coronavirus plan “was satire”
In Norway we just slipped from the 2nd most infected per capita to the 3rd after government warnings. If your country has >= 1 infected, you should follow the advice at fhi.no/en.
adrianhel··on Harvard epidemiologist: my colleagues assumed UK coronavirus plan “was satire”
Take action now.
adrianhel··on “Apps intended for kids may not include third-party advertising or analytics”
No. Gambling ads are not allowed though. Neither alcohol or smoking are banned, but ads for them are.
adrianhel··on How I Made $200k When I Was 16 Years Old Through Coding (2018)
Some things I'd have loved to be told to build:

    Simple 2d game
    To do app
    Timesheet app
    Implement a clone of x with something extra of your choosing
    Top Twitter celebrity app using its API
    Building a search engine
    Creating a programming language
An issue with the programming courses at my uni was that none of them used a database. The programs were toy apps by design. Instruct students to use sqlite or MongoDB, and encourage them to use PostgreSQL/MySQL.

Our database class did use databases, but we had no integration of the two subjects.

adrianhel··on I Don't Want to Teach My Garbage DSL, Either
That sounds kind of terrifying.
adrianhel··on I Don't Want to Teach My Garbage DSL, Either
Do anyone here expose real sql querying capabilities to your users?
adrianhel··on I Don't Want to Teach My Garbage DSL, Either
Then again, REST/RPC are query languages in their own right.

How would one go about securing this thing anyways?

(I agree with the basic sentiment, but find it somewhat unrealistic)

adrianhel··on Show HN: A renderless and extendable rich-text editor for Vue.js
This depends on the app however. For a landing page? No way. For a module within an app I would not mind, as long as lazy imports are used.
Page 1 of 5Next →