HNHacker News
TopNewBestAskShowJobs

SlySherZ

177 karma · joined March 21, 2016

submissionscomments
SlySherZ··on Tox Handshake Vulnerable to KCI
Much clear now, thanks a lot :)
SlySherZ··on Tox Handshake Vulnerable to KCI
Me and a friend of mine are discussing what the actual vulnerability is. What I got from the report was that you can impersonate anyone when talking to A if you have A's key.

He says that is impossible and you need B's key to impersonate B when talking to A.

Could anyone that knows more about this than I do step in to clarify? Thanks!

SlySherZ··on Mac Pro 2 Concept Design
There you go: https://web.archive.org/web/20170112152448/http://pascalegge...

Edit: fixed wrong link

SlySherZ··on Mac Pro 2 Concept Design
It happened to me too, I just hit reload until it worked.
SlySherZ··on Answer: none of them
What are the ideas that Lua follows that are different from everything else? I'm not sure it's the language I'm looking for, but I will keep it in mind if I ever need something like it. Thanks!
SlySherZ··on Answer: none of them
I will definitely check those out, thanks!
SlySherZ··on Answer: none of them
Disclaimer: I'm not a very experienced programmer and I'm probably an idiot.

I think OP missed entirely the point of learning a new language. When I learn a new language, I try to use the language the way it was built to be used, instead of trying to adapt it to what I already know. That's why you'll often see me asking questions like: "What is the Rubyist way to solve this?". I do adapt the language, but only after I've tried their way first.

I started programming by learning C, which taught me how the computer 'thinks'. Oh, and the absolute basics of programming.

I learned C++, where I was firstly introduced to objects and reliable ways do handle resource allocations without leaks (hopefully :).

I learned Ruby, where I was firstly introduced to functional programming and a wonderful implementation of the language using objects. I also learned what expressive your code can be.

I learned JavaScript, which didn't teach me much, but I've used it extensively to practice what I had learned before. JavaScript does everything.

I learned Haskell, which taught me more functional programming, and how problems go away when you use the correct types (or containers).

I learned Scheme, which showed me how simple a language's syntax can be, while still effective. It confirmed what I knew all along: all those different syntaxes mostly don't matter.

Sure I could have learned all those things without learning a new language. But I had no idea they even existed. Now, what will I learn next? Any suggestions?

SlySherZ··on Timer-Tab
For everyone getting 503 Over Quota error, check WaybackMachine: https://web.archive.org/web/20161209044611/http://www.timer-...
SlySherZ··on Let’s Stop Bashing C
There are two typical use cases for `++` and they should be considered separatly.

Firstly there is simply the `i++`, which is redundant with `i+=1`, but it's also very easy to understand syntactic sugar. Keep it or leave it, no big deal.

Then there is the more advanced and very subtle use of the return value:

  int i = 3;
  while (i--) {
      printf("%d, ", i);    // What does this print?
  }
This one is very controvertial. On one side, it simplifies and shortens code by a lot, but it also makes the code say too much at the same time. Can you tell by glance what this code would do? Personally, I prefer longer code and more expressive code, but I can also cut corners with the short version from time to time, when quickly testing something out.

EDIT: Fixed code formatting

SlySherZ··on Ask HN: What projects are you currently working on?
I've been working on a 2D Physics Engine for the folks at Khan Academy to use. It's also a great way for me to learn programming and physics at the same time ^.^

https://www.khanacademy.org/computer-programming/papercut-2d...

SlySherZ··on Electron considered harmful
I couldn't agree more with this. Just the fact that functions are a first class type in JS already makes it better than many other languages.

Another thing that JS is great at is the flexibility it provides: objects are very general and you can do almost anything with them.

Anyone would care to explain why does JS take so much hate?

SlySherZ··on Programming Has Changed My Life
I actually like to solve puzzles, but not the ones people usually call a "puzzle".

Solving a man-made puzzle for me feels completly arbitrary, where either you think the same way the guy who made it and can solve it quickly, or you don't and get stuck forever.

Instead, I prefer to think about nature's puzzles, things that don't work the way I expect them to, or just trying to explain why they do. Usually they're just as arbitrary, but even if you take the wrong path, they're so deep that you'll end up learning a lot either way.

SlySherZ··on Eve: Programming designed for humans
This is interesting. I have one follow up question: If Eve gets smart enough to understand that the code and the prose diverge from each other, shouldn't it also be able to generate the correct code from the prose? That way you'd eliminate the duplication that is happening. It also should allow you to modify the generated code by modifying either the prose or the code, whatever the programmer prefers.
SlySherZ··on Remove Firefox Hello from FF49
That's a very good point, some things are very good at doing everything.

But I don't think that should apply to the browser. Firefox already gives you extensions, which means you can add to it whatever you need.

Would you say the browser should come with a painter program by default? Maybe a file manager too? What about a specific program to print for a specific printer?

At what point should you stop reinventing the wheel?

SlySherZ··on Remove Firefox Hello from FF49
My question to everyone is: What is the reason for a _browser_ to have an integrated _chat client_?

In my opinion, it doesn't make any sense. We should keep separated tools that do different jobs, and make each one general enough that it can be used in every situation.

SlySherZ··on What Makes a Great Software Engineer? Just My Thoughts
So.. if I understand my own code I'm a great programmer? :D
SlySherZ··on What Makes a Great Software Engineer? Just My Thoughts
You have to be careful how you define 'lazy' in this case. Suppose a developer just quickly writes code that fixes the current problem, but doesn't care about the consequences long term, or doesn't fix the underlying problem - not good.

Now, if you define 'lazy' as someone who will go to great lenghts to not do boring tasks in the future, yes, I completly agree :)

SlySherZ··on Fingerprints are Usernames, not Passwords (2013)
I think he has a point, but do we really have better alternatives?

Soon enough computers will be able to check every possibility for passwords as big as we can remember them. With good algorithms predicting what is likely to be a valid password, maybe they already can.

Even though I agree fingerprints aren't a good solution, passwords aren't either. Any ideas?

Maybe we could have some kind of card that would have big keys stored on it.

EDIT: Fixed missing word

SlySherZ··on My Passion Was My Weak Spot
Not really. Would you enjoy a game that starts with 100% progress? Probably yes, but not for long. Having no safety net means I have to keep moving no matter what.
SlySherZ··on My Passion Was My Weak Spot
Would you rather have 32 or 128GB of RAM on your computer? It's a rather pointless question right? As long as you have enough, having more is not worth the hassle.

Same thing with currency, as long the threshold is met, the rest is worthless (IMO).

It's not that I don't value my work, but instead that more money doesn't mean more value for me, so even if a company wanted to reward me more they couldn't add more value through money.

Don't you think having a peaceful life doing what you like to do in exchange for your work is a fair deal? I think it is ^ ^

SlySherZ··on My Passion Was My Weak Spot
I'm the guy you were when you started.

I don't care how much do I get nor how much time I have to put into it as long as I like doing it and have something to eat.

I don't care if suits call me stupid behind my back or take advantage of that. They can keep their money, while I keep my passion: I think I get the better end of the deal.

And I'll try to stay that way :)

← PreviousPage 2 of 2