HNHacker News
TopNewBestAskShowJobs

archarios

147 karma · joined April 7, 2011

submissionscomments
archarios··on Realtime California Air Quality
It seems like they're out of indoor sensors by the way I ordered one and they printed a shipping label then canceled it.
archarios··on Learn Functional Programming Design from Redux
I have written non trivial projects with ramda and I like it a lot. You have to use your judgement with readability. Some of the advanced functions are a little hard to grok at first, but most of the library is pretty straight forward.
archarios··on Launch HN: Daybreak Health (YC S20) – Online counseling designed for teens
Are y'all hiring JS devs at all? I'd love to work for a company with such a great mission.
archarios··on Cold Showers: For when people get too hyped up about things
That's fair
archarios··on Data Visualization Catalog
well yeah of course d3 is not a general purpose dom manipulation tool.
archarios··on Cold Showers: For when people get too hyped up about things
Why couldn't you just search for where that enum is referenced and add the cases?
archarios··on Cold Showers: For when people get too hyped up about things
I've contributed to large codebases that have static typing (C++ and TypeScript) and dynamic typing (JavaScript) and I've come to the conclusion over the years that static typing isn't really worth it as long as you have the discipline to write tests for your code. The most basic unit tests cover type checking concerns. Refactoring might require a bit more search/replace but I don't see how that is a big deal. Tests make refactoring safer than with just types. Tests act as good documentation of how you expect your code to behave and what expected inputs/outputs there are. You just don't get autocomplete which is a pretty overrated feature imo.
archarios··on Cold Showers: For when people get too hyped up about things
It seems to me that tests are equally good as a communication tool.
archarios··on Cold Showers: For when people get too hyped up about things
You could do the same process if you used dynamic typing and good test coverage. Just make your change and keep fixing tests until everything is green.
archarios··on Cold Showers: For when people get too hyped up about things
Just write tests and suddenly refactoring is possible without static typing. Those tests will also cover type checking concerns implicitly.
archarios··on Unofficial Guide to Datomic Internals (2014)
I went to a Clojure meetup one time and they all went on about how using Datomic in production is a nightmare and it's generally an over-engineered product that isn't worth the trouble in the end. Do most people who have dealt with Datomic in production feel this way?
archarios··on Data Visualization Catalog
Is D3 stil the best JS library for visualization? I used to make D3 components full time and it was pretty great. https://d3js.org/
archarios··on I made a macro keypad with 3D-printed switches
Could use a height adjustable desk and a book as a mouspad. That's what I do for my keebs that are too tall lol
archarios··on Editors (Vim)
The change I was just describing is much more complicated than a simple rename.
archarios··on Editors (Vim)
I discovered this last year and it has made me so happy
archarios··on Editors (Vim)
This is unfortunately not uncommon. I feel like most of my coworkers at most companies Ive worked for don't use vim. One killer app of vim for me is macros. You can record a string of commands and map doing that to a letter. This makes certain mundane changes you have to do sometimes in software a breeze. For example, I had some code where someone was using string literals everywhere when they should have defined an enum. The convention we use for this kind of thing is to use UPPER_SNAKE_CASE and the strings were in camelCase. I was able to define two macros that let me improve this code in a few seconds. If I wasn't using vim I'd probably just leave that code as it was because it would have been so much effort.
archarios··on Eloquent JavaScript 3rd Edition (2018)
How do you define object-oriented programming? From my perspective the very core of it is stateful objects with encapsulation and methods on those objects that pretty much always are not pure. If you just start treating objects like collections of functions, I don't really see how that's OOP. As far as I remember, it has been a little bit since I've used OOP everyday, pretty much every facet of the paradigm is centered around mutating state. You can certainly commingle OOP and functional code, but they simply aren't compatible paradigms.
archarios··on Eloquent JavaScript 3rd Edition (2018)
What are you talking about? if you're async operation fails then your callback should always still be called but just with an error message in the second parameter typically. And what are you doing still giving call backs to async functions? Why are you not using promises?
archarios··on Eloquent JavaScript 3rd Edition (2018)
The problem here is that this conversation is made complicated by the fact that plain objects in JavaScript are not what is really being talked about when people say the term OOP. So to clarify, stateful classes would be what I am talking about when I use that term. The foundation of OOP is based on tying state with functions in what are deemed "Objects". This implicitly makes all methods in an Object that depend on or modify an Object's internal state impure functions. And the purpose of most Objects methods are for the purposes of doing those things. Basically if you use stateful classes that encapsulate state and modify their own internal state with functions you are not doing functional programming. These two paradigms are in fact at odds and not compatible.
archarios··on Ask HN: How to Take Good Notes?
There is a modern version: https://getfreewrite.com/. It's way too expensive though.
archarios··on Unix as IDE (2012)
anyone figure out how to do this with Java though? Seems more feasible for C or Go but not all..
archarios··on Early riser or night owl? New study may help to explain the difference
I have a very hard time believing that this stuff has to do with anything other than having the discipline to have a proper sleep schedule. It's possible to adjust your sleep schedule. People do it all the time when they change timezones. I didn't read the article, I'll go read it and update if I change my mind..
archarios··on 28-Key Mechanical Keyboard
It's not about typing speed. It's more about comfort and accuracy. Also the cognitive load is really not a thing once you're used to it. Maybe you should learn to accept that some people might be more mentally flexible or skilled than you are rather than assuming people are lying to themselves.
archarios··on 28-Key Mechanical Keyboard
Well, I think that any keypress that requires you to move your wrists in any way is weird basically. How do you reach 5, 6, or 7 on your number row for example? what about 1 or ` or esc? I like making it so that I can reach all of these buttons without moving my wrists and with the "correct" fingers.
archarios··on 28-Key Mechanical Keyboard
I bought a kit and busted one of the pcb pads when trying to solder it together :'(
archarios··on 28-Key Mechanical Keyboard
https://github.com/abstracthat/dactyl-manuform https://www.diykeyboards.com/products/cases/product/76-dacty...
archarios··on 28-Key Mechanical Keyboard
On the general subject, I highly recommend the Dactyl Manuform
archarios··on 28-Key Mechanical Keyboard
It's not for me. I like fewer keys because I find that it's easier/more comfortable to use layers rather than have to do a weird reach for some key I need.
archarios··on 28-Key Mechanical Keyboard
Pffff. What is this, amateur hour? 20 keys or bust! https://www.gboards.ca/product/butter-stick-limited-edition :P
archarios··on DataHand
It certainly doesn't help with transitioning to alternative layouts. I found my touch typing improved dramatically when I started using ortholinear and vertical stagger keyboards that force you to really use the "right" fingers
← PreviousPage 4 of 5Next →