HNHacker News
TopNewBestAskShowJobs

throwaway77384

642 karma · joined March 3, 2017

submissionscomments
throwaway77384··on FP techniques that will help you write better JavaScript
Same, but I can't shake the feeling that I am missing something, as some people are really insistent that FP is the _only_ way forward. I've had cursory glances at the ideas of FP and find it very difficult to understand (probably due to many years of OOP style imperative programming). Now I wonder whether I should have just started with FP and ignored everything else.

Is the idea behind FP that it's just much less likely for your code to be incorrect? Because to me it looks more like the sort of thing code-golfers love, because it allows for cramming even more implied functionality into ever-tighter, ever-harder-to-read spaces. Which, I suppose, is fine if everyone is on the same level, but I'm not sure how I'd apply something like this in a larger organisation / code base.

Again, I am speaking from ignorance and openly displaying this ignorance intentionally so that I may be proven wrong. I am inviting this, as I'd like to know more about FP.

throwaway77384··on Show HN: Lockless Ringbuffer Built with Go Generics
How did you find learning Rust? You hear a lot about how steep the learning curve is.

How suitable is it for web backends?

I am just dying to get started with it.

throwaway77384··on Binance kept weak money-laundering checks even as it promised tougher compliance
> Terrorists love crypto.

Please keep such low-effort hyperbole off HN. It's just so unnecessary and contributes so little.

[some group you dislike uses thing everyone has access to] is just not a useful statement.

What do we do now, ban all crypto currencies to force 'Terrorists' back into using cash?

Has terrorism gone up since cryptocurrencies came around? Did Bin Laden have access to crypto?

I'm not even a big fan of cryptocurrencies and think that the environmental impact of BTC is a heck of a lot worse than 'terrorists' possibly, potentially using it.

But I just don't understand what you were trying to achieve by throwing such an incendiary statement into the discussion with so little evidence to back it up.

throwaway77384··on Show HN: Lockless Ringbuffer Built with Go Generics
Thank you, much appreciated!
throwaway77384··on Show HN: Lockless Ringbuffer Built with Go Generics
I certainly am, yes. Spent about 12 years in the wrong career and then realised my love for programming (after a lifelong love of computers. Not sure how I missed that...)

I started with Python (and Kivy). Then went on to Go (which felt like a revelation over Python. For me, anyway). Along with that came JS, HTML, CSS and React.

Because of Go, I had become prejudiced against interpreted, dynamically typed languages. But over time I actually came to quite like JS. If wielded correctly, it can be very quick to get stuff working in JS and now I think either kinds of languages have their merits. Though, admittedly, React still eludes me. It feels incredibly confusing to me.

My next port of call will probably be something like Rust, but I have a product that takes up all of my time, so it's a bit tricky to find the time to catch up on my CS learning.

There is probably nothing that can replace a full-on university education in CS, but I'm not sure when or where I'd fit that into my life (I have a degree and thus know what it takes). I really hope to be able to do as much of that education on my own, however.

Any tips or hints welcome!

throwaway77384··on Show HN: Lockless Ringbuffer Built with Go Generics
Thank you for the information. Much appreciated!
throwaway77384··on Show HN: Lockless Ringbuffer Built with Go Generics
Please excuse my ignorance, but here goes:

Been a Go dev for almost 3 years now. I am basically shitting myself over the prospect of all the Go code out there turning from something I understand, to something riddled with generics, of which I have no concept whatsoever. I've built some pretty complex stuff entirely without them and never felt there was anything missing, but maybe I just never knew what I was missing.

Now, I also don't know what a ring buffer is, so perhaps this is the perfect time for someone very generous to explain to me what a ring buffer is, why generics are what enabled this and how on earth it's multiple times faster than channels, which have been a first-class primitive in Go since the beginning (and should therefore have had the living daylights optimised out of them...)

Many thankings :)

throwaway77384··on Self-Hosting Dozens of Web Applications and Services on a Single Server
+1 for Dokku here. Been running 10 containers on the second-cheapest Hetzner instance available for years now. Never had any issues.

My only, tiny gripe would be excessive space consumption on the somewhat small 20gb SSDs you get with Hetzner VPSs.

throwaway77384··on Tor Snowflake Proxy
What would one use when one is being censored in any serious way?
throwaway77384··on Coding Is a Trap. Get Out
Save yourself the click. This is the most pointless blog post I've ever seen. I should have known better, to be honest.

Clickbaity title followed by no substance. The author asks a bunch of edgy questions like "wHaT wiLl hApPen wHeN Ai cOmEs to gET youR jOb?", without providing any insight into when or how this might happen, how likely it really is...etc

