Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
danthemanvsqz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
danthemanvsqz
6y ago
I guess they don't have db snapshots.
2.
▲
by
danthemanvsqz
6y ago
The benchmark doesn't reflect how I would use asyncio. Instead of simply hitting a DB I'd like to see adding an API call to the middle of the request.
3.
▲
by
danthemanvsqz
6y ago
Microservices are good for scaling teams not hardware. If you don't have more than one team then there is no reason to break up your monolith.
4.
▲
by
danthemanvsqz
6y ago
They do different things but in the wild are used in the same way. Data classes are not immutable so it would not be ideal for what I used named tuples for.
5.
▲
by
danthemanvsqz
6y ago
Prefer using named tuples over enums in Python.
6.
▲
by
danthemanvsqz
6y ago
You schedule tasks very easily with the Celery Beat Scheduler. I've used it in production system to kick off big jobs and notifications. https://docs.celeryproject.org/en/v2.3.3/userguide/periodic-...
7.
▲
by
danthemanvsqz
9y ago
I don't use them on prototypes because I will throw away that code. But IMHO TDD is at it's best when your design is highly likely to change. The only protection you have against a moving target is your test suite. The requirement
8.
▲
by
danthemanvsqz
9y ago
I've always relied on unit tests with mocks with the rule that I only mock modules that are tested and I mock or stub all db and network calls. I also like integration and end to end tests but not may of them. I rely on unit tests for
9.
▲
by
danthemanvsqz
9y ago
So there is a tipping point when the technical debt you acquire from not testing catches up with you and cripples the project. I think this tipping point comes much faster than people realize. Most people have no idea how bad their tech deb
10.
▲
by
danthemanvsqz
9y ago
In TDD you don't build a wall of tests, you build your tests as you build your code. Test a little, code a little, refactor, repeat.
11.
▲
by
danthemanvsqz
9y ago
I think the only unethical thing is holding back on the results. It's great to automate tasks and the company doesn't need to know about it unless it is explicitly stated. But your obligation is to deliver high quality results as
12.
▲
by
danthemanvsqz
9y ago
Interesting read from the POV of the staffing agency and hiring company. But why should I jump through those hoops when I don't even know if I'm interested in the job? I really think the hiring companies need to sell me on them be
13.
▲
by
danthemanvsqz
9y ago
Wrap the double loop in a function/method and return from the inner loop.
14.
▲
by
danthemanvsqz
10y ago
I think they missed Google's launch of Spanner their distributed strongly consistent DB.
15.
▲
by
danthemanvsqz
10y ago
+1 I was thinking the same thing myself. Pie charts are for elementary school kids.