HNHacker News
TopNewBestAskShowJobs

barumi

771 karma · joined September 16, 2020

submissionscomments
barumi··on Why not use GraphQL?
> I see GraphQL and other tools created by FAANG companies being used all the time by 1-3 person teams.

GraphQL is touted as a technology which saves developer time by avoiding the need to develop REST APIs, and instead just expose your database to the world and let your frontend just get whatever data it needs.

No wonder you're seeing small teams using it. It's not because of FANG, not because of cargo cult development, not because of incompetente. It's because small front-end teams don't spend their scarce resources on areas where return of investment is limited.

barumi··on Facebook Shuts Down ‘Stop the Steal’ Group
This is precisely the part that you fail to understand: some people prioritize not dragging the US into another war over having to endure the media overblowing tweets from a moron.

Those who are able and willing to endure the propaganda barrage to get their low-taxes, not-war, pro-individual freedom policies upheld and enacted look at the bipartisan system and see that they have two choices: a candidate which is behind escalation of wars and political assassinations in foreign soil, and a candidate that brought troops home and deescalated relationships with historical enemies such as the North Korea dictatorship.

Between those choices, if you value policy over tabloid propaganda and you are already quite used to see a candidate repeatedly portrayed in bad light, isn't the choice pretty clear to you?

barumi··on Yale faculty sign open letter condemning ‘inhumane’ treatment students pandemic
Let's not be childish here. Being asked to skip a party or preserve a personal space of 6 feet between any random person you may cross paths with is not a human rights violation. Such whiny, self-serving and shortsighted remarks don't help any argument regarding how the covid19 is being handled. We should simply grow up and face the facts that enduring a momentary inconvenience is enough to stop people from dying.
barumi··on Yale faculty sign open letter condemning ‘inhumane’ treatment students pandemic
Having to restrain yourself and your whimsical desire to attend a party is not "social isolation".

It boggles the mind how you're trying so hard to make a mountain out of a molehill while at the same time downplaying human rights violations targeting children.

barumi··on Jack Ma fell to earth and took Ant's mega IPO with him
> Replace “doesn’t make sense” with “isn’t competitive.”

Is your correction supposed to be an improvement? I mean, the statement "If exceptionalism is a fiction, freedom of speech isn't competitive" makes even less sense. It makes no sense at all to talk about freedom of speech incurring a cost. There is absolutely zero cost in not persecuting anyone for having a different opinion.

barumi··on Jack Ma fell to earth and took Ant's mega IPO with him
> If exceptionalism is a fiction, freedom of speech doesn’t make sense: there are no special thoughts which, if extinguished, are unlikely to recur for a long, long time.

This comment makes no sense at all. The threat which freedom of speech is designed to protect us from is not attacks on exceptionalism, but oppression and control by the hands of a dictatorship. It matters nothing if you feel you're exceptional or you just happen to disagree with anyone in power over any subject, be it critical or irrelevant. What matters is that no one should have the right to deny you the ability to freely express your ideas, because that would represent control over all aspects of your life and existence.

barumi··on Gron – Make JSON Greppable
> In simpler words, as a user: The jq query language [1] is obtuse, obscure, incredibly hard to learn if you need it for quick one liners once in a blue moon.

I don't agree that jq's query language is obtuse. It's a DSL for JSON document trees, and it's largely unfamiliar, but so is xpath or any other DOM transformation language.

The same thing is said about regex.

My take is that "it's obtuse" just translates to "I'm not familiar with it and I never bothered to get acquainted with it".

One thing that we can agree though is that jq's docs are awful at providing a decent tutorial for new users to ramp up.

barumi··on Gron – Make JSON Greppable
> Can jq do what gron does?

It really depends on what you want to do, and thus what think gron does.

If all you want to do is search for properties with a given value then yes, jq does that very well.

Unlike gron, jq even allows users to output search results as valid json docs. Hell, jq allows users to transform entire JSON docs.

However, if all you want to do is expand the JSON path at each symbol then I don't know if jq supports that usecase. But then again, why would anyone want to do that?

barumi··on Facebook Shuts Down ‘Stop the Steal’ Group
>>Most people aren't in Antifa or BLM, and most people probably don't think disbanding the police entirely seems like a good idea,

But that's not what they argue, is it?

I've seen calls to refund the police as a slogan that points out that it's far more effective to use resources on social policies that stop social problems from happening than wasting those resources mitigating avoidable problems. One of the textbook examples is homelessness, whose root cause is lack of a social safety net that helps people with mental problems cope with their condition instead of throwing them in jail. The other one is drug abuse, where it's far more cost effective to treat addictions as diseases than to throw drug addicts in jail.

