Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
davetron5000
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
davetron5000
1y ago
There’s also a typography element to formatting source code. The notion that all code formatting is mere personal preference isn’t true. Formatting code a certain way can help to communicate meaning and structure. This is lost when the mini
2.
▲
by
davetron5000
1y ago
Thanks for the kind words!
3.
▲
by
davetron5000
1y ago
(author here) It only uses Sinatra because I happened to know it and needed to bootstrap the low-level stuff. I don't know if it needs to be based on Sinatra in the long term - it should probably just use Rack.
4.
▲
by
davetron5000
1y ago
I'm OK not using a compiler. Used one for years and am good on that for now. I like writing Ruby.
5.
▲
by
davetron5000
1y ago
I like Ruby! Ruby has types. They just aren't enforced by a compiler.
6.
▲
by
davetron5000
1y ago
Yeah, that makes sense. Where I end up wanting mocks is when this happens: 1 - build first version of feature, all core logic in a class I can test conventionally 2 - logic gets complex, test gets complex 3 - Eventually, I need to create so
7.
▲
by
davetron5000
1y ago
I didn't come up with the license. You can read about it here: https://firstdonoharm.dev/ I didn't want the code to be All Rights Reserved, so I chose the best license I could find that communicates my desires -
8.
▲
by
davetron5000
1y ago
The biggest thing is the mocking system. MiniTest's feels so difficult to use. I also like creating custom matchers vs. creating my own assert_* methods. I would agree that many features of RSpec are, honestly, bad: shared examples, s
9.
▲
by
davetron5000
1y ago
I thought hard about this decision. Every time I use MiniTest, I end up wanting a bit more that RSpec has and then switching to it. I also have been surprised over the years that the `expect(x).to eq(y)` seems to be relatively intuitive t
10.
▲
by
davetron5000
1y ago
Author here. The framework does require setting stuff up. RSpec is not one of those things. It's the testing library you will use if you use this framework. I didn't create a lot of flexibility in the framework. For example, if yo
11.
▲
by
davetron5000
1y ago
Author here - the example doesn't allow logins now to avoid abuse. I wasn't 100% sure I'd make it public and just decided today to do it, so it's not yet ready for just anyone to login. You can run the site locally, or v
12.
▲
by
davetron5000
1y ago
This is my favorite game for the 2600. I built a clone of it for Windows using Direct X in probably 1999/2000. I don't have a Windows machine, but I think Microsoft's obsession with backward compatibility means it probably st
13.
▲
by
davetron5000
2y ago
Where you live matters. In the US there is a significant tax burden on exercising. Talk to an accountant. Also look into QSBS which can shield your tax burden if the company was small enough when you were granted stocks. Highly recommend yo
14.
▲
by
davetron5000
2y ago
It wants to act on GitHub on my behalf. Not clear why I should allow it to do that, especially when the only info about this app that is presented is that it will store my data on GCP. Can you modify your oauth request to only ask for what
15.
▲
by
davetron5000
2y ago
I built a toy app using this, with a front-end only app and postgrest + RBS. The app was seriously two forms behind a login. It was a huge pain. RBS is "insecure by default" meaning if you don't set it up right, all users c
16.
▲
by
davetron5000
3y ago
I built one recently. Much simpler and more opinionated, but can generate a Tailwind configuration: https://ghola.dev (desktop/ipad is best) Long read on how it was built with web components: https://www.naildriv
17.
▲
by
davetron5000
3y ago
I loved U1-4 on the C64. If you like this sort of thing I created an ultima-inspired in browser game https://starlightdawn.online It’s an interactive story and not a CRPG but there is a goal.
18.
▲
by
davetron5000
3y ago
Web Components are not a replacement for React. They are a thing you would use to build React if you were to do so today. To use only Web Components, you will be writing a lot of low-level code using the browser's API, or you will hav
19.
▲
A trip to see Chicagoland Sears houses
(searshouseseeker.com)
93 points
by
davetron5000
3y ago
|
62 comments
20.
▲
by
davetron5000
3y ago
To save anyone a click, the author figured that AirBnB's urls had monotonically increasing numeric ids, which is the Rails default, and figured out that the AirBnB CEO's id was 3, and got the direct link before it was shared publi
21.
▲
by
davetron5000
3y ago
Based on how it is implemented, it probably should've been called `trace` because it is one level below debug.
22.
▲
by
davetron5000
3y ago
I dunno, the OP may want to work with a processor that provides transparent and clear customer service.
23.
▲
by
davetron5000
3y ago
Their engineers need promotions so how else can they get them?
24.
▲
by
davetron5000
3y ago
The typography is almost great but it full justifies all text (at least on mobile) which looks horrible. Web browsers have limited hyphenation and don’t do any kerning or other adjustments (like hyphenation) to make full justified text loo
25.
▲
Copy/Pasting phone number from Mac contacts inserts text-direction Unicode chars
(stackoverflow.com)
2 points
by
davetron5000
3y ago
|
0 comments
26.
▲
by
davetron5000
3y ago
These almost entirely boil down to DHH's personal preferences—which is fair enough as it's his framework—but I don't really see these helping in any general way to understand Rails beyond "whatever DHH wants is his frame
27.
▲
by
davetron5000
5y ago
There is no one who is eg the GM of Heroku. Salesforce has no idea what they have and are basically tying to figure out how to get existing SF customers to use it. I think they want Heroku customers to start using SF more but have no clue h
28.
▲
by
davetron5000
5y ago
Unfortunately, I don't have any demographics on who orders from me. I only ask for an email address. Mostly have just tried to minimize access to personal information.
29.
▲
by
davetron5000
5y ago
I have had several readers over the last year reach out to ask about this. I ended up adjusting the pricing in Amazon per region (print copies) and creating discount codes for people to use on my site based on the honor system[1]. For books
30.
▲
by
davetron5000
7y ago
SOLID is going to be problematic and it’s easier to focus on baser things like cohesion and writing simple, unabstracted code. https://solid-is-not-solid.com has a snarky take on this but I wrote it to be apt as well.
More ›