Better HN
topnewbestaskshowjobs
Log inSign up

jammygit

2,911 karma · joined Aug 10, 2018 (8y ago) · 1,352 submissions

Submissions

comment 6y ago · link · parent

A good keyboard with a keyboard driven distribution does the trick too though

comment 6y ago · link · parent

Which is the better introduction to Lisp: On Lisp (by pg), SICP, or another text (maybe on Common Lisp)?

Or is it better to just go straight to Clojure these days?

comment 6y ago · link · parent

Is guile a good choice for going through SICP one day?

comment 6y ago · link · parent

Serialization for one thing. You can work with JSON extremely freely without creating weird serializable classes for every combination of data you might need to work with - eg, no class named "DoodadList" for when you want to de-serialize a JSON list (maybe that's a Unity3D thing?).

You can nest functions nicely and work with closures when it makes sense, if you like that sort of thing.

The async programming model is also really nice to work with.

You also don't need to create classes for every noun, verb, and adjective in your system either - when all you need is a function, you just write a function, not some weird object to hold it.

You also don't have to write a f after all of your decimal values to tell the silly compiler that you mean for 0.25 to be a float. (this one truly does not matter, but there are a lot of little things like this that add up)

I know you can do a lot of that in C#, but its just so effortless in javascript. You just need to be more disciplined about how you code it

comment 6y ago · link · parent

We still shouldn't let them off the hook for their invasive telemetry lately, but for such a large, energy hungry company to be carbon negative is legitimately a great thing.

comment 6y ago · link · parent

I think I’m alone in this, but JavaScript is a neat language that is incredibly powerful and expressive (minus a few warts). Most of the problems that arise from it seem to come from undisciplined work habits and a lack of code review. As long as your team is smart enough to not call all your function arguments “args” or “data” or “params”, the asynchronous flows are really nice. IMO at least

comment 6y ago · link · parent

IDEs aren’t that necessary if you have strong command line skills. The only ide feature I really miss is autocomplete because it’s a pain to remember method names

comment 6y ago · link · parent

I did that a lot at my last job and found that the debugging was pretty quick. There’s always some race condition from some asynchronous function somebody called without waiting for the callback. Does TS help with that?

comment 6y ago · link · parent

What is it like to use pho compared to nodejs or python? Some of us haven’t had the pleasure

comment 6y ago · link · parent

I like JavaScript... it’s very flexible and incredibly expressive. Using c# lately, I just feel shackled

comment 6y ago · link · parent

I started using chrome originally 10ish years ago because the company tech person said it was good and fast (I was not in tech at the time). I think you’re right.

(I use Firefox now)

comment 6y ago · link · parent

Is this a pure publicity stunt, or is foreign hacking getting worrisome enough that it’s outweighing a tiny bit of their desire to hack people?

comment 6y ago · link · parent

What sort of privacy protections does purism offer when you use librem apps? Anyone experiment with this so far?

comment 6y ago · link · parent

I wrote a lot of sequence diagrams for tasks I worked on and saved the interesting ones. Also, finding somebody senior to explain a module pays off big time. Also, learn the database schema: all an app really does is manipulate data

comment 6y ago · link · parent

I find that every 1000 lines of code I write, my productivity goes down a bit more. Without refactoring, my code just gets really coupled and it gets harder to change. Your position is that the time cost of refactoring is less than that of speed up benefits?

comment 6y ago · link · parent

Tests are there to catch issues. In a way, almost every bug that makes it to production is a test bug.

Not to mention the inconsistent tests that fail so randomly from timing issues that the team ignores them

comment 6y ago · link · parent

I don’t like how passportjs doesn’t clearly document what it does. After rolling my own as an experiment, I have a mental checklist of things I’d like to evaluate it for, but don’t want to go exploring the code base to get the answers

comment 6y ago · link · parent

You get a degree of cryptographic security by using a sufficiently large and random token - ie, attackers computers cannot spam guesses fast enough to get a hit in any reasonable amount of time. I can’t remember what the exact requirements are though.

comment 6y ago · link · parent

I found bcrypt was easier to set up than argon2. Apparently argon2 can be misconfigured if you are not familiar enough with it

comment 6y ago · link · parent

What does it mean to do salting by default?

comment 6y ago · link · parent

Is /udev/random considered secure?

Edit: never mind, your article named it as a good choice

comment 6y ago · link · parent

I read that bcrypt somehow provides salt by default? None of the articles were clear what they meant

comment 6y ago · link · parent

> standardized, conventional set of practices and code that are well known and not hard to implement.

Every time I ask somebody about this, they recommend slightly different practices or else insist that you can’t use a checklist approach. I partially rolled my own auth as an experiment to see what they meant and it seemed not too difficult, but I worry I missed things and hesitate to use it for production.

(Still used libraries though like bcrypt and a session encryption library)

comment 6y ago · link · parent

My understanding has always been that nodejs was ideal for high io workloads with a light cpu load.

Having it sleep for 100ms per request is a little strange for nodejs though because it is basically simulating cpu load, even though a node server typically hands off work to an optimized library that might be disk or network io bound instead of cpu bound. 100ms is a lot of cpu work per request, no? That is specifically the sort of task node is not recommended for, since it focuses on async.

Maybe I’m wrong, I need to work on larger projects to see what loads are more typical. At my last job, the entire focus was to use node to redirect work to c++ code, databases, etc, basically just request routing.

Still, this looks rough for node. 2x to 4x difference between it and the fastest is still a significant cost for such a nice backend to work with

comment 6y ago · link · parent

The death of C# and Java. It’s more of a wish than a prediction...

comment 6y ago · link · parent

Any other resources you would recommend? I read that physics is particularly time consuming for example. Thanks for the replies so far; it’s very fun to see your work

comment 6y ago · link · parent

I think all that counts. I guess I’m just tempted to make a game engine as a hobby project. I made an OpenGL renderer in uni once (it was fun), but I don’t really know what the scope would be to extend it substantially - obviously, not to “unreal” levels or anything even close

comment 6y ago · link · parent

My air pod microphone stopped working with the iOS 13 update. The only thing I want is for the basic functionality to work

comment 6y ago · link · parent

Generally, it’s safest to assume that any waterproof material is non-breathable. If you exert yourself in them, you sweat and trap that sweat inside the membrane, often guaranteeing to soak yourself even if the rain lets up. Windbreakers with some basic spray on water resistance just work better (which is to say, not great).

Best thing overall is to just wear synthetics that dry very quickly (pair with waterproof bag for your backpack contents - trash compactor bags are amazing for weight efficiency)

comment 6y ago · link · parent

How long did the client side engine take to build, if you had been able to do it full time?
12345
46