Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pdimitar
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
46 ms
·
901.
▲
by
pdimitar
2y ago
Help and support others who actually have a vision. If I didn't have to think about money I'd work on inventing Skynet. No, this is not a joke. I'm dead-serious.
902.
▲
by
pdimitar
2y ago
Some more details that programmers can inspect would be very useful.
903.
▲
by
pdimitar
2y ago
Well your comment just emphasizes how overdue semantic diffing is, really.
904.
▲
by
pdimitar
2y ago
How did that saga end?
905.
▲
by
pdimitar
2y ago
Guilty as charged, I mix them both freely; I use fakes but also assert that a function has (not) been called [N times]. The latter is mostly testing implementation but there are rare cases when it's too much work to mock a quality 3rd
906.
▲
by
pdimitar
2y ago
> Also keep your lynch pin invariants in the database and not in your code. I do both. That is how you protect against stressed devs at 2:00 AM trying to insert crap in the production database and how you also make good apps that don&#
907.
▲
by
pdimitar
2y ago
I lost the link to one Golang library that I liked very much but here's the link to Elixir's Ecto: https://hexdocs.pm/ecto_sql/Ecto.Adapters.SQL.Sandbox.html (not the perfect one, sorry, but can't be bot
908.
▲
by
pdimitar
2y ago
Glad to help! On a philosophical / meta level it's all quite simple: do your damnedest for the computer to do as much of your work for you as possible, really. Nothing much to it. Strict technologies slap you hard when you inevita
909.
▲
by
pdimitar
2y ago
Well, if you found a productive workflow then who am I to judge, right? However, if I was hired into your team tomorrow you'll have to fiercely fight with me over this: > And sure, we could probably refactor it to use transactions
910.
▲
by
pdimitar
2y ago
Exactly what I do. Having a local `docker-compose.yml` that helps bring up a dev and test environments is one of my first action items when hired. Paid huge dividends, many times.
911.
▲
by
pdimitar
2y ago
Completely agreed, that's why I have advocated for periodically (once a month) revisiting the test suites with them by doing re-captures of real data. There are frameworks that help with this. Is it a chore? Absolutely. But peace of mi
912.
▲
by
pdimitar
2y ago
PostgreSQL stops many data bugs at the door due to being so strict -- something many programmers start rediscovering is a good thing by choosing stricter programming languages with time. I love SQLite to bits but the test harness I have to
913.
▲
by
pdimitar
2y ago
OK, but is your production DB also SQLite? If not, I would not. I found the differences between it and PostgreSQL too big and was getting too many false positives. Also code complexity on a few levels of recursion of transactions is an easy
914.
▲
by
pdimitar
2y ago
I don't know what kind of magic fairy dust Django is but I've found the differences between SQLite and PostgreSQL too big to be worth it, in at least 3 other programming languages that are not Python. Sounded good at first but we
915.
▲
by
pdimitar
2y ago
Why a separate DB for each test? Just have only one DB and each test opens a transaction and then rolls it back when it's done. That way you also achieve isolation of tests so they don't interfere with each other.
916.
▲
by
pdimitar
2y ago
On my machine -- which is quite middle range at this point, not even high end -- I get by just fine up to 3000 tests, with Elixir at least. When I was at that contract the ~3200 tests ran in something like 40 seconds. What kinds of troubles
917.
▲
by
pdimitar
2y ago
I thought this was common knowledge and that it became even easier after Docker became a thing? Mocks are wishful thinking incarnate most of the time, though here and there they are absolutely needed (like 3rd party APIs without sandbox env
918.
▲
by
pdimitar
2y ago
Cool, good to know, thanks for bringing it to light. Still not a fan but it's nice that it has the facilities.
919.
▲
by
pdimitar
2y ago
Ohhhh I see, thanks for clarifying! Brain fart. Indeed, I'd love to use your stuff.
920.
▲
by
pdimitar
2y ago
No transparent parallelism? And no, I don't mean threads. Underrated? Eh... it does stuff better than others but that doesn't mean much. We really don't learn.
921.
▲
by
pdimitar
2y ago
I still suffer, to this day. Gets more and more difficult as you age. Hopefully I wisened up and I think I started doing the right steps but it's like blowing against the wind; ultimately you'll succeed but... yeah, nevermind. Don
922.
▲
by
pdimitar
2y ago
Because you'd be broke and freezing outside. See, you're privileged as hell if this doesn't even cross your mind.
923.
▲
by
pdimitar
2y ago
Am I missing something or is it truly infinite?
924.
▲
by
pdimitar
2y ago
It might be to their detriment, but I suffered much more than I could detect that they suffered so I am keeping a reserved judgement on that one. But even if you are 100% correct (a real possibility) then it still doesn't matter much;
925.
▲
by
pdimitar
2y ago
And you addressed exactly zero existential concerns. Assume I had no choice of the programming jobs I was taking in the last years. Now try to fit your framework of mind in it. Present me the result as a textual reply here? Hint: what I fel
926.
▲
by
pdimitar
2y ago
If I was ever given a choice then I'd tell you. And I have done "resolving complex issues beyond the FAQ of a framework" many, MANY times. Almost as if country and environment have anything to do with it, more than merit.
927.
▲
by
pdimitar
2y ago
You are forgetting these teeny tiny teensy little things called "return of investment" and the ratio of energy expended vs. the results achieved.
928.
▲
by
pdimitar
2y ago
You hiring for positions where I can have fun programming?
929.
▲
by
pdimitar
2y ago
> I think given you've been mugged by reality in commercial work to the point of tiredness, your not finding it to make sense at all is completely understandable, though. OK, I want a job where I have fun and I am programming. Sta
930.
▲
by
pdimitar
2y ago
OK. Who pays for you having fun? How is your "but I am having fun optimizing this" help your boss pay the bills after a deadline is getting closer? People like you baffle me to no end and make me feel I've lived in a parallel
More ›