Then it's capped off with this insulting line at the end:

"There are a few simple yet elusive ways to prevent being trapped. But you can figure them out on your own, you problem solver, you!"

I am astounded by the author's ability to not have any useful information in this entirely vacuous post.

throwaway77384··on Native Rust Support on Cloudflare Workers
Random comment, but hoping someone may have an answer for me:

Has anyone here managed to deploy multiple workers sites as part of one worker?

Using KV storage, it should technically be possible to have one worker addressing multiple domains, so then, if you wanted to deploy multiple websites using one worker to serve static assets to multiple domains, could that be doable?

I am only mentioning this, as it still doesn't seem possible to just buy additional workers. You are still limited to 30 sites on workers sites. Which seems quite prohibitive, if you wanted to build a bunch of sites for clients for example.

throwaway77384··on Native Rust Support on Cloudflare Workers
Did you ever run into a scenario where you had to replace a single file specifically?

I have found that to be quite tricky. There is some data for a site I'd like to be able to update dynamically, without redeploying the whole site (as that may contain draft pages / content).

How do you handle this scenario?

throwaway77384··on Show HN: Heroku Alternative for Python/Django apps
Long-time dokku user here. This seems interesting. How nicely does this play with more complicated things, like configuring ports for SSL, or using additional Dokku plugins? How about things like configuring the container network and things like upload size variables, or the wait time when deploying, etc.?
throwaway77384··on CSS Nesting Module
Even worse, any modern CSP would forbid this anyway.
throwaway77384··on Show HN: Exatorrent – Self-hostable Torrent client written in Go
Ok great, thanks :)
throwaway77384··on Show HN: Exatorrent – Self-hostable Torrent client written in Go
Why is kernel 5.14 an issue?
throwaway77384··on Show HN: Exatorrent – Self-hostable Torrent client written in Go
Alright, cool, I'll probably try that!
throwaway77384··on Show HN: Exatorrent – Self-hostable Torrent client written in Go
Good to know, thanks :)
throwaway77384··on Show HN: Exatorrent – Self-hostable Torrent client written in Go
Funnily enough, everything possible. Everytime there is a torrent alternative to the direct download, I will choose torrent, always. But, thanks to pirating stigma, torrenting hasn't proliferated anywhere near as much as it should.
throwaway77384··on Show HN: Exatorrent – Self-hostable Torrent client written in Go
How much does this diminish performance?
throwaway77384··on Show HN: Exatorrent – Self-hostable Torrent client written in Go
Let's assume I want to run this on a Hetzner box. And let's assume all my activity is legit torrenting. Say, sharing linux distros. They are still not exactly going to be over the moon with my seedbox running on their servers, due to torrenting stigma.

You can replace 'Hetzner' with any VPS service here, really. What measures can one take to 'hide' torrenting activity?

throwaway77384··on Ask HN: Should I switch back from Product Management to engineering?
No worries :) Your are right, a Product Manager is still different from a Project Manager, but the lines can be blurry. I was a Product Manager as well, at one point, but I felt that was even more difficult than being a Project Manager. It felt like I had all the same responsibilities as a Project Manager, but on top of everything I was supposed to be some sort Steve Jobs-esque visionary. Which I am not, when it's not my own product, as it turns out, haha.
throwaway77384··on Ask HN: Should I switch back from Product Management to engineering?
Here's my perspective: I worked in advertising for about 10 years. Most of the time I was a project manager officially and a technical project manager unofficially, because I always enjoyed working with technical projects, so I ended up with the big web builds. It took me about 8 years to go from junior PM to project director. When I had reached project director level, I noticed that things changed. I was managing people most of the time and putting out their fires by navigating political structures in the company to get resources allocated to those fires.

I stopped enjoying it at that point. I tried two more stints as a lower-powered PM at other agencies, but realised that I also couldn't really deal with having someone with less experience force me into managing my project in a way that wasn't right.

So I decided to become a dev instead. Being a lower-powered PM helped with that, as I now had time and energy to learn coding on the side. That wouldn't have been possible as a project director.

About 4 years in, I'd say it was a very good decision to make. I was apprehensive at first, because I once turned another passion into a job and that immediately killed the passion and I haven't touched that passion since. However, in this case, things stayed interesting enough.

Advantages to being a PM:

- You get to see every part of a project

- You are not just a resource delivering a skill

- You get to manage your own time a lot more

- Micro-managers breathing down your neck are much rarer

- Your skill is universal, so you become employable in many places

Disadvantages to being a PM:

- Any good PM will eventually come to the realisation that the best PMs run teams that don't need PMs haha

- At the end of the day you will often ask yourself how you can simultaneously be completely burned out while also not being able to tell what the heck it is you actually did all day