The only instances I ever saw of calls being made to disband police departments were due to rampant systemic corruption problems affecting some police departments which are too entrenched to salvage, and how the US has already a long history of tackling that type of problem by replacing the whole police department with a brand new one.

barumi··on Facebook Shuts Down ‘Stop the Steal’ Group
I took some time to try to understand why so many americans happened to vote for Trump and I was left with the impression that the problem lies more with disenfranchisement than with vilifying and even dehumanizing scapegoats.

Beyond the usual conservative tropes of less state and stopping attacks on personal freedoms, I've seen Trump voters mention deescalation of wars and international tension and lower taxes. I've also seen Trump supporters criticizing what they perceive as lawlessness and pending threat of state-sponsored oppression, such as the demands to erode law enforcement. Trump supporters were also quick to point out that both Obama and Biden were behind escalation of targeted assassinations on foreign soil and also increasing attacks on privacy and personal rights doemstically.

More importantly, I've seen Trump supporters state they voted for Trump in spite of his despicable personality and failings, because they see in him someone who enacts the policies they want enacted although he comes off as kind of a loudmouth moron. Yet, they also state that the public persona is also very skewed due to all the media manipulation and blatant propaganda that is targeted at him.

barumi··on Facebook Shuts Down ‘Stop the Steal’ Group
> If you look closely you'll find that group is trying to draw attention to election irregularities.

Have they actually pointed any irregularity?

I see a lot of Trump fanatics parroting blatantly false and baseless claims involving all sorts of convenient irregularities, but so far I've seen zero actual evidence supporting any of the claims.

If there is indeed a massive wave of election fraud then where's the evidence?

barumi··on Facebook Shuts Down ‘Stop the Steal’ Group
> I'm not sure who you’ve been talking to, but I haven’t seen any “democratic operatives” claiming that the Republicans committed fraud or delegitimizing the results.

https://en.wikipedia.org/wiki/Brooks_Brothers_riot

barumi··on Facebook Shuts Down ‘Stop the Steal’ Group
> Let be real here. Facebook wanted to shut it down and then looked for excuses.

Does anyone has any problem understanding the reason why groups actively advocating for the subversion of democracy through violent means are obviously and naturally shut down in a free and democratic society?

barumi··on What you need to know about upcoming Docker Hub rate limiting
> It looks like you don't,

I'm sorry to say but your insistence of speaking out of a position of blisful ignorance and your refusal to open your eyes does not change the world around you.

> but I've always seen Docker Hub as...well...a hub, not just any ol' registry.

No one with the faintest cursory knowledge of Docker would ever claim that Docker Hub is anything other than a docker registry.

Docker itself advertises Docker Hub as a service "to create, manage, and deliver your teams' container applications." Docker itself describes Docker Hub as a "cloud-based application registry and development team collaboration services." That's their own official marketing slogan, taken straight out of their "Why Docker" page.

And even that you managed to miss and failed to understand.

> It's where people publish final builds

It really isn't. That's not how containers work at all, and that's not how Docker promotes the service, and that's not how anyone uses it. Nothing in your comments is even remotely compatible with basic notions of CICD.

Apparently you're so out of touch with containerization and CICD and devops workflow that you're even entirely ignorant of basic concepts like what a latest tag is supposed to represent and how tags are used to update apps.

The fact that you try to pass off that absurd assertion in such absolute terms makes it quite clear that you have absolutely no idea about what you're talking about.

Hell, your claim can only possibly be made by someone who never even registered a user account in Docker Hub. Please refrain from speaking about stuff you know nothing about.

> If you're using it for basically passing your own images between CI workers or whatever other workload that requires you to constantly be pushing and pulling

This mindless statement just makes it clear as water that you have no idea of how containers are used. At all. And yet here you are degrading the signal/noise ratio by blabbering about stuff you know nothing about.

barumi··on Amazon Launches New RabbitMQ Message Broker Service
I really doubt you have any real world experience with AWS if you try to sell it as a less complex alternative to anything,really. AWS is perhaps the most complex and arcane service provider ever, and is progressively getting worse by the way the service keeps growing and changing.

And no, learning a specific AWS service is not a solid career investment. Tell that to anyone who tried to learn CloudFormation and then SAM and now forget everything because AWS pushes you to use CDK.

barumi··on Amazon Launches New RabbitMQ Message Broker Service
> If you're not using AWS you're not fully leveraging your software team, because that means you've got people spending time building and supporting these sorts of internal systems.

This is simply not true at all, and flies in the face of real world usage.

The only concrete and objective selling point of AWS is it's global coverage of data centers, and the infrastructure they have in place aimed at delivering reliable global-scale web services.

The problem is that the companies who actually operate at such a scale and with such tight operational requirements can be counted with your fingers. That count then drops down to a fraction once you start to do a cost/benefit analysis.

