News for hackers. Stuff that matters.

drinchev

I started with Wireguard first, however the setup / maintenance makes it a way bigger project than simply using Tailscale.
Re:Major AWS Outage Happening on Monday October 20, 2025 @04:37AM (#45641341)
Also npm audit times out.
Re:Ask HN: Are tech layoffs happening abroad? on Thursday January 11, 2024 @05:27PM (#38960275)
Note that we also had COVID and shifted to remote gigs in Germany. This means that we compete with people located in smaller cities or even villages which probably have a pretty good pay rate bump.
As a contractor, based in Berlin, I also noticed that since the end of last year the market slowed down.
Re:Is it time to open source SublimeText? on Thursday March 30, 2023 @11:24AM (#35374126)
Sublime Text editor is my day-dreaming destination when I feel depressed of work. It makes me really happy that 2-3 people can actually build something, sell a piece of it in an non-disturbing way, and do this for a living.

It's also one of the best shareware models ( Is this even a word these days? ), that I've ever stumbled upon.

Keep up the good work, folks!

Re:How to start a React Project in 2023 on Thursday March 23, 2023 @06:19PM (#35282145)
> bleeding edge tech solves many problems ...

> which day to day tech workers working on internal B2B do not face

That's so true. Good luck explaining to management that the front-end app needs additional cloud resources, such as a server, so we are on the edge of the trend with SSR.

Most apps behind a login face tough architectural / security meetings, defending SSR for their use-case.

Re:SVBUK Taken in to Involvency on Saturday March 11, 2023 @07:19AM (#35107679)
Wow. I hope this won’t spread further. Looking at DAX, Deutsche Bank shares dropped as well as HSBC.

When I first read the news, I thought about another hit for the crypto, however looking at what happens I’m a bit worried where will the avalanche reach next Monday.

Stay safe folks!

This looks cool. However I was looking for a better “Alfred” on my Mac and found https://www.raycast.com/.

Seems like it’s not an electron app, but also works with JS and even React.

In case someone is using both. What are the Pro/Cons against Raycast for ScriptKit?

Re:Why to not use JWT (2021) on Thursday September 29, 2022 @10:07AM (#33020817)
What I'm pissed about is that everyone hopped on the JWT train too fast a couple of years ago.

Now it's really hard to argue with architects / developers why cookie authentication / bearer token makes more sense than JWTs.

Re:Why to not use JWT (2021) on Thursday September 29, 2022 @10:05AM (#33020786)
As explained in the article, if that's the case then you can't really trust the JWT anymore only for it's cryptographic signature and you rely on an internal store entry that makes the token valid / invalid.

This makes no benefits as to bearer token or any random string that the server "knows" is a valid authenticated request via internal store, like a DB.

Well I think there are far more dangerous substances than alcohol which are considered legal and advertised.

Eating sugar for example in excessive amounts leads to way worse diseases - https://www.webmd.com/diabetes/features/how-sugar-affects-yo....

Re:Software Infrastructure 2.0: A Wishlist on Tuesday April 20, 2021 @04:05AM (#26871953)
There is hardly an app that I use these days that doesn't require internet connection. I guess once your app needs it, you will have the same problems.
Re:Use console.log() like a pro (2020) on Monday April 12, 2021 @03:57PM (#26784361)
Fun story explaining this to the PR reviewers though :D
Re:Use console.log() like a pro (2020) on Monday April 12, 2021 @02:46PM (#26783406)
Yeah I don't remember how I found about this, but I remember it involved some `console.log(JSON.stringify(...))`. It's tricky to notice.
Really nice design of the home page! Do you folks use a template for that or you built it in-house?
Re:Bad TypeScript Habits on Tuesday February 02, 2021 @03:41PM (#26006328)
Btw in this context I would like to share Type Fast by sindresorhus [1].

I find it excellent and definitely a helpful tool to think about when you are struggling with type safety vs runtime data.

1: https://github.com/sindresorhus/type-fest

Re:js;dr = JavaScript required; Didn’t Read. on Sunday January 17, 2021 @03:25PM (#25814590)
> You could certainly build Facebook as a fully server-rendered PHP app, but that would hurt Facebook's business because its servers would need to do more work and its users would have to wait longer for content.

I think they do that mostly because for the users who’ll have to download the header 100 times for each action they’ll do. Not really sure that all benefits from SPA are hidden in company costs. Mostly they are in modern tech approach.

Writing this I still agree with the article. SPA is needed when you are under authentication but publicly you can live with progressive web.

Re:Minimal Base.html on Monday January 04, 2021 @04:40AM (#25629257)
I'm used to call this HTML5 boilerplate. So that's the way I google when I actually need something like this.

https://github.com/h5bp/html5-boilerplate/blob/master/src/in...

Re:I've walked away from software development on Friday December 18, 2020 @02:24PM (#25470851)
34 and I feel pretty happy freelancing. Freelance IMO is closer to real life for most of the devs I’ve talked to. You are not committed to bullshit, often excluded from company brainwash meetings and actually getting paid by the hour, so you can manage the amount of “life you sell”.

Mentioning corona here, I think the society is desperate to find more IT folks around and loosing someone because of shitty interview process ( which I mostly skip because I’m a freelancer ) is quite sad.

Re:Switching from Vim to Intellij on Thursday November 05, 2020 @02:45PM (#25001264)
As a longtime WebStorm user I would really appreciate a WebStorm + let’s say PyCharm vs IntelliJ. I’m a bit happy by the default configuration of each dedicated IDE, rather than clicking around in IntelliJ and fix stuff. What’s your opinion on that?
Re:Laid Off, Now What? on Sunday September 20, 2020 @03:42PM (#24536759)
Probably my 1 year old daughter talks right now, but I really have no time to do stuff on the weekend. I'm happily not living with a visa though, but still I think if you don't have enough time, you can always "spend" some career achievements and go to a less paid gig. When the market recovers your career will recover too.

Ask HN: Good and logical resources on growing kids

I have a 10 months old daughter and it's getting tougher than ever. We are living outside of "grandmas" location, so we're definitely struggling with focusing on something else than our baby. I took some holidays now, but it seems that the most I can do is relax from taking care of the baby.Do you know any good books on that matter?

( Read More... | 6 comments | 9 points | on HN )
Thanks for that. Really appreciate the answer.

I remember having similar struggles with infinite-scroll product page a while back ( ~5 years ago ), with variable card height. I thought this could be done with CSS nowadays, but I guess css grid & flex-box specs don't go that far.

Awesome work!

I know that the OP probably did the research, so I'm just going to ask :

Isn't this possible with only CSS?

I see each article ( section ) with position absolute and heavy JS calculations. My browser brain thinks that with some combo of flex-box / flex-wrap and breakpoints you could achieve this without the need for resize handler. I guess that's not the truth

So can you point the struggles not doing this with CSS?

Re:How we test the TeamCity UI on Thursday June 25, 2020 @05:48PM (#23646154)
The snapshots part is something that I completely disagree.

> Here, we change the engine type from turbofan to propfan. Just to test how it works. Since the new engine no longer matches our snapshot, the test fails. We’ve got a report, and our engineers are on their way to investigate the problem.

I would be really happy if I know that the onboard computer has tests that checks if the engine being used is compatible before it takes off.

IMO, tests in general should be as close as possible to the real use-case ( kudos for the screenshot testing ) and as far as possible from the implementation. What happens with snapshots is that you are bound to the implementation. Maybe I have a logic somewhere in my code that does s/propfan/turbofan/. Would a user be interested in that or the functionality itself?

We ditched all JEST's snapshots statements in our code-base, because of code-coverage abuse and false sense of "being safe" just a couple of months ago. It was a good decision that helped us be closer to "what the user sees" rather than "what the markup should be"

> Installation

> curl https://aviary.sh/install | sudo bash

I would really try to avoid this, especially when it's targeted for sysadmins ( I guess DevOps nowadays ).

What's the big deal of having this instead :

> $ wget https://gitlab.com/dchester/aviary.sh/-/archive/1.3.2/aviary...

> ./aviary-install.sh

Re:Make your 404s into 302s on Friday May 29, 2020 @08:48AM (#23349314)
Same happened with me. Here is the idea :

> Here’s the simplest solution I could come up with:

> 1. Serve the current site from a subdomain (e.g., 2017.ar.al)

> 2. Make my 404s into 302s that point to the previous version of the site.

> 3. If I change the site again in the future, rinse and repeat.

> I call the technique 404 to 302.

Re:A one-line package broke `npm create-react-app` on Saturday April 25, 2020 @03:35PM (#22980728)
Re:A one-line package broke `npm create-react-app` on Saturday April 25, 2020 @03:21PM (#22980588)
Yeah, but the question is how far should we go with that. Should we do :

    const isFalsy = require("is-falsy");
    const isObject = require("is-object");
    const isFunction = require( "is-function" );
    const hasThen = require( "has-then" );

    function isPromise(obj) {
      return !isFalsy(obj) && ( isObject(obj) || isFunction(obj) ) && hasThen( obj );
    }
Just because the code line is more than 50 characters, doesn't mean that we need a new library for that.

Older »