Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
chton
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
34 ms
·
301.
▲
by
chton
12y ago
Scala's implementation is definitely an interesting and a valuable one. I'm not debating that inheritance-based mixins are useful, they definitely are. It's just that they aren't necessarily inheritance-based, and there
302.
▲
by
chton
12y ago
It's true that they can be implemented in the same way, but the idea remains the same. Seeing mixins as inheritance is a far narrower definition than held by most languages (or libraries) that implement them. Mixins don't put an
303.
▲
by
chton
12y ago
the idea is that you create a mixin that has only the reference to the physics object and the forwarding methods. If you implement that mixin, it will be exactly equivalent as writing them out in your class, but you are spared from having
304.
▲
by
chton
12y ago
that's a good point, in the process of trying to use composition the author has made a (very) leaky abstraction.
305.
▲
by
chton
12y ago
That's true, but there are a huge amount of resources about this particular thing already. It's pissing in the ocean by this point.
306.
▲
by
chton
12y ago
I haven't really noticed that this particular horse needs much beating (I work mainly in the C# world). It's drilled so well into beginner programmers that they tend to forget other principles like Single Responsibility.
307.
▲
by
chton
12y ago
While it's a well-written article, it really seems like beating a dead horse. Composition over inheritance is a basic rule of OO programming, so much so that it has its own wikipedia page ( http://en.wikipedia.org/wiki&
308.
▲
by
chton
12y ago
The Lessons Learned is the most valuable here. The ugliness doesn't matter, stand out and address your potential clients on their level.
309.
▲
by
chton
12y ago
indeed not, there's a limitation on the size of objects. Too bad, but come on, who honestly expected that to work right?
310.
▲
Pective shows the actual size of things
(pective.com)
2 points
by
chton
12y ago
|
3 comments
311.
▲
by
chton
12y ago
while true, that doesn't make it a bad comparison. Languages like Swift are one step up on the foodchain, they provide more abstraction. Comparing to a popular language one step down is a good way of showing the cost (or lack thereof
312.
▲
by
chton
12y ago
Record noted. Now I find it unfortunate that the title here was changed, we went through all this text for nothing :)
313.
▲
by
chton
12y ago
Awesome, that's what I hoped to hear. I'll definitely be trying it out then, anything over CSS :p
314.
▲
by
chton
12y ago
A knight for the good cause, then :)
315.
▲
by
chton
12y ago
Alliteration is always a good reason :) I shouldn't have been so short with you. I've just seen one to many articles where Swift is made to be seen as Apple's godly gift to software development, without any references to simi
316.
▲
by
chton
12y ago
How does this work with changing style from Javascript? Can I change constraints at runtime and have the entire page be recalculated? I'm not familiar with the Cassowary solver, can it do partial invalidation? or would it need to reca
317.
▲
by
chton
12y ago
These aren't exactly secrets, are they? Vtables and similar optimizations have been used in Java and .Net compilers for a long time. For a good explanation in C# you can read http://netmatze.wordpress.com/2013/04&#
318.
▲
by
chton
12y ago
hmm that's a very good point, I didn't consider that. We'd need additional benchmarking to know what the actual impact is and at what point the @tailrec version becomes more desirable.
319.
▲
by
chton
12y ago
As were we, and MS has learned a lot since then. The SLA has improved and become more strict, and they've improved communications since then. There is still a ways to go, but that's true of all hosts. It's important to note
320.
▲
by
chton
12y ago
I agree completely. It's important to weigh all the options, and include issues like vender lock-in, SLA and future requirements.
321.
▲
by
chton
12y ago
Ah. Those are good reasons not do it, but maybe a middle ground that a warning could be shown? Duplicate posts like this are usually a simple case of not knowing it has been said before, so a warning would be enough to nip it in the bud.
322.
▲
by
chton
12y ago
You should read up on the SLA. If you need more assurance than Azure can offer (or any cloud host, since statistically Azure has one of the best uptimes), you shouldn't have tried it in the first place. I don't know who sold you
323.
▲
by
chton
12y ago
Don't forget to also compare the costs to doing in-house hosting. The cost effectiveness of any platform is dependent on how you use it, and (as pling discovered) a cloud host isn't necessarily the best option.
324.
▲
by
chton
12y ago
Maybe it would be a good idea for HN to chop off the protocol when comparing to old posts?
325.
▲
by
chton
12y ago
Last-Modified: Tue, 01 Jul 2014 22:03:05 GMT according to the headers. It probably hasn't been up for much longer than that, or it would have been found already.
326.
▲
by
chton
12y ago
While it felt a bit chaotically written (maybe due to my lack of in-depth JVM knowledge), a very interesting article. Is there a way to detect when these cases happen? If there was, the compiler could choose to ignore the @tailrec directive
327.
▲
by
chton
12y ago
what if I break in to the network through a web server? or happen to find an open network port in my hospital room? Security is done in layers. Physical access is 1 layer, network security is another, requiring proper authentication/a
328.
▲
A Software Development Profession
(guntherverheyen.com)
2 points
by
chton
12y ago
|
0 comments
329.
▲
by
chton
12y ago
If your data can be reached by everyone, completely unsecured, that's not a weird design. That is just plain wrong. Security does matter for these things, because human lives and identities are at stake. Health data is far more importa
330.
▲
by
chton
12y ago
That's a good point, and it's a problem that exists in plenty of other industries too. Nobody will bat an eye if a workman arrives to access the server.
More ›