The rest of the world is quite honestly engaged in cargo cult software development.

And no, doing AWS is not simpler nor more efficient. You might launch an EC2 instance with a couple of clicks, but to navigate a service designed with global scale and multiple levels of redundancy across the same service and with tight integration and dependency across half a dozen AWS offers which may or may not be redundant or competing... No, that is not simple or allows for any type of time efficiency.

Hell, with AWS you do not learn how to manage or operate Infrastructure. With AWS you learn the AWS dashboard,and learn pavlov reactions to which button you press if you hear an alarm. You never fully grasp the impact or the reaction of pressing a button, and you have absolutely no idea what impact that click will have on your monthly bill.

In contrast, if you need to run microservices chatting through a message broker then your system on OVH or Hetzner or any other barebones system will be comprised of a bunch of nodes where one of them runs RabbitMQ and everyone else points to the RabbitMQ node. You can get everything running from scratch on a cluster managed by Docker Swarm in about 15 to 20 minutes. In the end you have a far simpler service running for a fraction of the cost and ina far more manageable environment.

AWS is resume-driven development fueled by cargo cult development.

barumi··on Clean Code – Notes
> I also noticed, that a lot people talking about the principles of "Clean Code" (either PRO or CON) did NOT even read the book (entirely) nor hat other sources of wisdom ;)

In your opinion, why do you feel any of those points you made are relevant or have any substance? I mean, the importance of Clean Code is to improve your output by following a few guidelines, not be pedantic and use the book as bible to bash others in bike shedding discussions.

barumi··on What you need to know about upcoming Docker Hub rate limiting
> The only thing that is being limited are pulls from the Docker Hub.

Yes.

> If you're doing integration tests for a bunch of microsevices, you might have some 20 upstream images that you need to pull.

Yes.

> Those can stay in your cache until they are updated (which is rare and predictable, because you're pinning versions, right?).

Not necessarily. You dockerize an app prior to running non-unit tests tests, and that image needs to be stored by a container registration service.

With this change, Docker Hub's ceases to be that service.

> You do your building and testing and all that entirely on your "own" infrastructure and then you push once test succeds.

Nope, the point is that Docker Hub ceases to be relevant as a container registry. As long as you start to do all your work outside of Docker Hub, you won't need Docker Hub to do any of the work. You just get your base images from where you store your own container images and suddenly Docker Hub stops playing any role in your workflow, thus losing al relevance.

barumi··on What you need to know about upcoming Docker Hub rate limiting
> If your CI is doing more than 100

A limit of 100 pulls per 6 hours averages to a pull each 3 minutes. Each stage of a CICD pipeline uses more than 1 container image, and it's customary to have CICD stages build and pull from previous stages, such as integration tests,performance tests, canary tests, etc.

I would dare say that you're doing something terribly wrong if you don't need to pull images often, because that largely tells you're doing barely any tests or deployments.

barumi··on What you need to know about upcoming Docker Hub rate limiting
> Unless I'm mistaken, 100 pulls per 6 hours per IP is a lot

It really depends on your usecase. I mean, each CICD stage can involve building a brand new image and running a couple of them, sometimes more. 100 pulls per 6 hours corresponds to a constant rate of 3 min between pulls, which would require between 15 to 20 minutes for each commit.

Anyway, the primary practical implications of this sort of change is a) rate limiting suddenly becomes a requirement, b) we can no longer count on Docker Hub to provide a reliable service, thus we plan accordingly.

barumi··on What you need to know about upcoming Docker Hub rate limiting
> Well, the throttling seems to be on anonymous and free docker hub accounts for now. So you do have the option of paid tiers.

We don't need to resort to paid services. This is all about convenience.

As I've said, services like GitLab already provide container registry services, and we are also free to operate our own custom container registry services. Docker Hub is only used to source reference images such as Ubuntu, postgres, rabbitmq, traefik, etc etc etc. We can simply point to a different provider to continue accessing those. Even if these projects continue to use Docker Hub then if we stick with stable releases then we can simply point to a different container registry service, even one managed by us.

The main point is that Docker Hub ceased to be a reliable provider. Thus, we plan accordingly.

barumi··on What you need to know about upcoming Docker Hub rate limiting
> It would be great if some HNers on the anonymous and free tiers could go through the process and report on how throttling affected them in detail.

In my POV the first fundamental change that this caused was to cease considering docker hub as reliable infrastructure, and therefore started to look for solutions to reliably source container images. For instance, GitLab already provides its own container registry, and thus it makes sense to simply source images from them than from tertiary sources like Docker Hub.

Another impact that this has is that I'm looking into the need to operate a custom container registry for each Kubernetes cluster. It wouldn't be nice if an application running on Kubernetes or Docket Swarm risked downtime just because you happened to hit one of Docker Hub's rate limits.

