410 reputation
1416
bio website gaman.pl
location Upper Silesia, Poland
age 35
visits member for 2 years, 9 months
seen Mar 24 at 14:00

I'm just an average person, that uniquely combines strict, engineering mind with a non-schematic, humanistic and magical way of looking on life and surrounding world.

Add a little bit of madness, and you'll get entire picture of me! :]

I'm a developer, both desktop and mobile, with 15+ years of experience and 50+ small-to-big projects on account. In the very same time I'm a writer with similar experience and a lot of books, articles, blog posts or own blogs ideas on account.


Mar
24
accepted Recurring database migration
Mar
24
comment Recurring database migration
Yes, you're right. And sorry. In Yii, the migration system works like this: each successfully applied migration is added to internal migration table in database, which assures, that each migration wil be applied only once. This, of course does not cover migrations, that fails at any point. Therefore, to implement, what I was suggested, such recurring migration would have to tamper with timestamp in that internal migration table, to make itself "always on top". Hope, that clears some doubts.
Mar
24
comment Recurring database migration
I'm using database migrations in Yii and Yii2 PHP frameworks. However, that shouldn't matter (?) as I'm asking for a general rule of a thumb here (that's why posting on Programmers, not on SO).
Mar
24
asked Recurring database migration
Mar
16
awarded  Yearling
Feb
1
awarded  Famous Question
Dec
19
revised Why do we have to use break in switch?
Formatting. Answer contains an answer to two separate problems. Underlining each question answered.
Dec
19
revised Why do we have to use break in switch?
formatting
Dec
19
suggested approved edit on Why do we have to use break in switch?
Dec
19
comment Why do we have to use break in switch?
Thanks for a great answer with a lot of examples.
Dec
19
comment Why do we have to use break in switch?
Thanks for the Duff's Device example (+1). I was not aware of that.
Dec
19
suggested approved edit on Why do we have to use break in switch?
Dec
19
accepted Why do we have to use break in switch?
Dec
18
revised Why do we have to use break in switch?
added 1 character in body; edited title
Sep
25
comment Is the KISS principle more important than utilizing OOP to solve a problem?
+1 for a good answer and a great fun, though an obsessive-compulsive code reviewer with a gun, that knows where you live is worth at least +5! :>
Sep
25
comment Is the KISS principle more important than utilizing OOP to solve a problem?
While I agree with you in general (+1), in this particular example (logic already known, to plans for future re-use), class seems to be a little bit overkill IMHO.
Sep
25
accepted Is the KISS principle more important than utilizing OOP to solve a problem?
Sep
25
comment Is the KISS principle more important than utilizing OOP to solve a problem?
@gnat As I said, this is question to feed my curriosity. No one is actually pushing me to anything. :]
Sep
25
comment Are value converters more trouble than they're worth?
This is the longest question, I've ever seen in the entire SE! :]
Sep
25
asked Is the KISS principle more important than utilizing OOP to solve a problem?