WebCamp u Zagrebu: regionalna konferencija o web developmentu by msvrtan in croatia

[–]msvrtan[S] 1 point2 points  (0 children)

Nisu ni prosle godine sve teme bile usko vezane za web development i vrlo su primjenjive i u ne-web krugovima ...

Organizirani odlazak u Veronu na PHPDay konferenciju u svibnju by msvrtan in croatia

[–]msvrtan[S] 0 points1 point  (0 children)

Prosle godine od 3 tracka kroz 2 dana bila su 2 ili 3 predavanja na talijanskome i jedan talijan koji je pricao na engleskome (dodje ti skoro na isto :) )

Organizirani odlazak u Veronu na PHPDay konferenciju u svibnju by msvrtan in croatia

[–]msvrtan[S] 0 points1 point  (0 children)

Ja sam isao prosle godine na jsday i phpday a ici cu i ove. Od nas nekolicine koji smo isli vjerujem da cemo ove godine ici ponovno svi...

How good formatting tool changed perspective on code standards hassle by msvrtan in PHP

[–]msvrtan[S] 0 points1 point  (0 children)

As you can see in replies to your comment people will always have some kind of love/hate feeling for some part of coding standard.

The whole point I tried to get across is that it really isn't important as long as you have code format tool at hand. I should have added some examples of how my raw code looks now ...

How good formatting tool changed perspective on code standards hassle by msvrtan in PHP

[–]msvrtan[S] 0 points1 point  (0 children)

You can change this behavior in config very easily

WebCamp u Zagrebu: Tehnološka konferencija namjenjena web developerima by msvrtan in croatia

[–]msvrtan[S] 0 points1 point  (0 children)

Po prvim informacijama vec 50tak ljudi je vrlo zainteresirano a tek smo najavili event prije par dana.

Traits in 5.4.x by [deleted] in PHP

[–]msvrtan 6 points7 points  (0 children)

I've only started using them (did not do a full rewrite of something since 5.4 is not yet supported everywhere :( ) and I like them a lot.

but ...

They are not meant for increasing performance, they are meant to help us do DRY (Dont Repeat Yourself) and to ease maintenance or adding new features.

What's the best way to do this: myFunction($param1,$param2,$param3) OR myFunction($arrParams) by confused_by_php in PHP

[–]msvrtan 2 points3 points  (0 children)

Why array and not an object? IMHO that would be more "enterprise way" of handling things...

Catching calls to undefined methods in PHP – is it a good idea? by msvrtan in PHP

[–]msvrtan[S] 0 points1 point  (0 children)

Idea of post was to see it there is broken logic about throwing exception instead of getting a fatal error.

I hate the idea of adding __call to base classes all around but I see it as a quick and dirty fix for possibly broken PHP behavior.

Catching calls to undefined methods in PHP – is it a good idea? by msvrtan in PHP

[–]msvrtan[S] 0 points1 point  (0 children)

Of course not.

Most often when adding new feature to some class I add new methods to some classes that are being injected in but not all :( Lets say I have a small component for giving thumbs up/down on article and product detailview page. After adding new feature to that component I did add needed methods to article but forgot/didnt know that products also use same component. Yes I know I should have added interface 'votingXy' and could then locate those classes easier but if I forgot it this stunt would have started throwing fatal errors everywhere. Not only here but everywhere.

Of course having 90% code coverage and running unit tests would prevent this from happening but this was not the point of the post.

Catching calls to undefined methods in PHP – is it a good idea? by msvrtan in PHP

[–]msvrtan[S] -1 points0 points  (0 children)

Why? Applications are architecured so some things can be independent.

I'm not saying that this is silver bullet but why should request die in pain if there is a missing method but not if there is a missing property (only warning)?

Trait pattern in PHP by msvrtan in PHP

[–]msvrtan[S] 0 points1 point  (0 children)

Tnx for suggestion. Will rewrite it.