Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nahname
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
34 ms
·
301.
▲
by
nahname
14y ago
Their effect of adding a mixin is similar to macros, but they provide the same abilities as composition. I wouldn't be surprised to find that mixins were based off of macros. They work really well in places where I would compose behaviour i
302.
▲
by
nahname
14y ago
Multiple Inheritance is one of those things I really just cannot understand. From my experience, inheritance is almost always the wrong solution. Composition being the correct tool. Mixins are based on the concept of composition. In my opin
303.
▲
by
nahname
14y ago
Neither is very palatable. MyApp.president = Ember.Object.create(({fullName: (function() {return this.get('firstName')+' '+this.get('lastName');}).property('firstName', 'lastName')})); MyApp.president = Ember.Object.create fullName: (->
304.
▲
by
nahname
14y ago
If you were to read the equivalent javascript as a one liner it would be hard to read too. Probably more so. Really, all you are pointing out is that you can write shitty code in any language. No language protects you. If you write beautifu
305.
▲
by
nahname
14y ago
Maybe this is what added to the delight of playing minecraft. Every world was a new adventure, waiting to be explored.
306.
▲
by
nahname
14y ago
>"I can only write my Ruby code but can't handle operations" is not the right attitude, grow up. How is such a condescending post at the top? Everyone running a startup is an idiot because they choose not to waste their time on your pri
307.
▲
by
nahname
14y ago
Ouch. Defending VB in this case really speaks poorly of 3D printers.
308.
▲
by
nahname
14y ago
Learn technologies that are popular, such as jQuery. The community will help make this easy. You will use jQuery on almost every project, so this will be time well spent. Master components that are core, such as JavaScript. You will use Jav
309.
▲
by
nahname
14y ago
You don't annotate anything. It simply becomes the following, ... public Repository(ISessionFactory factory) ... The repository never knows about IoC or where things come from. Nor should it.
310.
▲
by
nahname
14y ago
IoC is automating the code required to wire up objects that are properly decomposed. When you spend a long time learning how to effectively work with static languages, a few things come out. Dependency inversion and composition. Where does
311.
▲
by
nahname
14y ago
Very relevant video from Gabe Newell about this topic. http://www.youtube.com/watch?v=t8QEOBgLBQU&t=22m30s
312.
▲
by
nahname
14y ago
I've seen the opposite. When the team is that close it is difficult to hide your ineptitude. Team members that don't contribute get outed pretty quickly and tend to leave. This is generally viewed positively by those that are core contribut
313.
▲
by
nahname
14y ago
This has been very true in my experience. Even having the team in the same room and the same space, but with individual cubicles can be insufficient. It is really hard for people, especially developers, to let go of their personal space. I
314.
▲
by
nahname
14y ago
Method length should be 1 to 3 lines. Longer and you are incurring technical debt. The function name should be descriptive and it's description shouldn't be, 'adds_one_to_a_number_unless_override_is_on_then_it_subtracts_four_except_when_glo
315.
▲
by
nahname
14y ago
They were not transforming any enterprises, they were selling working software. That is a much simpler problem. Most companies do not care about your internal methodologies, they only care about delivering what they need. This does raise an
316.
▲
by
nahname
14y ago
The View Model has a dependency on a repository that is injected in via constructor injection. I don't think you understand what DI means.
317.
▲
by
nahname
14y ago
Maybe I am the crazy one, but it feels like the real issue is that design practices are just less practical (mature?) than software engineering ones. We both strive for perfection and idealize great work. The difference is that few places a
318.
▲
by
nahname
14y ago
Perfection is unobtainable by it's very nature. If you froze the world and left the designer alone for centuries what came out would not be perfection. Don't kid yourself that it would be otherwise.
319.
▲
by
nahname
14y ago
C# truly is one of the diamonds in the Microsoft software dirt heap. It is unfortunate that there isn't something Microsoft sanctioned like UIKit for dotnet. However, I think ReactiveUI ( http://www.reactiveui.net/ ) is quite close and reas
320.
▲
by
nahname
14y ago
They are also very good at keeping teams isolated from useless work so they can get the important stuff done.
321.
▲
by
nahname
14y ago
The prevention of bikeshedding is one of rail's greatest strengths.
322.
▲
by
nahname
14y ago
Once the monitor is so large that you need to move your head to view it all, you have gone too large. Almost no one wants to stare at a wall sized monitor from 2-3 feet away.
323.
▲
by
nahname
14y ago
Some of the generators for MVC are getting closer to rails. They are still pretty painful. T4 templates (commonly used in some of the nicer generators from nuget pacakges) requires EntityFramework. Furthermore, the templates themselves are
324.
▲
by
nahname
14y ago
The full scaffolds yes, but the generators are really nice. Like so many things in programming, the real value is for those that don't need it though. Yes, I could cd into the models directory and create the test file and then jump out and
325.
▲
by
nahname
14y ago
Rails generators create the code you would write anyways. The MS generators created technical debt. Highly duplicated, ridiculous inclusions, questionable formatting and regions by default. It literally generates a code sample of what not t
326.
▲
by
nahname
14y ago
I meant that it was rare to find a pair that you function like that with. If you have two senior developers who can do this and are not letting them pair, you are introducing serious amounts of waste.
327.
▲
by
nahname
14y ago
I used to feel the same way. It largely depends on who you are pairing with. Nearly every experience for me was unique. The part I keep chasing after is your first point. I usually work that way when solo. But with a good pair, it is the sa
328.
▲
by
nahname
14y ago
It is always difficult to explain this part to people. That simple typo that stops you for five minutes while typing? Your pair caught it before it ever happened. Saved five minutes right? Not exactly. The stoppage of flow to fix the trivia
329.
▲
by
nahname
14y ago
My previous company had dozens of devices to approximate the hundreds (we had our own pictures of tables littered with android phones). They faced ridiculous issues like HTTP not being properly supported. Don't delude yourself into thinking
330.
▲
by
nahname
14y ago
https://twitter.com/Humblebrag
More ›