Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Frotag
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
121.
▲
by
Frotag
3y ago
It's pretty common when wrapping a function that has a large number of config options. The wrapper is usually some shorthand for building a handful of those args or adding some side-effect, while still allowing the caller access to the
122.
▲
by
Frotag
3y ago
Theres ~10^31 possible links. Assuming theres 100 billion valid links and someones scanning 1mil links per second, they'd still be averaging 1 discovered link per million years.
123.
▲
by
Frotag
3y ago
On android, some video ads will even pause if you pull down the notification bar.
124.
▲
by
Frotag
3y ago
I suspect that even if an official release is available (with free samples) potential buyers tend to check out the scanlation first. Mostly since checking for updates on websites that aggregate fan scans are more convenient than checking 3i
125.
▲
by
Frotag
3y ago
These days it's not uncommon for scanlation groups to be in it for the donation money. Well I say "group" but it's usually just the leader pocketing the money and recruiting bored / enthusiastic teens. The excuse is
126.
▲
by
Frotag
3y ago
Someone stirred up a bit of drama doing something similar a few years ago. The biggest difference is that they were selling it and harvesting it without any consent from users or server admins. https://web.archive.org/web&#x
127.
▲
Dependency injection using the Reader monad
(fsharpforfunandprofit.com)
2 points
by
Frotag
3y ago
|
0 comments
128.
▲
by
Frotag
3y ago
I like the author (read through a few of his other series) but it gets a little tiring how often he switches between perspectives. Each perspective is a different plotline and they all tie together in the finale but it feels like a 50-100 p
129.
▲
by
Frotag
3y ago
The specs are nice on paper but even at 60Hz and minimal brightness, the battery on my brand new one barely lasts 2-3 hours when just using the browser. It'll even drain completely if I leave it on standby for a few days. There's
130.
▲
by
Frotag
3y ago
My goto example for RxJS are event handlers. Heres an example that implements drag-and-drop (for which the vanillajs / d3js versions aren't nearly as pretty) It basically translates to 1. Wait for a mousedown event 2. Start listen
131.
▲
by
Frotag
4y ago
Zero effort solution is to have permanent group chats so background info like discussions on requirements are searchable.
132.
▲
by
Frotag
4y ago
I settled for reading the docs and searching github issues like a caveman. I wonder if this'll eventually popularize low-key advertisements in bug reports. Like "I scanned the repo using this (my company's) tool and found mix
133.
▲
by
Frotag
4y ago
The grammar is really similar to english (subject-verb-object). Words only have one form (they do not change with tense / plurality / etc). If you translated each word indivdually you'd probably get an almost correct english
134.
▲
by
Frotag
4y ago
I've been using nginx for caching when the response isn't user-specific. Pretty painless to set up and doesn't bloat the codebase. (But it's mostly for small personal projects, so grain of salt and all.) https:/&#x
135.
▲
by
Frotag
4y ago
stdlib is where things go to die. Backwards compatibility, limits on dependencies, release cycles, etc all make development a pain and discourage potential contributions. Or so I've read. Here's one discussion about it in the requ
136.
▲
by
Frotag
4y ago
Not conda, but using the built-ins should work for most use cases. --- 1. Create a virtual environment named venv cd $PROJECT_FOLDER python -m venv venv 2. Activate it. source ./venv/bin/activate (In vscode, Ct
137.
▲
by
Frotag
4y ago
Some common Angular Material gotchas may include... - Checkbox text doesn't wrap - There isn't a datetime picker (only date) - Styling library components / child components is a pain in the ass. Their escape hatch for
138.
▲
by
Frotag
4y ago
Been getting into sci-fi novels recently. Favorite has been stuff by Adrian Taichovsky [1]. A lot of it is premised on "what if animals were (engineered) smarter". His novels usually explore how cognition / language / cu
139.
▲
by
Frotag
4y ago
Chatrooms for each team, but visible to other teams. And a culture of encouraging technical discussion to be summarized or at least alluded to in the public chat. I'm sure this doesn't scale, but for a company of <20 developers
140.
▲
by
Frotag
4y ago
You can also implement context managers / try-with-resources via generators. Not that I've seen it in the wild or recommend it. I remember it being annoying to debug for some reason. https://stackoverflow.com/quest
141.
▲
by
Frotag
4y ago
> As a whole, modern CSS features feel unintuitive and often require a historical knowledge of the problems this new feature X was trying to solve There's no real way to debug unexpected behavior short of digging through the W3 spec
142.
▲
by
Frotag
4y ago
> One of the nice things about grid is that you can size the tracks on the parent element Yep, it's nice to have an alternative to flex (where children determine their own size with flex-grow / flex-shrink / flex-basis).
143.
▲
by
Frotag
4y ago
ONVIF support is surprisingly spotty on low-end (<$100) IP cameras, especially wifi ones. Even if a camera claims to be ONVIF compatible, you should really check for a certification at [0]. Even for RTSP, there's often something stu
144.
▲
by
Frotag
4y ago
I gave Heaps a try because I wanted an engine that wasn't tied to any specific editor but ultimately gave up on it. I put in a few weekends of effort but the documentation was just way too minimal [0] and turns out it can't really
145.
▲
by
Frotag
4y ago
Find old syllabi and assignments online or ask the prof / a subreddit for some. Shittier schools to tend to have easier and more boring assignments and projects (eg "build a calculator", "list facts about X").
146.
▲
by
Frotag
4y ago
I learned recently that Edge has a "Detached Elements" panel that identifies leaked DOM elements and the code / object holding the reference. It basically automates the process of diff'ing heap snapshots.
147.
▲
by
Frotag
4y ago
> Because of limited time, and low confidence in UX design decisions, I would often follow the path of least resistance and the end product would be heavily influenced by the tools I used to build it. Angular with the Angular Material co
148.
▲
by
Frotag
4y ago
Plus, I may have downtime to dumpster dive for old tickets but my manager / peers usually don't. So try to I avoid creating PR work for others unless the ticket is relevant to the feature-being-developed or a one-line fix.
149.
▲
by
Frotag
4y ago
On a related note, set up a website a few days ago. Brand new domain, newly opened port. But I've rented this VPS for a while so I guess its IP is already on a few lists. But anyways, it's interesting watching the logs for what I
150.
▲
by
Frotag
4y ago
But it does almost everything! And it's especially painless if you're not building for scale, and just hobby projects. But yeah, stuff like concurrency and type annotations seem to go against some of Python's fundamental desi
More ›