Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
metaloha
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
metaloha
3y ago
Why are classes and decorators idiotic? That seems pretty strong.
62.
▲
by
metaloha
3y ago
Well, I'm just letting you know that Angular works on all the major browsers, not just Chrome. And the new Angular website also works on all the major browsers, though the Playground is still under development and doesn't support
63.
▲
by
metaloha
3y ago
Chrome, Edge, Opera, and Safari seem to work fine with the playground. Firefox doesn't like it, though. It's the 5th most popular browser (it seems), so I'm not super surprised at that. It works on 92% of the browsers out the
64.
▲
by
metaloha
3y ago
Seems to work fine in Edge, Firefox, Opera, and Safari for me. What's broken for you?
65.
▲
by
metaloha
3y ago
Exceptions: enforcing code quality that cannot be automated; punctuation in documentation (you WILL use capital letters and periods and complete sentences, so quit complaining about it); encouraging good habits (like using `map` and `filter
66.
▲
by
metaloha
3y ago
A couple of examples would not be amiss.
67.
▲
by
metaloha
3y ago
This article doesn't really make a strong case aside from "we don't like strong typing." There's a 99% chance that they have a build process in place already, if for nothing besides minimizing and concatenating thei
68.
▲
by
metaloha
3y ago
Oh yeah, I'll mention JSDoc @type tags - hard pass, if you can. Comments should have NO EFFECT AT ALL WHATSOEVER on code. They're comments. Everything should be identical with and without them, they are 100% disposable. Moving any
69.
▲
by
metaloha
3y ago
TS helps remove a whole class of bugs (type-related) by preventing you from building (or in this case, transpiling) code with known and potentially unintended type casting (eg. `let myName = "Joe"; myName = null;` This makes it im
70.
▲
by
metaloha
3y ago
shrug I don't know how to explain it any better. We want to charge a credit card _before_ the lessons for the month, and the amount will be different each month (either 4 or 5 lessons). Stripe will let us do this _after_ the month (s
71.
▲
by
metaloha
3y ago
This is how music and dance schools charge clients (at least here) - pre-pay based on the number of lessons you will attend this month. What I'm looking for is a way to automate it so we don't need to manually charge everyone'
72.
▲
Ask HN: A payment processor that pre-charges metered use
1 points
by
metaloha
3y ago
|
4 comments
73.
▲
by
metaloha
3y ago
What do you think it should look like?
74.
▲
by
metaloha
3y ago
This goes to a 404 - is the repository private?
75.
▲
by
metaloha
3y ago
WP has custom meta fields already. They're stored in a flat table, not JSON, but are accessible via `id` within the post loop.
76.
▲
by
metaloha
3y ago
Avalara ( https://www.avalara.com/ ) does tax calculations for SaaS - you give it a list of prices, the address of your customer, and the type of good/service each item is, and it tells you the correct amount of tax to c
77.
▲
by
metaloha
3y ago
Not too pick too many nits, but have the code blocks suddenly empty themselves and then fade back in is an annoyance when I'm trying to read the code and see what the plugin does. Since these boxes are all "below the fold", w
78.
▲
by
metaloha
3y ago
Looks interesting, but please, please, please - those `marquee` banners have to go :(
79.
▲
by
metaloha
3y ago
I like to keep test files in the same folder as the thing(s) they're testing. It makes it easy to find specific ones (since the filenames are `utilities.ts` and `utilities.test.ts`, for example) and I don't need to keep extra fold
80.
▲
by
metaloha
3y ago
Rice cookers. Damned clever. I wish toasters worked on a similar concept.
81.
▲
by
metaloha
3y ago
You could use https://codebase.show/projects/realworld for this instead of writing something new.
82.
▲
by
metaloha
3y ago
Ruby is traditionally quite heavy compared to Python and PHP, similar to Java and ColdFusion, though that is likely less a problem these days. I personally have found Flask (Python) to be super lightweight and still has a great ecosystem of
83.
▲
by
metaloha
4y ago
In many countries, even an artistic depiction of CSAM is a felony offence, whether it has a basis in reality or not.
84.
▲
by
metaloha
4y ago
Just a note on the site itself - please don't wreck scrolling and gestures. Whatever library is messing with scroll speed and swiping needs to be removed. The site feels broken when it works this way :(
85.
▲
by
metaloha
4y ago
https://ultimatemusictheory.com/free-teacher-resources/prep-... I actually can't recommend this enough. It's very, very basic, so throw some patience at it (or start with the next book, https://ult
86.
▲
by
metaloha
4y ago
Got some z-index and UX issues on that home page. The cookie banner appears in front of some text but behind images and some other text. The drag handle is missing in the whitespace between lines of text (the huge space under "API DEVE
87.
▲
Fraser's First Success Was a Failure
(fraseronfiction.com)
1 points
by
metaloha
4y ago
|
0 comments
88.
▲
by
metaloha
4y ago
From that recording it's hard to tell what's being caused by the speakers and what's being caused by the phone recording and doing it's noise-reduction thing (it sounds like it's recorded with a phone). Can you reco
89.
▲
by
metaloha
4y ago
Shameless plug - https://github.com/metaloha/color2color . It converts CSS (and HSB/HSV) color strings into other formats. Lab, LCH, and CMYK are all in-progress and will be added soon. Note that this isn't a
90.
▲
by
metaloha
4y ago
Trading or collectible card games that have cards that modify themselves with play would be great here. SolForge is the example I'm thinking of, but I'm sure other games do it too.
More ›