HNHacker News
TopNewBestAskShowJobs

koffiezet

654 karma · joined June 21, 2011

submissionscomments
koffiezet··on SMTP protocol basics from scratch in Go: receiving email from Gmail
Also https://github.com/mailhog/MailHog - although it hasn't been updated in a while. But great for testing mail functionality in applications you're developing.
koffiezet··on We don’t use a staging environment
This sounds like an organisational issue, not a technical, and I predict that this simply won't scale organisational-wise. It sounds like they have given no thought about their platform architecture, deploy pipelines, testing strategies, ... It's probably not yet causing issues because they're working in a small team, but rectifying this later will be an absolute pita.

That said, at scale, having a big staging/test/... can be impossible, but then things are split up organisationally, each team managing/service group/... managing their own environments, being responsible for the reliability/stability and availability towards other teams.

Also, with service meshes it has become feasible to actually test in production so you can let select users end up on specific (test) versions of a certain backend service.

koffiezet··on Dagger: a new way to build CI/CD pipelines
Completely off-topic, but k8s actually removes a lot of the vendor lock-in. Imagine having to migrate a k8s based app from AWS to Azure vs a pure AWS-based setup, provisioned with cloudformation. Sure it'll involve some work, but I know what I'd pick. I've personally ran workloads originally intended to be deployed on GKE on on-prem openshift clusters with very few changes, other than indeed the mentioned ingress stuff.

That was also the initial goals of k8s - make it universal so it's adopted as a standard by everyone else to make yourself competitive against the AWS juggernaut. And it worked.

koffiezet··on Generics can make your Go code slower
At runtime maybe (although that's also not 100% true) - but I've seen a big project go from being compiled in 10 minutes in our ci, to hours due to the introduction of large features heavily relying on templates. The fix was installing a k8s cluster to run the Jenkins build jobs distributed on bare metal nodes, this wasn't exactly zero-cost.
koffiezet··on Generics can make your Go code slower
The problem is that a lot of software in the Java world explicitly relies on it not being compiled AOT. Any standard tomcat or jboss/wildfly application for example.
koffiezet··on Modern PHP
I think we live in different worlds, and that's a bit PHP's problem, many of it's devs and users do.

From my pov, manually logging in on a server has been something for emergencies only for a long time now (10y+), and if it's frequently required or even essential to deploy and run an application, this is a sign of bad practices. So the last thing I want to read to deploy some software is "can literally be copied and pasted onto another machine". Maybe you can do that, but you never ever should even have to consider doing this. Where is your versioning, ci/cd (testing, quality gates, automated deploy), how do you roll back in case of a problem? How do you track when new versions were deployed? How do you address patching, runtime differences, active PHP modules and php-level config? What webserver do you use, how does it need to be tuned for your workload? PHP-FPM? Do you expect something specific? Do you rely on .htaccess files? The list goes on and on.

These things are a major hassle at the scale I've had to deploy PHP services. Its best option is containerise them, and then you have a bunch of other challenges due to the process per request runtime design impacting monitoring, metrics, autoscaling, ...

koffiezet··on Modern PHP
> because of the runtime! It's so dead simple to develop and deploy PHP.

As someone who had to deploy PHP applications: hell no. For developers it might be easy, but for admins, the runtime is nowhere near good. Sure if you think deploying your site using scp, already discovered rsync to do this, or even use the cutting edge way of deploying by using a git checkout on the server, you might think it's great. But that's how you take down sites or have service interruption.

The problem is not that it cannot be done right, the problem is that the runtime enables and even promotes such bad practices, and makes doing it properly harder than it should be. And then we don't go into php extensions, performance tuning, profiling, scaling, ...

koffiezet··on Ask HN: Who operates at scale without containers?
I have a client who's pretty massive database is pretty damn critical, not only for revenue but also legal reasons. It is managed by a separate team. All applications however run on k8s (well, actually openshift), the main reason being organizational scaling of development teams. With the current setup in place, increasing the amount of dev teams we'd need to support would be pretty painless. We do however run certain smaller (<200gb) databases in-cluster where performance is less of a focus, which, because of the storage abstractions currently in place could otherwise become a potential bottleneck.
koffiezet··on Hoppscotch: Open-source alternative to Postman
Sorry, but with that attitude, why use curl, and not just netcat or socat? Or just write bash scripts manipulating sockets directly?

I think you underestimate a bit what postman can do. Just a few things: import openapi specs and do pretty complex requests with a few mouse-clicks, supports various auth mechanisms (oauth/jwt/...), allows for some scripting, run mock versions of an API spec, generate request code for various languages and frameworks, and yes, copy a request you created with point&click as a cli curl command.

On top of that, you can easily save and share this in teams.

koffiezet··on Kubernetes Documentary: A Critical Review
As a freelancer focusing on k8s, and who has quite a few clients running OpenShift on-prem or outside of cloud providers, his analysis of RedHat's need for OpenShift shows he does not understand RedHat's biggest customers.

They run OpenShift because they want Kubernetes with it's organisational advantages on-prem, while having the support they're used to. With the exception of Azure, none of the cloud providers can offer this.

RedHat saw this coming, and understood that if k8s became big in the cloud-space, someone needed to address that enterpricy market. If they could get there first, AND at the same time put a second big name behind this new tech giving it more viability, it also gave them more push.

But then again, the rest of the article showed the author understands very little of Kubernetes at all.

koffiezet··on Kubernetes Documentary: A Critical Review
It's not just "abstracting the server". Kubernetes abstracts more than just "a server", it works on a level higher. It does this for storage, networking, compute, services, workloads, scaling, ... and all this is done through a standardised API. This APIforces you to standardise application deployments, making centrally managed logging, monitoring, tracing, ... a breeze. Once you have it working for one application, it'll work for all of them.

And do you need to run this on Amazon, Gcloud, Azure,one of the smaller cloud providers like DigitalOcean or locally on Kind/k3s? It'll require very little work to get them working on any of these - if any. Cloud specific services and persistent storage will be the main issues, but that's something you can't really get around.

Now is it perfect? Absolutely not, as with any tech, there will always be problems and bottlenecks. But it allows development to scale, not just the workloads, and the skills required are transferable, which makes it a much easier sell.

koffiezet··on Don't forget Microsoft
SAP?
koffiezet··on Reasons Kubernetes is so complex
Well, I didn't claim it was impossible, I only claimed I wouldn't want to pay for the engineering that would go into enabling this when building that from scratch. But there are of course alternatives to k8s which also enable this.
koffiezet··on Reasons Kubernetes is so complex
Yes there are other solutions out-there that have been pre-engineered, but he was talking about VM's and apps and rebooting them. Doesn't sound like instance groups to me.
koffiezet··on Reasons Kubernetes is so complex
I was talking about doing this on non-k8s platforms :)
koffiezet··on Reasons Kubernetes is so complex
K8s makes small-scale hard, but large-scale easy. So no, for a 10 user app you probably won't need it, and would make your life a lot harder.

