HNHacker News
TopNewBestAskShowJobs

jayshua

301 karma · joined April 12, 2016

[ my public key: https://keybase.io/jayshua; my proof: https://keybase.io/jayshua/sigs/5AAPkDM2ZUE-Y-P3xhrwdUxRs1pPU3srNQupiGvlAUw ]
submissionscomments
jayshua··on I'm Resigning as a Stack Overflow Community Elected Moderator
The SO content is licensed under cc by-sa 4.0, so theoretically someone could take it all and start again. Might work with enough of the resigning moderators behind it. But I don't think anyone could get enough of them behind it.
jayshua··on Four common mistakes in audio development (2016)
My understanding is that you are absolutely correct. That's why you shouldn't use locks on the real-time audio thread.
jayshua··on Ask HN: Are you ok?
To add to this comment, if you find you do in fact want to make a change, one way to help accomplish that change is through the Future Authoring Program [1]. It's basically a writing exercise where you write out what your life will be like in a few years if you make all of the changes you are thinking about. Then you write out what your life will be like if you don't make any changes at all. After that you have something to work toward and something to run away from. Depending on the person it can be a huge help.

[1] https://selfauthoring.com/future-authoring

jayshua··on A tiny language called Z (2013)
Can anyone tell me what that does do?
jayshua··on GitHub confirms it has blocked developers in Iran, Syria and Crimea
I mean, you could just make a folder with a text file in it for each issues. People can write comments in it. Move them into a "complete" folder when done. Write down who it's assigned to at the top. You wouldn't get some of the more complex features of course, but I'm not sure a git built in issue tracker could do most of that anyway. Not clear how it could send email notifications?
jayshua··on Elegant Error Handling with the JavaScript “Either” Monad
Left only shortcuts because of the implementation of the map function. There could just as easily be mapLeft and mapRight functions instead, allowing you to choose the shortcut behaviour.
jayshua··on Why play a music CD? No ads, no privacy terrors, no algorithms
I once had a little red mp3 player manufactured by ilo. One of the most reliable pieces of hardware I every owned - the thing just worked. Drop some files on it, and it played them. That simple. Wish it were as easy on my smartphone.
jayshua··on Stepping Away from Sass
Correct me if I'm wrong, but doesn't sassc require the user to compile it?
jayshua··on Stepping Away from Sass
I recently built a new website from scratch after about three years working in other software areas. Found to my surprise that I came back with some very different opinions about how CSS should be structured than I had in my web dev days, and I didn't end up using SASS at all. Still think the code ended up cleaner and more modular than what I wrote before using SASS. The only feature I really missed was @extend, but making the code I would have put in the % selector an actual class and using that in addition to a specialization class in the HTML worked well enough.
jayshua··on Stepping Away from Sass
Not sure what it's like today, but last time I tried to use sassc it was a nightmare. The official repo was just the library with no CLI. I couldn't find a CLI that didn't also require me to compile it myself. Very frustrating.
jayshua··on Add detailed message to NullPointerException describing what is null
Elm is an example of a language that literally can not produce NPEs. I use Rust on a daily basis and while it "technically" can produce one, I've never seen one.
jayshua··on Tumblr has lost 30 percent of web traffic since December
I find this very interesting. Could you elaborate a bit more in what features tumblr has that you require?
jayshua··on JIT-Less V8
Anyone know how common attacks that take advantage of the JIT technology actually are?
jayshua··on Android Phones Can Be Hacked Remotely by Viewing Malicious PNG Image
Just because a lot of people do it doesn't mean it's the right choice though. Most Republicans seem to disagree from what I can tell.
jayshua··on What's next for SemVer
In general, yes. But there are still some things you can do. The Elm package repository, for example, looks at the type signatures of all of the public functions. If there are no changes from the last version, it bumps the patch version. If functions have been added to the public API, it forces a minor version bump. If functions have been removed from the public API, or any type signatures have changed, it forces a major version change. I believe it lets the user force a major or minor bump for changes that don't appear in the type signature. It's been my experience that that is pretty rare though.
jayshua··on Unity Technologies Targeting 2020 IPO
I've built a fairly large MMO unity project. The worst part of the process was the editor. Godot is a much more plesant experience.
jayshua··on Ask HN: Is it just me, or is CSS too damn hard?
> I'd recommend spending some dedicated time learning about layout, not leaning on a framework.

This 1000x. I was at a university that used Bootstrap in their Web Design class(!). And, predictably, it didn't work all that well. I spent some time tutoring one of the students and was amazed at the content they didn't cover. Not even modern things like Flexbox, but basic stuff like sibling/child selectors and the cascade.

jayshua··on Ask HN: Is it just me, or is CSS too damn hard?
I was in your boat about five or six years ago. Programming was fine, CSS was kinda-not-really ok, and design was just non-existent. Over time though, it really is something you can learn.

I started by cloning designs in CSS that I liked. Same way I write programs just to learn. Pick a design and try to reproduce it. (Here's a good simple one that could probably be finished in a single sitting. [1]) Eventually I was able to clone an entire website while only referencing the internet for CSS details, not core concepts. It'll take time just like learning any language, but the theory behind CSS does make sense if you can peel back the layers of features built on top of it. (Like Git, the core model is beautiful - the CLI not so much.) Reading about the "cascade" part of "cascading style sheets" would be a good place to start if you get the basic syntax already. Then study the selector operators. All of them, there aren't that many.

Then read books on design. Info about CSS the language is readily available online. Info about design, not as much. Design for Hackers [2] is targeted at programmers and explains not just the what but also the why certain designs work. The way our brains interpret color and how that causes certain colors to work well together. How people process information and how to leverage that to make designs that "make sense." Visual Grammar [3] is a design reference book I refer to. It's like a SQL reference book - won't teach you the language (of design) but explains the options you have and when they could be useful. Things like "these types of alignments will produce this type of result."

Just remember that it takes time to learn a skill. And design is definitely that - a skill that can be learned.

[1] https://assets.awwwards.com/awards/images/2016/04/uxpin-teas... [2] https://www.amazon.com/Design-Hackers-Reverse-Engineering-Be... [3] https://www.barnesandnoble.com/p/visual-grammar-christian-le...

jayshua··on Let's remove Quaternions from every 3D Engine
Don't know if the article has been updated since your post, but Interpolation and Gimbal Lock are both called out as working with Rotors in the 5th paragraph.

> The change is simple and the code remains almost the same. Anything you can do with a Quaternion, such as Interpolation and avoiding Gimbal lock, you can do on a Rotor. But the understanding grows a lot.

jayshua··on React Native: A retrospective from the mobile-engineering team at Udacity
Yes, it's clearly true that architecture plays a major role. I've worked on one of those inheritance towers before. But adding/changing/removing code in a dynamically typed language always leaves me worried that I've missed something. The only notice I have in such systems that I have missed something is a production runtime exception. Sure it takes longer up front to add a feature. And it's typically harder than in a dynamic language. My point is that taking the convenience of an untyped language is usually a poor/lazy architectural decision.
jayshua··on React Native: A retrospective from the mobile-engineering team at Udacity
It's certainly a language design decision, but as I've been using more powerful type systems I'm coming to the conclusion that not using a language with a good type system for any project intended to be maintainable in the long term is just bad engineering.
jayshua··on Inheritance Often Doesn't Make Sense
Could you name a few? I was under the impression that inheritance was the only way.
jayshua··on The Makefile I use with JavaScript projects
The concepts behind make are quite good, but the interface it provides is not decidedly not. It reminds me of Git in that respect. I'd think replacing the opaque symbols used everywhere with more descriptive words would be helpful. I don't suppose anyone knows if modern Make versions support alternatives to $@, $%, $?, etc. that can be read rather than memorized?
jayshua··on Space uses neuroscience and AI to help you kick app addiction
As the site says, for some people this really isn't an option.
jayshua··on Reading Mathematics (2002) [pdf]
I'm studying computer science myself and very much enjoy writing proofs. Is there any particular reason that you don't?
jayshua··on PlainJS – Vanilla JavaScript Repository
If I understood your event delegation example correctly, I would use event.target.matches inside the event handler. Not the greatest support at the moment though.
jayshua··on W3C abandons consensus, standardizes DRM, EFF resigns
I'm completely unfamiliar the entire discussion (I've just ignored it in the past), and I don't actually know why you think that. Could you elaborate?
jayshua··on W3C abandons consensus, standardizes DRM, EFF resigns
What makes EME a malware interface?
jayshua··on Dijkstra was right – recursion should not be difficult
I remember one of the books in my algorithms class actively discouraged debuggers and advocated for harder reasoning and inserting print statements. Their reasoning was that programmes are too quick to reach for a debugger rather than really understanding their code. I'm still not sure how I feel about that.
jayshua··on Redesigning the airport boarding pass (2010)
I personally avoid the mobile app. I have no data plan on my phone, and airport WiFi is not exactly known as the best (or safest). I also have this (probably unfounded) fear of my battery failing and having to go through a bunch of extra effort to get a printed one anyway.
← PreviousPage 3 of 4Next →