- Politics. Endless politics. The higher you go, the worse it gets.

- Clients. They ruin everything

- After about 6 months you stop learning. Yes, you might gain some peripheral knowledge of the industries your clients are in, but the principles of project management are learned after your first trial-by-fire project and then that's it. Rinse repeat for the next X years your career will run for

- That feeling when the higher-ups tell you half your team will be based in [popular outsourcing country], because they've struck a deal with some outsourcing-sweatshop (which they will only do once, because of the inevitable disaster this will become, but you're the guinea pig for the experiment, good luck!!)

Advantages to being a dev:

- You learn stuff

- The work feels more real

- Less politics than a PM role. Still politics. And still, the higher you go, the worse it gets, but it's less by necessity

- You get to focus on one part of a project and do that really well

- The pay is ridiculous

- You don't have to talk to clients (this is a big one)

- Remote dev work is a heck of a lot easier than herding your remote cats as a PM

Disadvantages to being a dev:

- You don't feel in control and you are at the mercy of your shitty PM mismanaging project scope which means you get crunchtime, but the PM doesn't

- Other devs' shitty code (and by that I mean the freelancer they hired at £600 per day for 3 weeks who DGAF about maintainability)

- The work you are given will sometimes be mind-numbing, as the client's changed their mind in a completely nonsensical way for the millionth time, but needs to see a working demo in two days etc...

- Employability becomes a really weird game of 'does the automated HR system think the buzzwords in my CV match the buzzwords on the job description', followed by grinding meaningless array-juggling puzzles which you will then never use again in any real world coding situation (aka, finding a good dev job is much, much harder than finding work as a PM)

There ya go, that's my experience so far.

throwaway77384··on Qatar launches a state of the art smart country platform
> In his opening speech, al-Sulaiti said Qatar’s visionary leadership realised years ago the importance of investing in emerging technologies and innovation to drive sustainable development and the national economy.

He forgot to mention the slave labour. [0]

Or the corruption. [1]

[0]: https://www.theguardian.com/world/2013/sep/25/revealed-qatar...

[1]: https://www.theguardian.com/football/2017/nov/14/fifa-briber...

throwaway77384··on Barclays stops UK clients from sending funds to Binance
I say this in every thread with these sorts of issues: Not your keys, not your crypto. Keep this stuff locally and keep encrypted, non-local backups of your wallets or your wallet seed. That's the best way and insulates you against all these regulatory shenanigans. Hopefully one day there will be a crypto environment rich enough, where states can't hinder the freedom of crypto by putting barriers up between the worlds of crypto and fiat. For now there are other exchanges you can send money to, to buy crypto. I would then still withdraw it to local storage immediately.
throwaway77384··on Fusion and Magic
> Those can be made from plastic, according to some old patents

Citation needed

> If you put all the pieces together, you should be able to pull off Boron 11 fusion in a manner similar to the Polywell

Citation needed

> and extract most of the energy directly as high voltage DC.

Citation needed

> You could then use that high voltage DC to power a field effect lifter.

Citation needed

> One day I want my own personal Megawatt box powered by this technology. It should be about the size of a 2 drawer filing cabinet with a small display for setting the output parameters, and a set of 480, 220, 110, 12 volt, and USB-C outputs.

Imagine just handing everyone a Megawatt of energy, to do with as they please. We'd be living in a very different world.

However, for any of the above to be believable, there have to be some reputable sources to look at, no? Why is no one working on this and why isn't there more news of this, when this can just be done by 'putting all the pieces together'?

I am just as enthusiastic as the next guy about progress, but these extraordinary statements require extraordinary evidence IMO

throwaway77384··on GitHub Copilot on Golang
There is not much of an explanation of what this did here, but from what I can tell it predicted all that was needed correctly? Pretty impressive, if so.
throwaway77384··on Binance banned from doing business in UK
I kept my funds on Binance for a while, for convenience's sake. However, the old rule applies: not your keys, not your crypto.

Keeping anything on an exchange, for the time being, is just too risky. This is another example of it. Governments are still trying to figure out how to regulate crypto, ever shifting the amount of hurdles between crypto and the world of fiat.

I'd advise to pull funds if possible. I've recently done so with mine.

Of course that means my keys / wallets are now my responsibility, along with ensuring that I have appropriate backups in place etc.

throwaway77384··on Ask HN: How do you handle a Job rejection?
Being a really negative person helps sometimes. I consider the default to be rejection (of which I have had many), making any non-rejection a really positive event :)
throwaway77384··on 4-Day Workweek
https://4dayweek.io/

To find jobs like this.

← PreviousPage 2 of 8Next →