Hacker News new | past | comments | ask | show | jobs | submit | depaulagu's comments login

Piggybacking on your request, I would also like feedback. I also run some services on my home computer. The setup I'm currently using is a VPN (Wireguard) redirecting a UDP port from my router to my PC. Although I am a Software Engineer, I don't know much about networks/infra, so I chose what seemed to me the most conservative approach.


To both of you, wireguard is the way to go.

So, parent poster: yes, you are doing it right.

Grandparent: Use a VPN, close everything else.


Thanks, Benny!


There’s nothing stopping you from hiding implementation details in a functional paradigm, no need for objects or other OO patterns.


I could certainly be wrong, but that doesn't seem to be the case to me.

When you completely separate routines from the data, you end up coupling the code that calls the routine with the data it’s passing. I don’t see how it would be possible to maintain that level of separation while achieving the same level of isolation that’s possible with objects, where it’s possible to truly know nothing about the data in a given interaction.

I’m referring here to the purest aspect, in terms of pure functions. At some point, the data has to come from an impure source, and honestly, I don’t see why a closure would be better than an object—practically, they’re the same thing.


Not true


Aaaaaaaaaaaaaaaaaa that makes way more sense


Same here...


I think this is a joke


Gotcha. I’ll consider myself “swoooshed”.




I love that it uses Comic Sans

never change!


How do you dependency inject a ES module?


You'll export a function from your esModule if you want to inject

export const myFn = (...deps) =>

You don't need anything else, for encapsulation you have the EsModule, that what OP meant.


ah, thanks, I thought it was something different.


You have dynamic imports too if you need IoC.


Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: