Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

cepa

Members
  • Joined

  • Last visited

Reputation Activity

  1. Like
    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.
  2. Like
    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
  3. Like
    cepa got a reaction from pbb76 in Large image uploads PHP   
    i 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.
  4. Like
    cepa reacted to skidz in Is it posible?   
    Easiest option: (Definately not the best) <iframe>
  5. Like
    cepa got a reaction from roothost in XML Sitemap - Automatically updating   
    you 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
  6. Like
    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
  7. Like
    cepa got a reaction from SEOAhmed in Alternative to PHP $_SERVER['REQUEST_URI'] ?   
    <?php phpinfo();
     
    please copy an output here
  8. Like
    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
  9. Like
    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...
     

  10. Like
    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...
  11. Like
    cepa got a reaction from Jock in My database class, feel free to use it   
    1) 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!?
  12. Like
    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
  13. Like
    cepa got a reaction from MikeChipshop in programmer's portfolio   
    Hello,
     
    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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.