854 reputation
26
bio website
location
age
visits member for 2 years, 5 months
seen 41 mins ago

Apr
6
comment Separating php and html code
Not exactly a duplicate question but has very big overlap where I wrote about some pieces of this question: programmers.stackexchange.com/a/234745/46605
Apr
3
revised PHP coding practice
added 566 characters in body
Apr
3
answered PHP coding practice
Apr
3
answered CakePHP: Automation triggers after save - best done as component or behavior?
Apr
3
comment Developing an big system in a a small company
Can you deliver in small pieces or do you need to deliver a full system completely before it is usable? If you can deliver small pieces: 1. Staff management, 2. Capacities, 3. Basic work schedule etc. then you might have a much bigger chance to make your existing clients continuously happy.
Mar
31
comment Maintain git fork with changes
You last option seems very nice to answer all your questions. Adding a new dependency to your main library is not really great so no real option. In fact what you are asking is something like: "How do I support plugins which can extend functionality." Maybe search in that direction more instead of directly thinking in classes.
Feb
2
awarded  Yearling
Jan
22
comment Unique and primary keys on a database (mysql)
Yes there are multiple ways but the advised way for new implementations is the one noticed. Since the new methods: php.net/manual/en/function.password-hash.php there is even flexibility to upgrade the hashing algorithms resulting in better code. It is correct that pure in essence also sha1 for example might suit needs but the full solution of PHP is stronger and there are less coding issues possible because of the salting methods included. Developing your own security systems is always a great risk.
Jan
16
comment How to approach design to minimize conflicts when distributing individual locations to merchants
The issue is simple, there is no differentiating factor except Time. So Time defines profit. So, yes the will get up early. If you want to solve this you have to add another factor or replace factor time completely since it's giving issues. For example: Price, upfront payment, reputation, best looking stalls etc. That is the only way something is going to change. So first fix that business issue and then start thinking again about collecting / scheduling locations from that new situation. Software won't solve business model issues directly.
Jan
16
comment Online vs Web - write once application
You don't want to write 2 applications, makes totally sense. Did you think about an architecture with one business layer (on your servers) with 2 separate clients using the API of the business layer? So you only create 2 "clients" or "interfaces" but all business logic only once? Then you can implement later also for example a native iOs/Android app using that business layer.
Jan
10
comment Auto Transaction Failsafe's, Third Party API's, Coldfusion Schedule Files
Can you detect whether it's a duplicate? So: lock, select * from invoices WHERE month=januari, if not found: add, unlock.
Jan
10
comment Is a development environment required for small projects?
sometimes you can create a working copy of the template. Then switch to that template based on for example your IP address. BUT at first: download a full back-up or create some tar.gz file of it and keep it in at least 2 places.
Jan
10
comment Should I Aggregate Web API Errors?
Did you succeed? Fixed the issue?
Jan
5
comment How discrete should a RESTful API be?
What part of REST do you want? If you just need a simple API not worrying about the standards you can handle it just like the accepted answer of thorsten müller. If you want a real REST you need to search for Roy Fielding (+dissertation for example). He is the inventor of REST. You will see that for example the idea that a resource == a table is not the truth. You will also find that for example for your question a PATCH HTTP method is quite common to use for updating one or more fields. Where the POST or PUT (lots of debate here) method can be used for complete updates on a resource.
Jan
5
answered Should I Aggregate Web API Errors?
Jan
3
comment Unique and primary keys on a database (mysql)
Please google on that md5 and use something better than that like sha1 of better: crypt: php.net/manual/en/faq.passwords.php on part: "Why are common hashing functions such as md5() and sha1() unsuitable for passwords?"
Dec
23
answered Is it OK to use email as an identifier in a RESTful URI?
Dec
20
comment Should I pass an object or values?
Did you try adding a Transaction class? So you can do: $transaction->addProduct() etc?
Dec
16
comment Pointers for transitioning from SOAP to REST based services
Is the back-end well separated from the soap interface? Do you need to make big structural changes to the back-end to add this new rest interface?
Dec
5
comment I have a unexceptional exception. That is thrown by a API used in my project. Is it standard to log errors like these or handle them without logging
You don't get an "amount of requests left" message with the normal responses? That would even prevent the exception.