1,107 karma · joined Mar 22, 2019 (7y ago) · 450 submissions
comment 5y ago · link · parent
The first thing I did was use curl to check if it's a client or server problem.
Then I looked at the code and immediately noticed the unnecessary flush call, the unnecessary loading of the whole file in memory and the unnecessary fs.stats.
comment 5y ago · link · parent
I think that in many (most?) countries nowadays, marriage is already no more than just a legal status that offers those practical points, so I am not sure if anything needs to change.
You don't have to get a ceremony/ring/party, go at the church or whatever your culture/religion associates with the act of getting married.
You can just sign the contract privately, which makes you legally married.
Same for divorce, I believe it only gets complicated when you fight about children, money and assets, otherwise you can both just decide to stop the contract.
comment 5y ago · link · parent
That said, given the current trends of our industry, I'm afraid that we will get connected microwaves that leaks private data and publishes to TikTok (or whatever) sooner than this actually useful feature.
comment 5y ago · link · parent
If you have a too-huge PR that can be subdivided, it almost always means you have multiple units of work (feature/fixes) into one branch/PR.
The reason I agree with the article and use squash is that it allows us to have a different history between master and the local branches. Developers can freely subdivide each feature into how many commits are useful to their mindset and workflow, while the master branch will remain clean.
In my experience, the individual scope of each commit on the master branch is almost always correlated to the scope of one code review, and thus one PR.
comment 5y ago · link · parent
Status is an information you display, but it's not the actual data. Status fields that contains multiple information and features in a single value creates confusing and complex logic for no good reason.
Booleans are way better to store data, and each one can bear a single different concern.
comment 5y ago · link · parent
Complaining about the ridiculously small amounts of resources currently invested in space exploration is really short minded.
comment 5y ago · link · parent
Go has a LOT of boilerplate. And that is why I love it. No magic. No implicit behavior. No weird stuff that will bite me if I don't know that something in a completely unrelated file is changing the behavior of my code.
It allows me to write high quality code and care about all the millions of details I should be thinking about.
Yes, 50% of go code is about handling specific cases and errors. And that's a good thing, because unexpected cases and error handling is 50% of the work that a developer should be doing. But often it is just neglected or difficult to spot in other languages (until it bites you).
comment 5y ago · link · parent
The management was terrible in so many ways, it would be too long to explain here.
At first it was nice to spend my days on private stuff (I was "working" remotely because Covid), but after a while I was bored and it was hard to continue this way.
I highly suspect that a large amount of the employees were in the same situation, starting with my direct manager.
comment 5y ago · link · parent
comment 5y ago · link · parent
That is totally wrong.
Github's plans starts at $0, $4 and $21 dollars per month.
Gitlab's plans start at $0 and $21 per month.
Bitbucket's plans starts at $0, $3 and $6 per month.
So yes, a plan starting at $80 is expensive.
I don't need any more feature than those services, I just want to support the right company and don't want to be one someone else's domain.
I've developed multi-tenant/multi-domain myself on saas applications and it's not a big deal, so I find it surprising that no company provides this. 20 years ago this kind of thing was already possible with saas-hosted applications (PHPBB forums for example...)
And I'm not a company, It's for an open source project.
290.
Ask HN: Fully-managed GitHub alternative on a custom domain?
6 points · by Seb-C · 5y ago · 10 comments
comment 5y ago · link · parent
Sounds like you have an organizational problem, not a programming language problem.
I would expect developers to provide you with an actual application or at least automated way to build it, and you to deploy and handle the given application.
Instead you have developers providing source code and you trying to understand how to make it work.
There are plenty of tools, methods and ways to get a repeatable build process, including docker, CI, bash scripts...
Even a README file can contain a valid and repeatable build process.
Even a process called 'ask to Robert how it works' would provide you with the information you need
It's hard to imagine that this is not scripted or at least documented somewhere.
comment 5y ago · link · parent
I would certainly have preferred to stick with a non-blink browser, but Mozilla won't stop remove features I like and making harmful changes.
How many pointless UX revamps have they done in the last decade? Meanwhile everyone is still waiting for the many unkept promises, including mobile extensions.
comment 5y ago · link · parent
Now the design was far from easy, and keeping things reasonably simple without abstracting the SQL part was my biggest challenge. And this would not have been possible without the template-string tagging feature of modern JS, so it wouldn't be doable for many other languages.
comment 5y ago · link · parent
I don't know about other European countries, but I often heard this argument in France, and it is bullshit.
It's free but overall about 60~70% of your work value/cost for employer is taxed.
It's free, but when you need to see an ophthalmologist (for example), you are either lucky to get an appointment next year, or have to pay 150 Euros for a non-affiliated doctor.
Its free, but so completely broken that we have to pay by ourselves what is called a "mutuelle", which is basically an insurance that covers partially what is not paid by the national health system. And this thing became mandatory a few years ago.
It's free but so inefficient and corrupted that when you subscribe you have to wait 6 months and re-do the procedure 3 times because they lost your files somewhere in the bureaucratic black-hole.
If this is the definition of "free" in Europe, I'd rather get both my money and the real freedom to decide how to use it.
comment 5y ago · link · parent
I'm convinced that it's possible to build a better search engine than Google by using community-influenced results, rather than try to do magic.
I'd definitely pay for a search engine where we can collectively downvote to hell any SEO spam. That would be the only way to incentivize sites to provide actual quality rather than cheating the algorithms.