Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
solraph
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
31.
▲
by
solraph
2y ago
They can be a bit of a pain, but if you have a lot of logic tied up in your external dependencies (SQL usually bring main offender here) it's not possible to properly test without using said dependency. That said, in the current job, w
32.
▲
by
solraph
2y ago
> I've never been a fan of TDD and personally I think tests that really hit your DB, Redis, etc. help a lot more than mocked out unit tests or a billion unit tests and nothing else... ...but I do really write to the DB and other da
33.
▲
by
solraph
2y ago
> > Even with good design, w/o tests you will fear change and so the code will rot. With good tests, there’s no fear, so you’ll clean the code > Has anyone ever actually found this to be true? Yes, but you have to have the rig
34.
▲
by
solraph
3y ago
For what it's worth, I was gifted one of these. A replacement battery was $45 from Jaycar. Com port is a standard USB-B port and is compatible with but https://www.telephonewreckers.com.au/power-shield-safeguard-... My
35.
▲
by
solraph
3y ago
> decided to write Java like it’s Haskell. I have no love for Haskell or functional programming, but the problem here isn't FP per se, it's that they tried to jam it into Java. Don't fight the language or framework. If you
36.
▲
by
solraph
3y ago
> Either I am writing really good code so there are no bugs, or I am really bad a writing unit testing code to find those bugs. Honestly, having literally had a scenario 20 minutes ago where I wrote a test for what I figured was absolute
37.
▲
by
solraph
3y ago
> Divorce is an excuse for hedonism. Sometimes? Absolutely. All the time? No. Depressingly often, it is to escape a person and relationship they desperately need to be free of. I know and am related to several people who are divorced. It
38.
▲
by
solraph
3y ago
> When you are part of the team, the code belongs to everyone. Everyone should be able to change it if it makes sense and all quality gates are passing. Yes, but actually no. Context is important here. If that code had been written six m
39.
▲
by
solraph
3y ago
Waves from Australia However, since my array is currently 4.4kw at 3 in the afternoon, a 2.5kw burst isn't a problem.
40.
▲
by
solraph
3y ago
Unlikely to happen. I sincerely doubt most headphones would have the memory for that buffer. Sure, it's only a megabyte or two of ram, but your headphones would have to spend valuable battery on keeping that ram active. From my foray i
41.
▲
by
solraph
3y ago
Yep. I have very much been bitten by these differences. Particularly for some of the funkier SQL statements where SQLite and PG handle arrays very differently. In our case, we decided it was a worthy trade off in terms of developer feedback
42.
▲
by
solraph
3y ago
Not OP, but I do this with SQLite in memory DB. If each unit only adds the tables the test needs, this is super fast, probably around 2ms per table.
43.
▲
by
solraph
3y ago
> I've never had issues with integration tests running with real databases -- they never felt slow or incurred any significant amount of time for me. I've come around on this. I used to mock the DB, especially when it was being
44.
▲
by
solraph
3y ago
I built garage door sensor using a Fibaro Z-Wave Smart Implant and $10 magnetic sensor off ebay. There's enough spare contacts on the implant to also drive the open / close contacts on the garage door if I wanted to.
45.
▲
by
solraph
3y ago
> 2. Buy devices for kids that support a parental-lock feature, which when enabled causes the device to always send metadata outwards, such as HTTP headers. These would encode "I'm a minor in Jurisdiction X" or even "
46.
▲
by
solraph
3y ago
I was under the impression that being able to transfer information by entangled photons means that "instant" (ie; breaking light speed) communication is possible. Given the article doesn't mention this at all, what am I missi
47.
▲
by
solraph
3y ago
I was using the example of income tax as an entirely theoretical example of where types won't save you in response to the GP. That said, I don't follow what you mean by "to test is business logic, not code logic." To me,
48.
▲
by
solraph
3y ago
Types are wonderful, and a good type system makes so many errors disappear / impossible, that I'd otherwise have to write tests to cover in a dynamic language. Types however, are not a substitute for unit tests. No type system is
49.
▲
by
solraph
3y ago
> (Or we could be building one 400 MW solar farm and one 400 MW wind farm every week instead for 30 years. Point is, though, we're far from being able to do that.) That's actually lower than what the USA is doing right now. &qu
50.
▲
by
solraph
3y ago
Even accepting that definition (I don't 100%, but nevermind), a CEO is still making strategic decisions that need to take into account the variety of people that report to them and how they work. For example, if a CEO in a large org de
51.
▲
by
solraph
3y ago
> And this wasn't a stupid guy, no matter what it might sound like. He might not lack intelligence, but a CEO unwilling or unable to understand the other people work in a different way to him /is/ stupid. CEO is management
52.
▲
by
solraph
3y ago
Having extensively suffered the NZ tax before moving across the ditch - but still suffering a lesser version of it here - I suspect it's a question of scale for packaging and distribution. That switch is probably a relatively niche ite
53.
▲
by
solraph
3y ago
That sounds like the ISPs problem, not the customers.
54.
▲
by
solraph
3y ago
> Who gives a shit about SOLID or OO. The people who care about and are tasked with maintaining a large long running code base. > You wanted to apply what they taught you in uni, which was Java, to PHP. Nope, that came after my time.
55.
▲
by
solraph
3y ago
Also not OP, but the linked reddit post sums up one of the major reasons I had to get out of PHP several years ago. Everything is/was moving to Laravel in PHP land. I got tired of dealing with highly coupled, non-unit testable code tha
56.
▲
by
solraph
3y ago
A variation of this is to explicitly take a job at a company to solve a problem with one language / area, with the understanding that you will do different work once that's complete. I did this with a consultancy a few years ago.
57.
▲
by
solraph
3y ago
Currently after a senior react dev, but really only around GMT+10 (give or take a couple of hours each way).
58.
▲
by
solraph
3y ago
Are they paid to actually destroy them? Or just to dispose of them how they see fit? A massive amount of those get bought by the pallet, and after they have their drives wiped/replaced get sold on Ebay.
59.
▲
by
solraph
3y ago
Agile can be this, but it requires finding a company that trusts it's SWE people. Once you have that trust, the rest of it just flows from there. But - it requires everyone to actually be willing to work this way. I work in a company&#
60.
▲
by
solraph
3y ago
> I guess you've never seen a team argue over "Definition of Done" for months. Unfortunately, I have had that conversation plenty of times. The point is to have that conversation/argument once, make a decision on what
More ›