Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
We used to have one, but the interest were minimal. Then again, we didn't have any really good prizes seeing as we were dependent on having them donated.
-
Nothing wrong with that as long as the User object represents something in the database.
-
This may seem like a no-brainer, but it helps to think about objects as... objects. Like for instance, what properties does your car have? Color, speed, accelerationSpeed, etc. What can your car do? startEngine(), honk(), switchDirection(), brake(), reverse(), accelerate(), etc. The composition thing helps with this as well. A car is not just a car, it's composed of a lot of different parts like an engine, wheels, etc. Of course, you needn't identify and model every single object you can think of, but it helps to think of objects as real-world objects. OOP is about modeling the world essentially. Learning some of the most famous design patterns will help as well. If you're new to OOP then PHP Objects, Patterns, and Practice by Zandstra would be a good start. Design Patterns by GoF was also mentioned in this topic. Another good one is Patterns of Enterprise Application Architecture (PoEAA) by Fowler is another good one (also check out his website for some good blog posts about software engineering). I'd recommend you start with Zandstra's though as it's intended specifically for PHP developers. The other books that were mentioned do not use PHP syntax. You must of course try to get the big picture, not just the syntax.
-
We have a few OO tutorials written by 448191. Hmm... you see, this one is actually an example where inheritance was not a good design decision
-
Here you go. The new BigMac Pro. Edit: Uploaded better version with correct background color for burger logo. [attachment deleted by admin]
-
That's BS. Since it's based on the open source Chromium project, don't you think someone would have spotted the "if site = hotmail.com" conditional?
-
The usability issues you get by using a Flash form would by far outweigh whatever protection against spam you might achieve anyway.
-
Who says they purchased hosting exclusively for that domain? I have six domains pointing to my VPS for instance.
-
As far as I know that's the case. You just buy a voucher, book a time and show up at a test center. If you pass then you get a certificate and an entry in their ZCE yellow pages.
-
You are asked questions in the following areas: OOP, Security, XML & Web Services, Arrays, Web Features, String Manipulation and Regular Expressions (PCRE), Streams and Network Programming, PHP 4/5 differences, Functions, Basic Language, (Application) Design, Database Access (standard SQL, no particular dialect). It will typically be questions like "Which function does this?", "What is the result of this script?", "What do you need to change to make this script do that?". No. $125 or €125 depending on your IP address (for real). You may want to take the preparedness test to see if you have passable skills.
-
-
....Yeah.... In the banner, the "PHP Freaks \n Get addicted" banner... chris How is that an easter egg?
-
You need to use wildcards for that. crayo*, *lent, crayo? ?iolent would match.
-
How? In terms of hit relevancy or the layout? You can in fact use quite complex search queries, e.g. security AND type:tutorial AND author:Daniel0 will only return tutorials written by me where the title or body contains the word "security". http://framework.zend.com/manual/en/zend.search.lucene.query-language.html
-
In the banner? Elaborate.
-
Online Calculator to determine the Value of Something
Daniel0 replied to hargz's topic in Application Design
You could use the decorator pattern like I said above, or you can do something like this: <?php $basePrice = 100; // determine this based on the type of model if ($_POST['condition'] == 'NW') { $basePrice *= 1.1; // add 10% } // etc. echo $basePrice; ?> -
Talking about easter eggs, lets see who can find one on the main site and post it here first. Not like there are a lot of them though.
-
It's a letter from a language we created to communicate with on the staff boards. In that way we prevent people who have gained access to a staff account from reading it.
-
In the same language you are programming the rest of your site it. It's a simple conditional statement you need to do.
-
That's weird. It only seems to happen at the tut listing and only when you're logged in.
-
As mentioned many times in many topics, PHP Freaks will only officially support browsers that adhere adequately to W3C standards concerning interpretation of (X)HTML and CSS markup. We will also only support the newest version of a browser and it is thus the users' own responsibility to keep the software installed on their computer updated. Browsers that do not fit this description yet renders the website correctly anyway is just a lucky side-effect. Users should, however, still use a standards compliant and updated browser. That being said, I don't see any footer problems in IE7.
-
Online Calculator to determine the Value of Something
Daniel0 replied to hargz's topic in Application Design
Right... I see the people above decided to be really helpful... Say somebody wanted to sell you a lightly worn, 8 GB, black 1st gen iPhone with charger, USB cable, and a headset. How would you figure out what you wanted to pay for that? If you don't know that then you won't know how to teach a computer to figure it out either. Here is how I would do it: Have a base price for each model. Each of the other things you can select between will modify the price. E.g. a broken item could decrease the price by 60% where light wear would only decrease it by 15%. Whether it's black or white doesn't affect the price, so it won't alter it. This is essentially the decorator pattern. Also, I'll move this to app design. -
Necromancy!
-
Move closer to the AP or purchase a signal extender.
-
Yeah, I'm aware of that, but alas I do not have enough times to write ∞ emails.