Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jwdunne
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
42 ms
·
391.
▲
Do we really know what makes us healthy? (2007)
(mobile.nytimes.com)
1 points
by
jwdunne
9y ago
|
0 comments
392.
▲
by
jwdunne
9y ago
I just looked up the nonlocal keyword, my python isn't strong. I'll hold my hands up - python wasn't a good example here. I was under the impression you could use and mutate outer scope variable.
393.
▲
by
jwdunne
9y ago
Food for thought. Your comment shows a wide range of knowledge and covers things I haven't thought about. I was reading about the history of Simula and how the majority of OOP features originated there. It was built as a simulation lan
394.
▲
by
jwdunne
9y ago
Ruby influenced my opinion. What I described above wasn't duck typing plus responds_to - maybe it sounds like a whole lot of sugar on that. It was keeping the taxonomy separate, with behavioural sharing through composition only. I was
395.
▲
by
jwdunne
9y ago
I think there is a misconception with that number. It originally comes from a paper on deliberate practice from Anders Ericsson. You could spend 10,000 hours playing golf but it's highly unlikely you have spent 10,000 hours in delibera
396.
▲
by
jwdunne
9y ago
I guess what I'm calling for is a language that directly supports ECS :) it's currently a pattern that works well and any good pattern should be one a language feature.
397.
▲
by
jwdunne
9y ago
Thank you - I think this was probably the inspiration or seed for what I was thinking :) I was amazed when I saw the ECS architecture when I filled my toe into game development. I remember wanting to apply it to other areas outside of game
398.
▲
by
jwdunne
9y ago
I haven't looked at Scala closely. I'll take a look - thanks for the tip :) This is something I'm thinking about a lot. I've been wanting to sit down and sketch out what it would look like in terms of syntax / struc
399.
▲
by
jwdunne
9y ago
PHP scoping is what happens when each scope, including parent and child scopes are completely isolated (except 'superglobals', of which globals are within). To create a closure, you must use "use" and specify the variabl
400.
▲
by
jwdunne
9y ago
Exactly and the languages don't express that practice. We get design patterns / DI and maxims like composition over inheritance. Our languages still make it easier to inherit than to compose despite all that. Plus, my wider point
401.
▲
by
jwdunne
9y ago
Except in language(s) that default to the global scope without declaration. I admit it though - if the compiler doesn't, a static analysis tool will do my point is shaky. I'm not passionately for implicit declarations. I just don&
402.
▲
by
jwdunne
9y ago
Yep, exactly! We now have a bunch if OOP languages that provide language features for inheritance making it easy but composition is an emergent property entirely based on existing language features - it's not a language feature itself.
403.
▲
by
jwdunne
9y ago
I thought about this. I would just avoid the need of declaring a variable with the same name as one in the enclosing scope. That means minimisation of global variables, minimisation of lexical pyramids, etc. Generally good things with or wi
404.
▲
by
jwdunne
9y ago
I love how much this comment makes me think. Thank you! To be honest, this sounds like a hell hole no matter what you did. It's a complex program that services two domains. I would say that in the real world, a frog studied in a pond a
405.
▲
by
jwdunne
9y ago
That's just a problem of context. With the taxonomy separate, the objects can be different things in different contexts. With de facto OOP, you have no hope in hell because the taxonomy is hard coded to the structure of the object itse
406.
▲
by
jwdunne
9y ago
Python and Ruby do this without a problem. Many others do it too. If there's a set of complaints about those two languages, variable scope isn't in the top ten. If you're gonna do lexical scoping or some variation of, default
407.
▲
by
jwdunne
9y ago
I think the big problem with OOP is that it's designed to simulate the real world but has the real world backwards. Real world objects are a composition of parts. The taxonomy of those objects, and its constituent parts, is am artifici
408.
▲
by
jwdunne
9y ago
No it isn't. If Jobs wasn't a dick and alienated 90% of people with his behaviour, he would have had more sway.
409.
▲
by
jwdunne
9y ago
I quite liked it. The struggle was interesting. Reminded me of The War of Art by Pressfield, but less or more extreme depending on how you look at it.
410.
▲
by
jwdunne
9y ago
Great book recommendation btw. On Writing Well by William Zissner is a great one too. Less autobiographical (but the Stephen King bio IS great and inspirational - still recommend)
411.
▲
by
jwdunne
9y ago
The final straw was Jobs trying to oust John Scully. John Scully said me or him. Board went with Scully. The point is that a lot of his actions that directly let up to that made him a dick. In Jobs case, his destructive behaviours didn'
412.
▲
by
jwdunne
9y ago
Shkreli hasn't yet learned. Perhaps his financial analysis videos were a movement in the right direction. Jobs apparently calmed down after his ousting at Apple post-coup attempt, learning better how to lead. He refused to listen to th
413.
▲
by
jwdunne
9y ago
There is enough evidence out there to show they treated people they worked with less than well. Are you saying that Steve Jobs wasn't a dick to his staff and to the board? Are you saying that trying to stage a coup in the workplace isn
414.
▲
by
jwdunne
9y ago
Well, if you're a dick, there's gonna be an upper limit on how far you go with your intelligence. I don't think there's value in quantifying that with some hokey quotient. Take, for example, Shkreli. Major dick but prett
415.
▲
by
jwdunne
9y ago
Thank you - I never thought of that. I guess I've always subconsciously discounted due to being master of none. I suppose a "learn with me" approach is good :) again thank you!
416.
▲
by
jwdunne
9y ago
Recently used Lumen in a project. Very nice microframework based on laravel packages and a faster router. With PHP7, I recommend reading the RFCs too. Some nice stuff on the way.
417.
▲
by
jwdunne
9y ago
This is perhaps the most valuable thread I've come across on HN. I've been thinking about blogging for a while - thank you for the motivation! One other thing I struggle with is topic. Everyone says niche but I'm not niche -
418.
▲
Ask HN: Great books / resources on API design?
3 points
by
jwdunne
9y ago
|
0 comments
419.
▲
by
jwdunne
9y ago
I imagine some kind of analogue to gensym would work there. The name can be throw away and guaranteed unique in scope. In fact, a lot of SICP examples have you define a function within a function with a name like "iter" for TCO re
420.
▲
by
jwdunne
9y ago
I also recommend a visit to the new submissions section. There's a lot more there too.
More ›