120 reputation
15
bio website retrocade.net
location Poland
age
visits member for 1 year, 5 months
seen 7 hours ago

A fanatic games developer and great fan of RPG games.


Jun
27
awarded  Commentator
Jun
27
comment Passing central objects around or having global instances?
@JohanKarlsson Sure, but you are mixing singleton (object which has only a single instance) with a singleton stored in a global object. Nothing stops you from ever instantiating a singleton class once and then passing it around, and then, if one day you need to mock or stub it for tests you are suddenly able to do it. I personally feel that the main benefit of passing around instances instead of using singletons is that it makes testing not only easier but possible. If you are not doing automated testing or your tests are big enough to not need mocking/stubbing, then the benefit is smaller.
Jun
4
awarded  Enthusiast
May
24
comment Is it OK to split long functions and methods into smaller ones even though they won't be called by anything else?
Personally I prefer a one liner even if it is slightly complex and I prefer it not. It is more important to write readable code that to write it fast. If you don't write this functionality often, it is likely to make a mistake or a stupid type. If, on the other hand, you use it often, the you should already know where this utility function is stored and use that instead.
May
10
comment Is copy & paste programming bad?
I am amazed by the fact that there are programmers who code like that. It greatly increases my feeling of job security.
May
7
comment Agile retesting
The worst thing that happens is the script screws up big and you can blame the project manager for not letting you test it, because you have an email or something else to prove that you DID want to test but were not allowed to. At least that's what working in a corporation (albeit small) taught me - all decisions go through permanent medium.
Jul
25
accepted Is PHP “list()” language construct a bad convention?
Jul
23
comment Is PHP “list()” language construct a bad convention?
@YannisRizos I am not saying it's a bad convention, I am simply asking. The question stems from the fact that I want to leave a manageable code behind me, and I am curious if list() is widely accepted as good or bad code and thus can affect the readability for further generations of programmers.
Jul
23
asked Is PHP “list()” language construct a bad convention?
Jun
25
awarded  Supporter
Jun
24
comment When do code hacks become bad?
I can't see how late binding can help in rewrite in the future, on the contrary - I can see how it might make refactoring tedious, difficult, error prone or plain impossible. Can someone explain how it could actually benefit you?
Feb
18
awarded  Scholar
Feb
18
comment Can profiling be used to verify if optimization was successful?
@James Unfortunately it's actionscript/flash, so I don't think it would work, but pretty cool thing :).
Feb
18
accepted Can profiling be used to verify if optimization was successful?
Feb
18
comment Can profiling be used to verify if optimization was successful?
You are right, pretty much. I am too used to measuring performance relatively to a different implementation, not as how it relates to the whole application performance. I guess it comes from my game development background where performance is important everywhere. And my microoptimization deviation.
Feb
18
comment Best practice to sync long paths to filesystems where path length is limited?
Adobe AIR is also subject to the ~255 characters limit with File operations even on Windows 7.
Feb
18
awarded  Student
Feb
18
awarded  Editor
Feb
18
comment Can profiling be used to verify if optimization was successful?
@AnthonyPegram I guess I've phrased myself incorrectly. I've modified the question to make it clearer. I am not talking about big bottlenecks but rather about not-easily replicable scenarios where the gain might not be as large as in your average bottleneck.
Feb
18
revised Can profiling be used to verify if optimization was successful?
Modified ab it