Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Ace17
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
34 ms
·
271.
▲
by
Ace17
9y ago
Why did we need the databases in the first place?
272.
▲
by
Ace17
9y ago
There are some (rare) occasions, when private members drag new dependencies that you don't want the user of your class to know about. You can also do "pImpl", which is similar, if not worse, in terms of boilerplate, but doesn
273.
▲
by
Ace17
9y ago
> bad coders are still going to make a massively coupled mess even if you force them to use DI. DI isn't mean to be silver bullet, and bad coders are going to make a mess, whatever technique you try to impose on them.
274.
▲
by
Ace17
9y ago
Screenshot, please!
275.
▲
by
Ace17
9y ago
> What's the practical difference between an abstract class and an interface? C++ doesn't have "interfaces". No wonder you think there's too much stuff.
276.
▲
by
Ace17
9y ago
Having 100% code coverage is like having 0 warnings (although it certainly is a lot harder). In this situation, your tools are not telling you "all's good", but rather "I can't detect anything suspect here".
277.
▲
by
Ace17
9y ago
See the paper "On the Danger of Coverage Directed Test Case Generation". http://link.springer.com/chapter/10.1007%2F978-3-642-28872-2... The idea is that a test suite can have 100% coverage and still be a ver
278.
▲
by
Ace17
9y ago
> That's why we have a scrum master to do the dirty job and assure everyone is talking each other. Encouraging communication is a great goal ; but trying to force it on a regular basis might have the contrary effect.
279.
▲
by
Ace17
9y ago
Maybe Hollywood knows women are less likely to lose their time watching lots of blockbusters?
280.
▲
by
Ace17
9y ago
One word: inversion of control.
281.
▲
by
Ace17
9y ago
Embedded C programmer here. What you say is technically true, however, wiring interfaces and vtables manually in C is a real PITA, to the point that you think twice before introducing a new interface between two components. OO languages mak
282.
▲
by
Ace17
9y ago
Obligatory Casey Muratory rant: https://www.youtube.com/watch?v=_xLgr6Ng4qQ
283.
▲
by
Ace17
9y ago
> In reality, most software that is actually made is custom software. Do you have a source for this claim? (not denying, just curious to look at the numbers!)
284.
▲
by
Ace17
9y ago
Like, say, run smartphones or webservers?
285.
▲
by
Ace17
9y ago
Just because a language feature is hard to implement doesn't mean we should abandon it. I'm not going back to explicit error handling.
286.
▲
by
Ace17
9y ago
> D is just basically C++ with optional garbage collection and better syntax for meta programming, but without the vast Universe of existing C++ libraries to leverage. Phobos, the D standard library, makes C++ standard library look very
287.
▲
by
Ace17
9y ago
> D's attempt to become an alternative to C and C++ was eclipsed by Rust, which doesn't have the GC overhead and has a ton of other really compelling features. Rust isn't just a better C++, it imposes a new paradigm over r
288.
▲
by
Ace17
9y ago
Please note that, GC or not GC, you still can have deterministic destruction (e.g RAII).
289.
▲
by
Ace17
9y ago
They work fine. Everything is captured by reference, and is ultimately garbage collected. Unlike C++, you're not required to use a special "local function" syntax.
290.
▲
by
Ace17
10y ago
Thanks!
291.
▲
by
Ace17
10y ago
I don't get it. AFAIK the goal of optimizers is to generate faster code while preserving the initial visible behaviour. If the initial behaviour is undefined, what can an optimizer try to preserve? Could someone give an example on how
292.
▲
by
Ace17
10y ago
The run-time cost of C++ abstractions is also NOT what I was talking about. I was talking about how C++ requires more communication with your team, because some "abstraction" features you might not want (RAII, RTTI, polymorphic di
293.
▲
by
Ace17
10y ago
int* p = malloc(256);
294.
▲
by
Ace17
10y ago
Like C, C++ doesn't force you in any way to have extra useless abstractions over the hardware. The rest of your team do (and C make this way harder).
295.
▲
by
Ace17
10y ago
> lack of coverage isn't necessarily an indicator of lacking quality. "lack of coverage" mostly means "untested code". My experience is that it's very hard to keep untested code to a high quality level. Any
296.
▲
by
Ace17
10y ago
Another kernel written in D: https://github.com/xomboverlord/xomb/tree/unborn
297.
▲
by
Ace17
10y ago
Professional D coder here. - DMD is by far the D compiler with the shortest compile time. It's actually so fast that it comes with a utility, 'rdmd', which compiles-then-execute a D program. Say goodbye to shell/perl
298.
▲
by
Ace17
10y ago
Interesting. I'm not fully convinced by components either, I don't like the idea of the bullet behaviour code having to check if "this entity has 'propeller' and 'rigid_body' components", as if the bu
299.
▲
by
Ace17
10y ago
> Unless we are talking about multiple threads here (which we aren't), there is no other code that is executing that can change what this const reference is pointing to. ... except if your code calls potentially 'impure' f
300.
▲
by
Ace17
10y ago
> Bullets probably would be simple structs in a shooty game, not full blown entities. Why not? You still need to render bullets, to load/save them to disk, to synchronize them over a network ; some of them move by themselves, they p
More ›