Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hakunin
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
33 ms
·
421.
▲
by
hakunin
4y ago
The gem is just for declaring struct keywords (slightly more featureful than vanilla structs). Validation is left up to ActiveModel::Model. I would do a setup like this: class ApplicationForm extend Portrayal include Activ
422.
▲
by
hakunin
4y ago
I've had great success building form objects with portrayal ( https://github.com/scottscheapflights/portrayal ) and ActiveModel. You can put validations into them, and auto-filter the params by making a `from_params
423.
▲
by
hakunin
4y ago
That's true for everything. And yet we still do… everything.
424.
▲
by
hakunin
4y ago
I wasn't talking about humanities, I was talking about the general value of PhD in response to the parent. Don't know what exactly they study in humanities, but I guess at least some of it has to be done with high rigor and precis
425.
▲
by
hakunin
4y ago
From a bystander's perspective (I'm nowhere near a PhD, but have friends who are), I think there's value in learning academic rigor (which is what I think PhD does). I see it like learning to submit a high quality PR into a f
426.
▲
by
hakunin
4y ago
Long names should be a signal that you’re breaking away from current context or doing something unusual. Unnecessary length and redundant context makes names more difficult to discern. I wrote about it a bit more in the “what?” section of t
427.
▲
Rails – narrative vs. model centric approach
(max.engineer)
1 points
by
hakunin
4y ago
|
0 comments
428.
▲
by
hakunin
4y ago
On Sublime Text Chelevra[1] has been my favorite for a long time. Lately I've also been using a couple of Alabaster[2] variations. To me the most important thing is to have just enough color. I find too much color distracting. [1] htt
429.
▲
Good Engineering is not Premature Optimization
(max.engineer)
2 points
by
hakunin
4y ago
|
1 comments
430.
▲
by
hakunin
4y ago
Agree with everything, and additionally I keep getting off-by-1-key typos that I didn't have years ago. Especially (for some reason) when trying to type space or backspace.
431.
▲
It's Not Premature Optimization
(max.engineer)
1 points
by
hakunin
4y ago
|
0 comments
432.
▲
It's Not Premature Optimization
(max.engineer)
2 points
by
hakunin
4y ago
|
0 comments
433.
▲
by
hakunin
4y ago
I wouldn't write these off entirely. One of their positive outcomes is that you get to switch. Switching is important so you don't get bored or fed up. Just don't take these things too seriously, and don't stick your new
434.
▲
by
hakunin
4y ago
Sometimes this advice is taken the wrong way, and people begin assuming that applying any thought to code design is "being obscure and clever" and "finding contortions". Some of the cleanest, most boring code I've w
435.
▲
I Love Ruby: 65LOC for Neat Atlassian Document Format
(github.com)
1 points
by
hakunin
4y ago
|
0 comments
436.
▲
by
hakunin
4y ago
This has been honestly the best no-barriers blogging experience for me. No publishing, no committing. Just open an editor and create or edit files. They sync via Dropbox. Made a typo in a published article? Just edit the file. Handles HN fr
437.
▲
Sshfs Is Orphaned
(github.com)
191 points
by
hakunin
4y ago
|
98 comments
438.
▲
Ask HN: How do you plan back end work?
4 points
by
hakunin
5y ago
|
0 comments
439.
▲
by
hakunin
5y ago
Falling into the CMS trap[1] at a sensitive time in a startup can kill the business. In brief: when you try to build out too much complexity up front, everything easy becomes hard, everything hard becomes impossible, and generally any chang
440.
▲
by
hakunin
5y ago
I switched to Fastmail with my own domain (max.engineer), and as I'm changing email on various services, I'm running into the same issues. Synchrony bank and treasurydirect.gov are among the offenders. My solution for these sites
441.
▲
by
hakunin
5y ago
While I won't argue that many Russians are indeed nationalistic and pro-Putin, that thread shows the opposite. All anti-war comments are upvoted, anti-west downvoted. Some comments are sarcasm/irony, maybe it was lost in translati
442.
▲
by
hakunin
5y ago
I used to find it boring. I always wanted to be objective, and not just say "you have to do it because I said so". I had to dig deep on every one of my gut feelings. I had to do a ton of unpacking of my own instincts. Sometimes I
443.
▲
by
hakunin
5y ago
I don't see this answer, so here's my 2c. I think there is a small distinction in the act of engineering vs. developing, but we all cross that line without noticing. Software engineering is the process of finding the most efficien
444.
▲
by
hakunin
5y ago
This is spooky. I just read this post, cmd+tabbed to my mail app, refreshed, and got a version of this exact email. I never have problems with gmail+spam otherwise.
445.
▲
by
hakunin
5y ago
Nice, tweeted it crediting this comment: https://twitter.com/hakunin/status/1467223381854539791 .
446.
▲
by
hakunin
5y ago
The problem is that predicting how a business might evolve is pretty much impossible. It might make more sense to architect for ease of change in general rather than ease of change into a specific direction. To do that (aside from the advic
447.
▲
by
hakunin
5y ago
Very relatable. Within the context of a single startup this definitely applies. However, in the span of your career, I like to ask — do you want to get fast at writing good code or writing bad code? You won't get perfect code of course
448.
▲
by
hakunin
5y ago
One codebase that I liked in terms of these qualities (albeit I'm sure it's not 100% perfect) is Redis[1]. There are YouTube videos[2] of antirez walking through it. Would love to find more examples too. [1]: https://gi
449.
▲
by
hakunin
5y ago
Author here. Looks like we both have a similar length of experience. I wouldn't give up this battle yet, because > Firstly you cannot please everyone > And secondly, programs are not structured for pedagogy My theory is that you
450.
▲
Writing maintainable code is a communication skill
(max.engineer)
297 points
by
hakunin
5y ago
|
93 comments
More ›