Reputation
1,067
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
1 10 19
Newest
 Yearling
Impact
~27k people reached

Feb
28
comment Should controller layer create model objects or they should be created by service layer?
@sphinks oooh now I understand what you meant. In that case, I personally prefer objects, but there are situations where values/primitives make more sense for that particular method signature
Feb
28
answered Should controller layer create model objects or they should be created by service layer?
Feb
23
comment Confused about approach I should take to designing classes for a card game
I think you're waaay too concentrated on having only classes that represent objects in the real life. Yes, it helps and it's good, but in object-oriented design you can go beyond that. Having stuff like PlayerManager or DeckShuffler or HandRank or GameFlowInspector etc. is perfectly fine. Such classes represent things that don't really exist as objects in the real-world, but they help you better decouple and manage the rules and laws of the game.
Feb
18
answered How to calculate winning chances of one poker hand against another?
Feb
15
comment Is it acceptable for user agents to modify cookies other than by instruction from the server?
Once a piece of information leaves your servers and gets to your users, it's completely out of your control. So when you do get back a cookie from the user, treat it with a grain of salt.... or maybe 100 grains ;)
Jan
31
comment Help in understanding computer science, programming and abstraction
Even if you are correct, then yes, learn the low-level stuff to better understand how it all works. BUT, after you do that, you need to go to higher levels so that you can build something that is actually useful and is not excessively expensive or takes too much time to build.
Jan
27
awarded  Yearling
Jan
21
comment Is it good practice to avoid warnings and notices?
I very much agree with what @Cerad said about @. After years and years of PHP programming, I haven't used that operator. Not once. Never. Not only does it hide potential problems, it also has a performance impact: behind the scenes, PHP switches off error reporting before calling the code -> calls the code -> sets it back to its original value. These steps are expensive if you have dozens or hundreds of @ in your code.
Nov
30
comment My father is a doctor. He is insisting on writing a database to store non-critical patient information, with no programming background
@DominicBou-Samra What happened eventually with this issue ? Can you add an edit in which you tell us ? Thanks.
Nov
11
comment Maintain hundreds of customized branches over master branch
Also, since this will be a huge task (to say the least), it will be a significant challenge to even convince your managers to throw great amounts of time and money at this problem. @FernandoTan There may be questions + answers on this site which can help with this specific issue.
Oct
14
comment Is it normal to spend as much, if not more, time writing tests than actual code?
Yes, it's normal. However, I apply TDD in my work, so I may be biased...
Oct
12
comment Is it considered bad practice to have PHP in your JavaScript
That really looks like code written by an amateur. People who write web software professionally instinctively know that server-side code (in this case PHP) should be separate from templating code (HTML/CSS), which in turn should be separate from Javascript. It's just... rule nr. 0 of professional web development.
Aug
21
answered Is this a good implementation of the builder pattern?
Apr
30
answered Is it okay to have objects that cast themselves, even if it pollutes the API of their subclasses?
Apr
7
comment How should I determine my rates for writing custom software?
Best story I've read this month. Thanks :) .
Apr
7
comment How should I charge for programming things which take two minutes to fix?
@Aaronaught I thought I was the only one doing the toilet-thinking-thing. Glad to hear I'm not alone in this. Phew :) .
Mar
24
comment What to do when client have unrealistic expectations?
Could you add an edit explaining how this situation got resolved ? It may help future readers if they find themselves in a similar situation.
Feb
20
comment Why does Jenkins warn you if you tell it to check for changes every minute?
Keep in mind that if you do a big push, it might take more than 1 second for all the objects to reach the remote repository. This could possibly generate some undefined behaviour if Jenkins checks the repository every second.
Feb
20
comment Visual Studio, Git, and common code
Hint: take a look at Git Submodules, maybe it will fit with your setup.
Jan
27
awarded  Yearling