Miguel Ulloa
Member since Nov 5, 2013
- Profile: /members/11387-miguel-ulloa.htm
- Comments: 8
Recent Blog Comments By Miguel Ulloa
-
It Walks Like A Duck, It Quacks Like A Duck, But It's A Donkey - The Problem Of Inappropriately DRY Code
Posted on Mar 18, 2015 at 11:09 AM
I am doing some refactoring of some Gateway methods and it reminded me, not so much in my current job but other jobs in the past, I seen these huge generic queries with lots of arguments passed in and conditional logic generating different dynamic queries depending on the parameters passed. They we... read more »
-
Creating Objects With A Null Prototype In Node.js
Posted on Mar 11, 2015 at 3:55 AM
@Ben, I was just thinking maybe the danger is the proliferation of JavaScript ignorance. I mean prototypical inheritance seems weird to people coming from Class languages like Java. People with this background may be tempted to just create naked objects because they look more familiar. Unfortunate... read more »
-
Creating Objects With A Null Prototype In Node.js
Posted on Mar 9, 2015 at 9:13 AM
I heard about Object.create() in the context of it is evil and it is going to detroy JavaScript. I wish I would have heard the rational behind such a claim. Looking at your example, it think it makes for cleaner, more beginner friendly code. New people often do not assume they have to check hasOwnP... read more »
-
It Walks Like A Duck, It Quacks Like A Duck, But It's A Donkey - The Problem Of Inappropriately DRY Code
Posted on Mar 8, 2015 at 10:17 PM
@Gion, I have not discussed my personal design process, i was only using the language used on the reference I provided. I actually attempt to use whatever design paradigm I think best fits my Story. BTW, that resource Is great. I often recommend it to devs with OO fiver. Umm, you actually reinforce... read more »
-
It Walks Like A Duck, It Quacks Like A Duck, But It's A Donkey - The Problem Of Inappropriately DRY Code
Posted on Mar 8, 2015 at 11:40 AM
Hey @Mark, I guess I have been less lucky. I think I've seen more crimes with people not using DRY more than with over using it. I used to work for a company where implementing a new client meant copying the entire app's code and pasting it into another folder. After doing this hundreds of times ma... read more »
-
It Walks Like A Duck, It Quacks Like A Duck, But It's A Donkey - The Problem Of Inappropriately DRY Code
Posted on Mar 7, 2015 at 2:43 PM
As @Andy suggested. I guess the lesson is to be suspicious our coding strategies. Communicating these to other developers could have resulted in better more maintenable code.... read more »
-
It Walks Like A Duck, It Quacks Like A Duck, But It's A Donkey - The Problem Of Inappropriately DRY Code
Posted on Mar 7, 2015 at 4:38 AM
I could see you may be able to use the Strategy Pattern to address the issue. That way you can have two unique concrete implementatione but still use the two cars just the same.... read more »
-
Stateless Service Singletons vs. Stateful Service Entities
Posted on Nov 5, 2013 at 11:24 PM
Ben, Like you, I have recently started experimenting with this myself. I also been creating a huge service classes using singletons until one day it hit me. "I am not really doing OO programming, I am really just defining class full of functions." I hit this problem while trying to reuse ... read more »