Posts by brunobg • 161 points
3 posts
-
1
votes1
answer410
viewsA: Loading two classes with the same name
First option, do this on the deploy instead of doing a Loader. It is easier and efficient your deploy script to rename classes once and only choose the PHP file. Runkit in production is a bad idea.…
-
5
votes3
answers11551
viewsA: Removing characters with Jquery
Use a regular expression: var mystring = "• este é um teste" mystring.replace(/•/g , ""); You can pick up and change the content with $('seletor').html(). The advantage of using regular expression…
-
0
votes4
answers1841
viewsA: Does the order of the WHERE clauses interfere with performance?
Yes, there can be performance difference according to the order of the WHERE. Mysql tries to optimize the query, not always reaching the best possible plan. One way to understand what happens is to…