barumi··on eBay removing Raspberry Pi listings as they “encourage infringement”
> I will bet you any amount of money that the people who need to physically work, and therefore trivially the ones most in need of good masks, aren't the ones buying them at free-market rates.

As the covid19 pandemic showed, they surely are not the ones buying them all all at artificially restricted prices either, because the jackass with the shopping carts and the desperate need to hoard all types of basics decided to clean up the inventory.

> Econ 101 doesn't talk much about the impact of wealth inequality on free-market mechanisms, for some reason.

As much as it might pain you, basic economy principles are a kin to natural laws, in the sense that even if you try your hardest to pretend they don't exist... They are always there.

Additionally, one of the main errors you're making is conflating how economies work with your personal opinion on how you preferred things to happen without paying any attention to unintended consequences, let alone basic relationships between cause and effect.

barumi··on eBay removing Raspberry Pi listings as they “encourage infringement”
> It is wrong to substantially rise the price of the health-related product if you suddenly see there is a big need for it. It is non-ethical and totally wrong!

Wrong why? I mean, in a time of scarcity how do you ensure that only those who need it the most are able to self-moderate their purchases?

I should point out the fact that artificially restricted selling prices lead to shortages really quick, as people tend to binge buy in those circumstances thus depleting supplies. It happens with bottled water in hurricanes, it happened with toilet paper in the first covid19 lockdowns, and it sure as hell happened with face masks as well.

barumi··on eBay removing Raspberry Pi listings as they “encourage infringement”
You're talking about supply shortages as if it was a permanent thing.

If after all these months you're still seeing a shortage in face masks then I regret to inform you that your market is not free, nor is your economy operating accordig to basic capitalism principles.

barumi··on eBay removing Raspberry Pi listings as they “encourage infringement”
> The "free market" is literally designed to make that not happen, if someone else with more money is out there and willing to pay more money than the hospitals.

The free market is not designed at all to do anything, let alone acts with a bolted-on moral load.

What the free market allows is that economic actors like the hospital are free to purchase their supplies from anyone at all from anywhere, and allows anyone who has any interest in producing said supplies to present their offering. That's it.

I live in a country where, when the demand for N95 masks started, had a few unrelated corporations quickly enter the market with their own product. I'm talking about companies ranging from office supplies to coffee makers. Hell, even beer producers quickly entered the hand sanitizer market. Consequently prices dropped drastically and not only is there no shortage of protective equipment but it's also affordable.

That's what happens in a free market.

How come you're talking about this sort of stuff not happening in your country, and still you talk about a free market?

barumi··on Packaging Kubernetes for Debian
> However, getting to that stage, unless you're packaging a collection of plain files with very simple dependencies, is the hard part.

What do you mean plain files with simple dependencies? A deb file is just a zip that stores metadata and your artifacts exactly where you want then to be in the directory structure you see fit. You specify the packages you depend on in the meditada, zip them up, and that's it.

If you need something fancy you can add shell scripts that are triggered in parts of the installation lifecycle, but those are far from being mandatory.

Hell, if you prefer to follow the lazy way out you can even get build systems to generate your deb files for you. Cmake handles this out-of-the-box.

> Ignoring the weird scaffolding you need just to package a static "hello world" binary

What? That "weird scaffolding" you're referring to is literally the directory you zip with the artifacts in their destination and the metadata! Is it too weird for you to deploy libraries in /use/local/lib before you package them? What are you talking about? You build your static "hello world" binary, you place them in the destination folder, you fill in the metadata to specify dependencies and stuff like your name and email address, and you proceed to zip up the package. Done.

> (...) found like 5 different ways documented on the debian wiki

No you really didn't. At most you found references to 5 different tools that help you do the same exact thing.

Here's a link to a process you tried to described as undecryptable:

https://ubuntuforums.org/showthread.php?t=910717

barumi··on Packaging Kubernetes for Debian
> The packaging nightmare is why I left Debian and Ubuntu for Arch.

I find this comment odd and highly dubious. There is absolutely nothing wrong with Debian's packaging system. At most, some individual packages could have been packaged differently, which is arguably a matter of personal taste. Normally, everything just works, and works very well.

Either you shed some additional light on your personal struggles with Debian's packaging, which you did not do at all, or I have to scratch off your baseless assertion as a kin of someone on the internet shouting at clouds.

barumi··on What Happened to XPath?
This baseless assertion is simply wrong. Plugins are nice to have, but the bulk of their use is to customize default installs.
barumi··on I Violated a Code of Conduct
> No, CoCs are meant to clearly state that bigotry is unacceptable.

Oh really? This discussion is about someone that was persecuted and punished for violating a CoC. Do you see any bigotry involved in this story?

← PreviousPage 3 of 11Next →