But one of the things many people don't grasp is that scale comes in a few forms. The obvious everyone thinks about is the millions of users thing, but from what I've seen, that's not the most important-one that k8s enables - it's the organisational thing. Enabling self-servicing for a dozen+ dev-teams, having to manage 20+ totally different applications or just a microservice platform?

That's where it becomes more practical to think about Kubernetes, because it forces the applications (and everybody involved) to streamline things, and you have to treat it as cattle, not pets. Metrics, logging, monitoring, failover, zero-downtime upgrades, scaling, managing secrets, network policies, auditing and security, platform upgrades, even the "replace & scrap" kind become WAY easier to manage by a very small team of people if they know what they're doing (that's another subject though).

koffiezet··on Reasons Kubernetes is so complex
Can you do that without knowing what apps are running on them? Your entire platform say "do a rolling update" and don't look back?

I wouldn't want to have paid for the engineering that went into that if you could actually do that.

koffiezet··on Is the madness ever going to end?
Fully agree. I have a background in C/C++ and a bunch of other languages, I'm probably in a better position to write native apps, and am no Electron fan, but I never got into native GUI's for a reason. Certainly if they have to be portable, it's an absolute mess. I already did throw together basic VueJS web apps for management interfaces for another projects, and now I need a similar interface, but with some OS-level access. My choice right now is not between a native app or an electron (or something similar) app, it's between having an actual viable project/product or having nothing at all.

I can't afford to waste time and money on native apps for multiple platforms. And I know that once my thing would bring in money, I could easily find someone not too expensive to take over the work on that UI.

Native apps cost a LOT more money, not to mention organisational overhead to bring feature parity to all. Bringing something native to 4 platforms is nowhere near an x4 cost, optimistically it would be more like x8.

koffiezet··on It is difficult for the average person to conceive of how useless NFTs are
> the possession of which is easily cryptographically verifiable

Too bad for NFTs that "possession" is a legal problem, not a technological-one. If a court and government doesn't recognise that cryptographic verification, you're out of luck.

koffiezet··on Don't start with microservices – monoliths are your friend
Many of these points you're mentioning is exactly why k8s was developed. Yes it makes deploying simple applications unnecessary hard, but it make deploying more complicated applications WAY more manageable.

So in the k8s world:

- auth: service meshes, network policies, ...

- monitoring: tons of tooling there to streamline that

- deploy: this at scale is trickier than you'd think, many seem to assume k8s on it's own here is the magic dust they need. But GitOps with ArgoCD + helm has worked pretty well at scale in my experience.

- Security is a CI problem, and you have that with every single language, not just Go. See Log4j.

Kubernetes is my bread & butter, but I do realise this has way too much overhead for small applications. However, once you reach a certain scale, it solves many of the really really hard problems by streamlining how you look at applications from an infrastructure and deployment side of things. But yes - you need dedicated people who understand k8s and know what the hell they're doing - and that's in my experience a challenge on it's own.

Let's also dispel a myth that k8s is only suitable for microservices. I have clients that are running completely separate monolith applications on k8s, but enough of those that managing them 'the old way' became very challenging, and moving these to k8s in the end simplified thing. But getting there was a very painful process.

koffiezet··on Go Replaces Interface{} with 'Any'
I agree with the parent though, Go code is super-readable and accessible. I've coded actual useful stuff in Java, C, C++, Pascal, Python, PHP, Pascal, Basic, (Jenkins) Groovy, Typescript, Javascript - and am probably forgetting some.

I also dabbled around in Rust and a bunch of other languages, but I wouldn't call that experience, although when it comes down to the initial accessibility and impressions, in this context, that is relevant I think. Go was hands down the most readable and accessible of the bunch, which probably has some roots in having a C/C++ background, and it being a pretty simple language.

Dev-env wise, it used to be a mess with the GOPATH etc, but that has mostly been resolved. And once past that, it was easily the language I picked up the quickest. It took me 2 or 3 days to actually write something useful. I've jumped head-first into codebases of large projects without even thinking about it, which I would have been very hesitant about if they had been written in another language. I've had to do that plenty for C++ and Java projects, but that always took some convincing of myself, and was never a pleasant experience.

koffiezet··on The web is fucked
Sounds like he remembers an over romanticised version of the web. if you would really remember how the old web worked or ever used Altavista or other early search-engines to look for stuff, you'd realise the web is a LOT more accessible today, with a lot more information available. Yes I met new, and kept in touch with people through forums and IRC, but that has just shifted to other places online. Maybe less accessible to people from my generation or older, but this is still there. Now it's Discord, Slack, Tik-Tok, Instagram, Twitch, Snapchat, ... all run by companies, but offering services that are WAY more accessible. I remember explaining non-techie friends how to get on IRC in the late mid/late '90s and early 2000's, which was a mess.

Yes it's all commercialised, but that's a 2-way street. It costs money to run infrastructure, the web has boomed. You're not talking about a couple hundred users on a forum, or a few thousand IRC users on an irc node ran by some volunteer who in exchange for being an ircop or forum admin was prepared to swallow the cost, or was ran by some guy working at or owning a small ISP.

With scale comes money. Even late-stage forums were full of ads, just to cover the hosting cost. And this was not a sudden change, this was an evolution, driven by demand.

koffiezet··on What desktop Linux needs to succeed in the mainstream
I used linux on the desktop full-time until 20 years ago, and even back-then it was already going to be "year of the linux desktop". It's simply never going to get there, and I'm fine with that.
koffiezet··on Go does not need a Java-style GC
Well, you are talking about java applications...
koffiezet··on NFT misconception: JPEG aren't stored on the Blockchain
But you get a baseball card that's pretty hard to perfectly duplicate, not a link to a digital picture of a baseball card, which can be copied at virtually zero-cost, and where you have zero control over the hosting of that picture, and can be replaced at any time.

What's the point of 'owning' a digital baseball card if anyone can download it and store it on their PC? There's only one Mona Lisa, it only hangs in the Louvre, you can't just have an exact copy of it at zero cost.

It's make-belief ownership. The only viable application I've seen is digital licensing, for non-free software or digital assets. This can work in a closed-garden system, like in-game assets, software licensing, ... where you don't have control over the environment you're in, but cannot work on an open internet. But anyway, the gas-cost on eth is WAY too high ($70-ish to mint?) for this to be actually used for these applications, and if you're in a walled-garden anyway, who needs decentralisation?

koffiezet··on HashiCorp – S1
It wasn't until they launched Vault that I saw where they were going commercially. Their other tools were excellent, but I wouldn't be surprised if Vault would be their #1 cash-cow, it's a massively useful tool in environments that require a support umbrella and love paying for expensive licensing.
koffiezet··on HashiCorp – S1
2100 customers seems low? I've personally worked for 3 companies in the last 3 years who had Vault Enterprise licenses, and in the grand scheme of things, these are pretty small companies in a single, pretty small country (Belgium)
koffiezet··on OnlyFans drops planned porn ban
https://www.msnbc.com/opinion/onlyfans-banning-explicit-cont...

https://www.newsweek.com/content-creators-react-new-onlyfans...

https://www.wired.co.uk/article/onlyfans-ban-porn-exodus-cry

And other stuff, more related to pornhub: https://www.vice.com/en/article/wxqy4z/petition-shut-down-po...

koffiezet··on OnlyFans drops planned porn ban
People here don't seem to realise all this was from pressure from fundamentalist christian groups like Exodus Cry, which managed to collect 2 million signatures pretending to want to protect sex workers and be anti-trafficking.

Their end-goal however is a lot simpler: get rid of all porn.

koffiezet··on OnlyFans drops planned porn ban
It was mainly due to pressure from their payment providers, who in turn were pressured by fundamentalist christian groups like exodus cry under the mantle of "protecting sex workers" and "anti trafficking", but their actual end-goal is banning porn completely.

They started out with pornhub, which as a direct result of that deleted a ton of their content. OF seeing how these groups could effectively pressure the biggest fish in the porn industry through the creditcard companies, they found themselves between a rock and a hard place.

← PreviousPage 2 of 15Next →