HNHacker News
TopNewBestAskShowJobs

jammygit

2,911 karma · joined August 10, 2018

submissionscomments
jammygit··on Microsoft will be carbon negative by 2030
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.
jammygit··on Problems with TypeScript
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
jammygit··on Problems with TypeScript
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
jammygit··on Problems with TypeScript
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?
jammygit··on How Shopify implemented its secure authentication service
What is it like to use pho compared to nodejs or python? Some of us haven’t had the pleasure
jammygit··on The new Microsoft Edge is out of preview
I like JavaScript... it’s very flexible and incredibly expressive. Using c# lately, I just feel shackled
jammygit··on Mozilla lays off 70
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)

jammygit··on NSA Takes Step Toward Protecting World’s Computers, Not Just Hacking Them
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?
jammygit··on iOS 13 app tracking alert has dramatically cut location data flow to ad industry
What sort of privacy protections does purism offer when you use librem apps? Anyone experiment with this so far?
jammygit··on Ask HN: How to deal with big existing code base when you are new to the team
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
jammygit··on Goodbye, Clean Code
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?
jammygit··on Goodbye, Clean Code
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

jammygit··on Ask HN: How many of you are rolling your own auth?
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
jammygit··on Ask HN: How many of you are rolling your own auth?
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.
jammygit··on Ask HN: How many of you are rolling your own auth?
I found bcrypt was easier to set up than argon2. Apparently argon2 can be misconfigured if you are not familiar enough with it
jammygit··on Ask HN: How many of you are rolling your own auth?
What does it mean to do salting by default?
jammygit··on Ask HN: How many of you are rolling your own auth?
Is /udev/random considered secure?

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

jammygit··on Ask HN: How many of you are rolling your own auth?
I read that bcrypt somehow provides salt by default? None of the articles were clear what they meant
jammygit··on Ask HN: How many of you are rolling your own auth?
> 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)

jammygit··on Webserver Benchmark: Erlang vs. Go vs. Java vs. Node.js
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

jammygit··on Ask HN: A New Decade. Any Predictions? (2010)
The death of C# and Java. It’s more of a wish than a prediction...
jammygit··on Show HN: Angeldust – a fast and efficient video game
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
jammygit··on Show HN: Angeldust – a fast and efficient video game
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
jammygit··on AirPods Are Becoming a Platform?
My air pod microphone stopped working with the iOS 13 update. The only thing I want is for the basic functionality to work
jammygit··on “Breathability” Comparison of Commercial Outerwear Shell Layers (2018) [pdf]
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)

jammygit··on Show HN: Angeldust – a fast and efficient video game
How long did the client side engine take to build, if you had been able to do it full time?
jammygit··on How Do Bullets Work in Video Games?
Your site says you taught computer graphics for a while. Do you have any other resources to recommend, or even a list of suggested topics? I really enjoyed my intro to computer graphics course but wasn’t able to take any follow ups
jammygit··on How Do Bullets Work in Video Games?
Seconded, thanks for sharing
jammygit··on Almost everything on computers is perceptually slower than it was in 1983 (2017)
Including reading essays, now written half-paragraph by half-paragraph in twitter threads?
jammygit··on US government is entitled to all Snowden book proceeds, judge rules
> The judge also ruled that Snowden had breached his contractual responsibilities by giving speeches at the TED conference and other venues. Each of these speeches included slides with materials that were marked as classified.

There was another front page story today about a judge claiming that the wiki claims could not be tried because they could not confirm whether the government was indeed spying. Which is it: are the leaked documents real or fake? Awfully convenient interpretations

← PreviousPage 3 of 34Next →