danthemanvsqz
Re:Hacked hospital chain says all 250 US facilities affected
on Friday October 02, 2020 @05:10PM (#24667061)
I guess they don't have db snapshots.
Re:Async Python is not faster
on Sunday June 14, 2020 @11:38AM (#23518460)
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.
Re:Microservices Considered Harmful (2019)
on Sunday June 07, 2020 @06:58PM (#23451812)
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.
Re:Using Enumerated Types in Python
on Saturday June 06, 2020 @11:02PM (#23444429)
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.
Re:Using Enumerated Types in Python
on Saturday June 06, 2020 @07:26PM (#23443259)
Prefer using named tuples over enums in Python.
Re:An introduction to RabbitMQ
on Thursday May 21, 2020 @04:29PM (#23264696)
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-...
Re:TDD did not live up to expectations
on Thursday June 29, 2017 @07:11PM (#14667566)
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 requirements or our understanding of the requirements change so we change the code. In large code bases we can only be certain that the code change doesn't break anything if we have good tests. TDD is the only realistic approach to achieve 100% test coverage. You can certainly write good tests to cover your code at 100% but I've never seen it done by anyone consistently without TDD.
Re:TDD did not live up to expectations
on Thursday June 29, 2017 @05:38PM (#14667072)
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 regression and should be able to run the whole suite in less than an hour. I set my precommit hook to run unit tests with coverage and static analysis.
Re:TDD did not live up to expectations
on Thursday June 29, 2017 @05:30PM (#14667003)
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 debt is until it's too late. Then you see one failure after another while management tries to fix the train wreck. At this point any good Eng is going to bail in this market and you're stuck with the scrubs.
Re:TDD did not live up to expectations
on Thursday June 29, 2017 @05:22PM (#14666952)
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.
Re:Is it unethical for me to not tell my employer I've automated my job?
on Wednesday June 28, 2017 @05:51PM (#14658814)
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 fast as you can.
Re:How to Interview Engineers
on Monday June 26, 2017 @06:27PM (#14640920)
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 before they ask me to spend an hour of my time.
Re:Loop Exits and Structured Programming: Reopening the Debate (1995) ...
on Monday June 12, 2017 @04:25PM (#14540789)
Wrap the double loop in a function/method and return from the inner loop.
Re:Show HN: FaunaDB, a strongly consistent, globally distributed cloud...
on Wednesday March 15, 2017 @07:43PM (#13881011)
I think they missed Google's launch of Spanner their distributed strongly consistent DB.
Re:The New Face of American Unemployment
on Monday February 20, 2017 @03:22PM (#13690553)
+1 I was thinking the same thing myself. Pie charts are for elementary school kids.