HNHacker News
TopNewBestAskShowJobs

drinchev

3,581 karma · joined October 4, 2011

Freelance web developer, based in Berlin.

http://www.drinchev.com

[ my public key: https://keybase.io/drinchev; my proof: https://keybase.io/drinchev/sigs/DoNkf0DJhCHcuXXwrX-M5M-qqQV3NqJQJO518YFb8zY ]

submissionscomments
drinchev··on Coinbase Index Fund
There is a person who bought 800$ worth of cryptocurrency via 66 coins [1].

On Day 40 the total value is 388.58$.

1: https://66shitcoins.com

drinchev··on European Union plans to tax tech giants on local revenue
Well it's not like we have universal income, but increasing taxes on Fortune 500 companies always makes me happy.

I really hope the taxes won't go into another corrupted Berlin airport scheme.

drinchev··on Ask HN: Cookies vs. JWT vs. OAuth
Using cookies with Domain option allows you to share a cookie between `api.site.com` and `www.site.com`.

You can combine that with a `Authentication Bearer` for releasing a public API access.

drinchev··on Ask HN: What are your daily (or weekly) routines?
My ( sometimes ) daily routine ... wait for it ... is having a glass of wine while browsing the Internet for an hour, just before I go to bed.

This turns off :

1. Ability to blame myself for not being productive after work

2. Ability to constantly worry about stuff that needs to be done

No other daily routine imposed by myself has stuck for years, except this one. Everything else I consider not a routine, but responsibilities - wake up, go to the gym, go to work, go to the supermarket, household work, etc ...

drinchev··on Ask HN: What stack would you use to build a CRUD web app in 2018?
jQuery is no better ( these days ) than Vanilla JS, which you will love as well especially if you choose to use ES6 syntax.
drinchev··on Ask HN: What stack would you use to build a CRUD web app in 2018?
Depends on how complicated the app is.

Most of the times a good old non-SPA with NodeJS / Express / Some ORM with vanilla JS / Handlebars and SASS will do the job without having a huge technical debt.

If on the other hand the requirements are to have a more complicated SPA, I would go with React / Redux and a NodeJS / Express / ORM for the API. Hosting the front-end on an S3 and the backend on a Digital Ocean Droplet.

drinchev··on A Unix shell script implementing ACME client protocol
It doesn't look so simple, but definitely looks quirky.

Take a look at how the tests are invoked :

    for t in $(grep ^le_test_  $FILE_NAME | cut -d '(' -f 1) 
    do
      if [ -z "$CASE" ] ; then
        __green "Progress: "
        [ "$_ret" = "0" ] && __green "$_ret" || __red "$_ret"
        __green "/$num/$total"

        printf "\n"
        num=$(_math $num + 1)
      fi
    ...
It basically parses the very same file and checks for functions with the name `le_test`. This means that a random comment containing `le_test_` will break the whole script. You need lots of discipline in order to make things work.

Bash works perfectly with "Write programs that do one thing and do it well". Wouldn't be so surprised if this was a bunch of small test cases separated by file.

drinchev··on A Unix shell script implementing ACME client protocol
Wow 6k lines of bash script with 1.6k tests file [1].

Looks a bit nightmarish to maintain.

1 : https://github.com/Neilpang/acmetest/blob/master/letest.sh

drinchev··on Collection of Useful CSS Snippets
Not really overflow: hidden. Just position: relative. Take look at Balloon.css

1: https://kazzkiq.github.io/balloon.css/

EDIT: Sorry, now I read your comment. Yeah that's true, you will have to make some exception with your container in this case. But this sounds like an edge case to me.

drinchev··on Collection of Useful CSS Snippets
You can position the tooltip on the left, right, top, bottom in the markup with a class name. This way if the tooltip is in the header you can use e.g. `tooltip-bottom`.

Having 10kb tooltip library for doing this automatically is a bit of an overkill for me [1].

1 : https://atomiks.github.io/tippyjs/

drinchev··on Collection of Useful CSS Snippets
Most of them are oldies, but >goldies<.

Tooltips are my favourite CSS-"trick". I've seen countless developers implement those with javascript, which is redundant if you know proper css selectors.

On the other hand I don't find myself using the clearfix ( actually I ditched floats for layouts, long time ago ), css triangles ( usually some unicode arrow or an image ), gradients / animations and shadows are out of the current trend ( everything is flat / material these days ).

drinchev··on An SVG that always shows today's date
> SVG supports JavaScript.

I didn’t know that, probably because I never had to use JS in a SVG.

Probably it works only when SVGs are rendered by a browser, so this feature is a bit of a hack for me.

drinchev··on DigitalOcean begins CEO search
Not sure about that, but last couple of projects, I only used S3. Everything else is run on DO.

It is a lot faster to setup and easy to maintain, if you don't have a dedicated dev-ops person in the team.

drinchev··on GitHub shouldn't allow username reuse
This reminds me about the whole `left-pad` fiasco and npm allowing same-name packages to be re-published. For a while I thought that the packages were hijacked [1].

GitHub should definitely not allow username reuse, but most prominently it's a Go issue, where they use GitHub as a package manager.

1 : http://www.drinchev.com/blog/alert-npm-modules-hijacked/

drinchev··on European Parliament requests recommendation to end biannual clock change
I think around 60% of the population is working age ( shrinking number each year in EU ), what about the other 40% ( kids / elderly )?

It's even more exhausting for those 40% with the these twice per year saving light nonsense.

drinchev··on NPM packages with most dependencies
No idea why this list is on the first page of HN, but it looks like ( at least the 10 that I clicked around ) are very spammy, not at all popular, packages that I doubt have any use.

Probably the attention to this article is the good old debate about npm and the huge dependencies that a package can have. Which is not always a bad thing. Actually I wrote an article [1] about it.

1 : http://www.drinchev.com/blog/increase-your-dependencies/

drinchev··on Ask HN: Simple tools/hack for small project management
I do almost the same.

My setup is with Dropbox, though. I have a symbolic link named `/Projects/Foo/_misc` ( the root directory of the git repository ) pointing to `/Dropbox/Projects/Foo`. The link is excluded via .gitignore . Then I use the extra _misc directory for everything related to this project, like notes, assets, experiments that I run, etc.

With dropbox I can be sure that I have all the information on my laptop as well as on my work computer.

drinchev··on Turning a Job Opening into a Dream Job for Top Talent
What is missing in the article is the word "freelance".

Most of the time within a startup you can see developers stay in the company for ~1 year. Usually they are more willing to find another job than negotiating a salary bump ( which happens to be also mentally easier, since the first action is passive - just reply to a recruiter ).

When I completely switched to freelance gigs, I discovered that I stay in a company for far longer time. It is easier for me to index my price per hour with the market, since I have less bureaucracy with my client ( removes FOMO ). I had the best offers ( company shares + bonuses ) to join various companies than being an employee ( because of the FOMO of the employer that you might leave soon ). And finally I improved my code quality, since you always write your code with having your mind that sooner or later you will be not the code-owner.

Of course having 3 months off to enjoy the summer also makes it more appealing than the 22 vacation days you usually receive ( in Europe ).

Disclaimer - all of this won't work if you are a junior developer. Usually the stronger hands are in your employer then, since your contract can be terminated any day, without any notice.

But hiring a senior developer as a freelancer in your team ( IMHO ) will definitely mean that you will work with a highly motivated person, being there to do the job.

drinchev··on Gmail auto labels
> I found that generally speaking, most providers are pretty good about keeping the "from" address that they send communication from relatively stable.

My observation is a bit different. I noticed that the marketing teams usually put a from address like "frank@service.com", "michael@" or any other first name they use to make it more "personal". This makes my filtering a bit difficult, since I usually want those e-mails to end up in "Newsletter" label, but all others important from this address like "no-reply@service.com" to remain in my inbox.

drinchev··on Facebook is banning all ads promoting cryptocurrencies
That's not based on Russian / Eastern European, it's based on SCAM levels across the whole cryptocurrency sector.

> targeting people in the US

Anyone doing >anything IT related<, will target the US, first. Everyone outside the US with a startup idea does that. People there have the biggest investors, biggest tech scene, biggest chance of success, etc. I don't see how Russian / Eastern European targeting US makes them scammers.

> investors in these schemes have no protections / legal recourse as these entities are outside the US.

And that's related to the entity, not the team. How about a team of Russian / Eastern Europeans with an American entity? Would then be not a SCAM?

Of course I think what is stated in the OP is pure prejudice.

There are multiple scams originated in every nation, so let's not put the guilt on origin of the team behind it.

Vitalik is a Russian-Canadian, as well as lot's of good guys working on Cryptocurrency.

drinchev··on Facebook is banning all ads promoting cryptocurrencies
> The "team" page for them are mostly Russian / Eastern European.

What's wrong with that?

drinchev··on SpaceX’s Falcon Heavy could launch for the first time as soon as Feb 6
> Because of the experimental nature of the first flight, and perhaps as a way to burnish the spectacle, Musk decided the payload will be his personal Roadster sports car made by another one of his companies, Tesla Inc., that will be set to play David Bowie’s “Space Oddity” on repeat as it’s hurled into the deep beyond.

How cool is that? I hope they have a camera on that car, so we can see it in the video stream.

drinchev··on Richard Stallman's lifestyle
Burner phones need a SIM card, most countries' pre-paid cards require an ID on purchase.
drinchev··on Starting an ISP is hard (2016)
Back when I was 16 and the Dial-up was slowly dying, I took a cable connection and start selling internet to my neighbours.

By the 3rd year the network reached 3 blocks around the neighbourhood and I had ~50 paying clients. I still remember I did that with an old Intel 486 running Slackware Linux and a bunch of ipchains MASQ scripts. I had even a small local website where you were able to see your traffic ( I remember I was paid 10EUR/500MB or something. )

Back then I was not alone. Almost every neighbourhood had those networks, but at one point they started to unite together and the bigger ones were buying the small ones.

Now the biggest problem would be regulation, rather than the hardware requirements.

drinchev··on Kraken down 24 hours on system upgrade
From what I suspect, we are talking about some backend issue that they are handling. Throughout my career I've never seen a "rotating shifts team" that can handle situations like this. It's usually one guy trying to fix it and a couple of others hanging in the office with a cup of coffee and giving advice on what should the company do next or being forced to update the status page.
drinchev··on [dead]
I guess this might work with celebrities or so, but according to the continental law system this app should not hold up in court.

If it did work in court, that would be a dangerous experience.

I would be crazy to write this, but I can't imagine how in the middle of intercourse someone would be able to stop it if they already signed their consent.

drinchev··on Ftfy – fix Unicode that's broken in various ways
That's what I think as well. My native is Bulgarian and I've been through the whole range, you mentioned.

What saves me is having File -> Open with Encoding ( Sublime Text ). Unfortunately they removed it from Chrome [1].

https://superuser.com/questions/1160003/how-do-i-change-the-...

drinchev··on Ripple Slides After Coinbase Says Not Adding New Crypto Coins
Coinbase shouldn't dictate the market. It is the other way around. And sooner or later I hope they will be forced to add it.

Having an argument "Our mission is to create an open financial system for the world" and accepting >only< decentralised cryptos sounds like an oxymoron to me.

drinchev··on Productivity in 2017: analyzing 225 million hours of work time
Thanks for the links.

Qbserve looks awesome! I'm having a problem though, since I'm using a work Mac and a home Mac, I won't be able to sync. As far as I read from the website:

> For the same reason, there is no sync. Sorry, multiple Mac owners! We wish we could do that some day, but it's a tricky task because Qbserve doesn't use any server at all.

And I wanted to ask, is this feature planned?

drinchev··on Why I Still Use Vim
As far as I can see from this article, Sublime text is faster than vim.

That's astonishing considering that Sublime uses GUI and vim is a console editor.

I also like vim, but Sublime + vintage ( vim-mode ) works good and you have the benefits of both worlds.

← PreviousPage 6 of 30Next →