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 JWT is Awesome
So where do you store the ones that should not allow to be refreshed? How short lived they should be in case of "Reset Password" scenario, when you need to kick out malicious user?
drinchev··on Ask HN: What are some examples of well-designed personal sites?
I like mine :D

[1] https://www.drinchev.com

drinchev··on Syntax Highlighting Is Backwards (2018)
Sadly this won't work when you read code online. GitHub shows comments gray, as well as StackOverflow. This makes one step in the right direction - movement to highlight the important things, rather than everything.
drinchev··on Syntax Highlighting Is Backwards (2018)
First thing I usually change in a default syntax highlight theme is the color of the comments.

I make them green, instead of gray. This makes my code ( IMHO ) much more readable. Also the comments ( when taken into consideration by the developer ) are one of the most important letters in the source code, so better be more visible than the keywords.

drinchev··on Tesla Cybertruck
But this looks like a prototype. No windshields, no side mirrors. Is this even legal?
drinchev··on Alphabet in bid to buy Fitbit
My 5 cents. Fitbit discontinued one of their best products Fitbit Flex 2, which I'm still using. It's a 50 bucks rubber band with 1 week battery life that tracks sleep & steps.

I don't really know why they cancelled it but I'm wearing Fitbit flex and later flex 2 since they entered the market and it's a divice that I'm used to wear and forget even when I'm asleep ( compared to the Apple Watch, which nevertheless needs daily charge and is simply too bulky to wear in bed ). I haven't found any decent competitors on that part and I'm honestly afraid of the wasted hours when I have to decide what to use as a replacement.

drinchev··on Ask HN: How do you build applications that require zero maintenance?
That’s an amazingly useful thread. My 2 cents regarding the tech stack :

1. Don’t use a build system. Use scripting language that comes preinstalled on Debian / Ubuntu. Peel 5 is still my weapon of choice for robust small web apps. Look at python too.

2. Avoid JS / Ajax. I can bet that security restrictions will break it in the future, however good old form POST works still pretty good.

3. Use own hardware. Raspberry PI with HDD or some banana PI works quite allright. Also provisioning is easy by keeping a copy of your image.

4. Don’t use managed services. Use database on the very same machine that you host the app itself. Backup is an extra step you can achieve via those, but don’t use External service, since it will most probably break.

drinchev··on Ask HN: Who Wants to Be Fired?
+1 for freelancing. I never had to deal with any of the bullshit 2 days on-site interview with whiteboard challenge. I don't get the full interview routine because I'm considered "external" and "temporary workforce" ( 6-12 months ). Funny story that I've seen lots of "internals" moving to other gigs in about the same amount of time.

Freelancing gives you the opportunity to do your job, get your money and don't get involved in company policies. As a side-effect you pass interviews and have flexible working hours.

drinchev··on The cost of parsing JSON
Well I guess this means that if you have a 1k+ lines of static JSON, it would be better if you consider converting it to a string and use JSON.parse instead.

I'm not sure I can find a use case of such a big object declaration. Usually what you do is to get it from somewhere ( file, db - with nodejs, xhr ) where it's been parsed with JSON.parse anyway.

drinchev··on iPhone 11 Pro and iPhone 11 Pro Max
Jeez. Since the last 3 years I re-watch the iPhone 7's keynote and I can say that my phone ( 7 ) is awesome and I can do such an amazing photos... However I haven't done so and I just use it to take a photo of a document to scan it or some stupid poster that I've seen in the subway.
drinchev··on Apple Watch Series 5
How does the battery drains during heat waves? I noticed mine gets depleted too fast when the temperature outside is 30+ degrees ( Celsius ).
drinchev··on Apple Watch Series 5
My Apple Watch ( Series 1 ) is still alive and working quite well. It lasts for 8-9 hours if I don't use the heart rate monitor, while doing sports. I think at this point I could say that my Apple Watch is not "all-day" battery life.
drinchev··on Apple Watch Series 5
I would assume sleep tracking would never be a feature. You need to charge your Apple Watch every night, so that's off the limit. I use Fitbit Flex 2 to track my sleep and I wear them both during the day, however during the night only Flex 2 stays on one of my wrists.

Unfortunately Fitbit decided to discontinue the display-less flex 2 and now I'm a bit confused on what to do next.

drinchev··on Apple Watch Series 5
Well I assume you can still see it when it's dimmed, however if you can't, you can simply lift your wrist.
drinchev··on For a lower climate footprint, vegetarian diet beats local
Btw it's not really necessary to consume >only< vegetarian / vegan food. Since couple of months I try and eat vegan meals for one day per week and reduce eating meat to at most 2 times per week. I can gladly say that this is manageable, not a big deal for all of us and doesn't require so much strictness ( IMO ). Nevertheless the benefit for the environment is not as big than being a vegan / vegetarian, but still bigger than eating meat 7 days per week.

Side topic, but meat these days is quite expensive if you really take it from a quality manufacturer ( Bio meat in Germany costs 3 times more than the "regular" one ). You can imagine what kind of meat you get if you don't have to dig deep into your pocket for a meal.

drinchev··on Please Add RSS Support to Your Site
Funny story. Most blogs I follow via my Reeder [0] ( actually best app I've ever used for (i|mac)OS ... no, I'm not affiliated with the app ) are ones that end up on HN. It's funny but my RSS feed currently is 30% HN / 30% Media websites like The Guardian / 40% Other. Since a year or two I rarely add new sources to my feed, which I feel it's sad.

0: https://reederapp.com

