cepa
Members
-
Joined
-
Last visited
Reputation Activity
-
cepa got a reaction from Mythriel in PHP devs stop doing things bad!well, Im working in php including zend, phpunit and so on, full time for much more than 4 years, can I be called php developer ;d?
OOP takes more time than procedural?
BULL****! yes, you can write a SCRIPT much faster without oop BUT you will need to do that EVERY TIME, so in fact it is a monkey job, not to much effective because you will spent most of the time doing the same stuff again and again.
Reusability?
YES IT WORKS! We write code ONCE, and use it WITHOUT modifications everywhere! Why ppl invented design patterns? Exactly to do that!
Well, usually I'm not working on simple projects. More than 500 thousands lines of code is a standard, in such a project there is no time to write custom things, if you need to do a custom thing write it in a way that it can be used later - use abstractions.
Of course it take time to write a good code, because we write tests (unit tests, load tests, integration tests, etc...) but from the other hand we dont spend time on bug fixing because the amount of bugs is MINIMAL, it also means that we can give a guarantee to a customer especially if the customer is a big or well known company.
I dont think PHP is the best technology. I rather think it sucks, but from the business point of view PHP is awesome because it gives you a sellable value in a short amount of time and effort. You can create something that works much faster than in Java.
But it also depends on the project...
Performance?
BWAHAHAHAH! PHP and performance... ppff....
C'mon guys, this language wasn't designed to be the fastest on this planet. For example it is ~300 times slower than C in single character operations, like text processing.
Did you work on a project that is being executed on a cluster? I did, and trust me, php is executed very rarely because it is too slow. This is also why OOP work here - the code doesnt have to be super fast. It is ok if a response generation will take around 1 second, in most cases it will be cached and served many hundreds or even thousands times per this one second.
Well, PHP is just a tool, its not a way of life. It suits some project, other should be written in Java, and even C/C++, the point to be a good programmer is not to be a single language fan, but to know which tool is the best for solving a problem.
-
cepa got a reaction from Lone Akita in how to test scripts!?1) unit testing -> phpunit
2) acceptance testing -> selenium rc
3) load testing -> apache benchmark, jmeter
-
cepa got a reaction from pbb76 in Large image uploads PHPi think there is no simple solution to that, and JS won't help you too much, first of all if you use php for download it has its own limitations. If i were you i would try webdav/ftp and/or java applet.
-
cepa reacted to skidz in Is it posible?Easiest option: (Definately not the best) <iframe>
-
cepa got a reaction from roothost in XML Sitemap - Automatically updatingyou can create a script named for example sitemap.xml.php and make a transparent redirection in .htaccess to make it available at http://domain.tld/sitemap.xml
inside that script just make a simple SQL select and generate a simple xml content
thats it
RewriteRule ^sitemap.xml$ /sitemap.xml.php
-
cepa got a reaction from SEOAhmed in Alternative to PHP $_SERVER['REQUEST_URI'] ?quite odd o.O
could you show this:
<?php var_dump($_SERVER);
there should be something you could use instead
-
cepa got a reaction from SEOAhmed in Alternative to PHP $_SERVER['REQUEST_URI'] ?<?php phpinfo();
please copy an output here
-
cepa got a reaction from SEOAhmed in Alternative to PHP $_SERVER['REQUEST_URI'] ?omg you have an ancient version of php 5.1 is ooold
apache_getenv('REQUEST_URI') should work
-
cepa reacted to DesignerX in What real designers drink? :)Not sure about 'real' designers, but I suspect that quite a few of today's designers drink this just before nap time...
-
cepa got a reaction from SniderDK in What real designers drink? :)lol, but personally i prefer virgins ;D
or...
The "Bimber" (eng. Moonshine, above 90%vol) , this is how it is being produced:
i (dont) remember the last time i tasted it, my head changed place with my butt afterwards...
-
cepa got a reaction from Jock in My database class, feel free to use it1) singleton is a bad pattern, you should avoid using it, it makes code hard to test
2) if you want to use singleton then, __construct should call connect method, it is called a lazy connection
3) numRows is crazy dude you want to fetch all records of a super big table!?
-
cepa got a reaction from MikeChipshop in Contact form... huh?try to replace this:
if (isset($_POST['submit'])) {
by this:
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
hope this helps
-
cepa got a reaction from MikeChipshop in programmer's portfolioHello,
I'm not a designer just a programmer, yesterday I published this website:
www.cepowski.pl
it is my small portfolio, could you tell me how it looks for you, what should be changes/removed/improved.
Thanks in advance for any feedback