drinchev··on Writing your NPM scripts in a JavaScript file
This reminds me of gulp, where you used JS Gulpfile instead of Makefile.
drinchev··on Why ElementaryOS Left Medium
There needs to be an app that has the ability to connect ( via oAuth, whatever ) with DigitalOcean / AWS and that can generate a static website out of a WordPress(-like) editor, keeping the state in the cloud - again DO or whatever in a managed database.

The app should cost <20$ ( or be open sourced ) and it should have a huge eco-system of themes / plugins, including paid ones.

Sadly this app will never have an IPO or growth rate worth investing, but it will fix the problem ( for a while ).

drinchev··on Why ElementaryOS Left Medium
> and they leave behind valuable information for us

Leaving information so far :

1. https://svbtle.com

2. https://posthaven.com

3. https://www.blogger.com

...

Not sure, but self-hosting was ( is ) the only way for me to sleep safe.

drinchev··on Off-Facebook Activity
Good point! :) Thanks for sharing that.

> Apache Kafka is an open-source stream-processing software platform developed by LinkedIn and donated to the Apache Software Foundation, written in Scala and Java. [1]

1: https://en.wikipedia.org/wiki/Apache_Kafka

drinchev··on Off-Facebook Activity
Facebook can receive whatever they deserve, but let's clap our hands on their development team. React is what currently puts bread on my table and it seems like it will do so for a long time. I can't think of a single big win from a social network in spending their money for R&D than FB ( look at LinkedIn for example ).
drinchev··on SpaceX Smallsat Rideshare Program
I doubt that all the problems in the world are fixed with money :) I've been to rich companies with crappy websites way too many times.

I assume the company has put the focus on the rockets ( as it should ) instead of the marketing, although they ( probably ) pay enough for developers / QA that can deliver the task right.

drinchev··on No CS Degree – Interviews with self-taught developers
I also have no CS degree, I have a law degree though. I could say that "development" is like lego construction - yeah you can do that with a very specific preparation, but nobody actually stops you from reading the F manual ( RTFM ) and do it on your own.

However I think that people loving the job are better than the ones that were learning for it, so no wonders sites like this exists.

And in any case I wouldn't go to a self-taught doctor, so something will probably change in the future.

drinchev··on Why I'm still using jQuery
Hardest part to get rid of jQuery was the $.ajax function. Happily now, we can all use the fetch API with some extra polyfills, but pretty much that's it.

`el.insertAdjacentElement`, really? Yeah if you carry jQuery thinking with you, you will probably want to translate the code literally and find substitute for everything. No... You can just use to recreate the part of the DOM that needs to be updated and replace it. It's faster to write and easier to read.

Anyway most of the arguments are not considering, vanilla JS + webpack / babel es6 + npm packages. In a world where side-effects are not well accepted anymore using jQuery is nightmare to maintain.

What's this fuzz about btw, I thought this argument was over?

drinchev··on Sketch raises $20M in Series A funding
Yeah these are out in the wild right now, but having some sort of support for those would be what I would be really looking for. The missing link is the problem. Generated HTML/CSS doesn't know anything about current frameworks / naming conventions / atomic CSS, etc.

`text-gray1` means what? Which library am I supposed to use in order to make this stylesheets work? Does it match tachyons or tailwind - no. So I have to add X lines of CSS to my project coming from a tool that I am not able to use once I change a simple class name? Not a good start.

drinchev··on Sketch raises $20M in Series A funding
Checked your video and congrats for your effort. As every other tool so far that does try to make visuals into code ( e.g. Dreamweaver style ) I did not expect your tool to be useful for any company-scale use.

In your tool an anti pattern that I found was that it seems to use inline styles and css class names of sort 'font-normal' 'text-gray1', etc. That's unmaintainable for large code base.

On the other hand having `copy CSS attributes` contextual menu item in Sketch is super productive. I can choose my own class name and whatsoever and still have the exact styles as the designer wanted them to be.

drinchev··on Ask HN: Is jQuery on its way out?
Well my litmus test regarding outdated way of doing stuff is the answer of the question "If I start a new project today, would I use 'x'?". Answer "no" means the technology is fading even for simple use cases.

Example, 'x' and 'No'-answer :

- jQuery / prototypejs / etc...

- Backbone

- CoffeeScript

- Perl, SVN, Java Applets :D

On the other hand you still have 'Yes'-es for some old tech-stack, since it is still acceptable to do a task with old technology. Example, 'x' and 'Yes'-answer :

- Form + POST requests / No javascript

- Pure CSS ( no SCSS, etc... )

- Handlebars, instead of React / Vue / you name it

drinchev··on Sublime Text 3.2 Released
I use webstorm and yeah this doesn’t contradict with having sublime text installed. When I want to read a large file sublime rocks, but for actual meta developing you need to spend time configuring it.

Gladly it’s not like you can’t have them both so there’s not an actual choice problem here. Just use whatever you want for the right job.

drinchev··on Some airlines and regulators ground 737 Max in wake of Ethiopian Airlines crash
TBH at this point everyone should do it, since it will be a nightmare flying on these, until the investigation is over. I can’t imagine how the crew feels when assigned to such a fight in these circumstances.
drinchev··on I lost my domain and everything that goes with it
You might also check other articles about registrars sending to 3rd party companies who pay a lot money to get information about domains that recently expired and being bought by them. I think there was an article about it here on HN not a long time ago.

Every domain that I had expired was immediately bought by a company and this makes it hard

← PreviousPage 2 of 30Next →