Re: How much for a topsite?
Heh I guess a leaked source could benefit someone who wants to get it up and running with least effort and no desire for customization.. but it's not something complex enough that it'd be of interest to anyone who knows what they're doing unlike some game files.
Re: How much for a topsite?
Quote:
Originally Posted by
iGalaxy
Free of charge, I can do it bro. I love coding in PHP.
Deal, I want you to make me something that no one has ever made before.
24 hours
go
Re: How much for a topsite?
@WizCoder
Code:
<?php
$func = new Functions();
class Functions {
public function gender($gender) {
switch ($gender)
{
case "male":
echo "You're a male!";
break;
case "female":
echo "You're a female!";
break;
case "shemale":
echo "You're a she-male!";
break;
}
}
}
if(isset($_REQUEST['gender'])) {
$gender = $_POST['gen'];
$func->gender($gender);
}
?>
<form name="gender" method="post" action="">
<select name="gen">
<option>male</option>
<option>female</option>
<option>shemale</option>
</select>
<input type="submit" name="gender" value="Submit!">
</form>
© iGalaxy from RaGEZONE.
Happy?? Very innovative huh? I will call this script, Gender System!
Re: How much for a topsite?
Quote:
Originally Posted by
iGalaxy
@
WizCoder
Code:
<?php
$func = new Functions();
class Functions {
public function gender($gender) {
switch ($gender)
{
case "male":
echo "You're a male!";
break;
case "female":
echo "You're a female!";
break;
case "shemale":
echo "You're a she-male!";
break;
}
}
}
if(isset($_REQUEST['gender'])) {
$gender = $_POST['gen'];
$func->gender($gender);
}
?>
<form name="gender" method="post" action="">
<select name="gen">
<option>male</option>
<option>female</option>
<option>shemale</option>
</select>
<input type="submit" name="gender" value="Submit!">
</form>
Ā© iGalaxy from RaGEZONE.
Happy?? Very innovative huh? I will call this script, Gender System!
No MVC?
Where is the doctype?
Where is the html, head, body...
No labels?
Pfft. go away
Re: How much for a topsite?
@jur13n you got to be kidding me, its just a fkin' quick script, no one's gonna use it so it's useless, and wtf you on about Model-View-Controller?
Re: How much for a topsite?
Quote:
Originally Posted by
iGalaxy
@
WizCoder
Code:
<?php
$func = new Functions();
class Functions {
public function gender($gender) {
switch ($gender)
{
case "male":
echo "You're a male!";
break;
case "female":
echo "You're a female!";
break;
case "shemale":
echo "You're a she-male!";
break;
}
}
}
if(isset($_REQUEST['gender'])) {
$gender = $_POST['gen'];
$func->gender($gender);
}
?>
<form name="gender" method="post" action="">
<select name="gen">
<option>male</option>
<option>female</option>
<option>shemale</option>
</select>
<input type="submit" name="gender" value="Submit!">
</form>
© iGalaxy from RaGEZONE.
Happy?? Very innovative huh? I will call this script, Gender System!
1.So this is not something big.
2.A real coder writes valid code every time.
3.Since a big time PHP is not writen in the same file with HTML
4.Write function name that represents clearly what you write in the script
5.Comment your functions just maybe another developer may it use.
And the second one is the most important!!!
Re: How much for a topsite?
Quote:
Originally Posted by
iGalaxy
@
jur13n you got to be kidding me, its just a fkin' quick script, no one's gonna use it so it's useless, and wtf you on about Model-View-Controller?
It was a joke on my side too -.-'
Besides, If you code PHP, atleast use MVC.
Every object orientated programming language uses a MVC base;
- Django/Python
- C++ (depends on coder though, you got idiots)
- Fucking javascript.
Php is not a object orientated programming language from origin, but please, for the worlds, performance and clean coding sake use mvc.
Quote:
Originally Posted by
LeeonApp
1.So this is not something big.
2.A real coder writes valid code every time.
3.Since a big time PHP is not writen in the same file with HTML
4.Write function name that represents clearly what you write in the script
5.Comment your functions just maybe another developer may it use.
And the second one is the most important!!!
Yap, second one is important.
Re: How much for a topsite?
@jur13n what is MVC? And are you saying me not to use OOP syle?
Re: How much for a topsite?
Quote:
Originally Posted by
iGalaxy
@
jur13n what is MVC? And are you saying me not to use OOP syle?
MODEL
VIEW
CONTROLLER
FRAMEWORK
Do some research instead of asking me the same fucking thing 4 times in 3 different threads.
also; MVC IS OOP..
Maybe it's a good try to learn English.
Re: How much for a topsite?
@jur13n I googled it and got some information, and now I am getting somewhat a bit of knowledge, I will go through a few walk through and tutorials of MVC framework and learn it eventually, but first focusing on changing to PDO like you suggested.
Re: How much for a topsite?
Quote:
Originally Posted by
iGalaxy
@
jur13n I googled it and got some information, and now I am getting somewhat a bit of knowledge, I will go through a few walk through and tutorials of MVC framework and learn it eventually, but first focusing on changing to PDO like you suggested.
http://www.youtube.com/watch?v=Aw28-...20112CF84B2229
MVC and PDO in one.
Re: How much for a topsite?
Quote:
Originally Posted by
iGalaxy
And are you saying me not to use OOP syle?
Just saying, there's nothing object oriented in your code. Using a class to simply wrap functions into a namespace is quite far from utilizing the principles of OOP.
Re: How much for a topsite?
Quote:
Originally Posted by
Negata
Just saying, there's nothing object oriented in your code. Using a class to simply wrap functions into a namespace is quite far from utilizing the principles of OOP.
And that is why MVC will just get yourself used to OOP.
Re: How much for a topsite?
@jur13n thank you! You are a great help. @Negata I see, thank you for the information.
Re: How much for a topsite?
Quote:
Originally Posted by
jur13n
600-700 for quality
gtfo. you're obviously high.
It doesn't take you a whole lot of effort to design/develop/implement a Habbo API. Care to elaborate, upon your thoughts on what brought you to your interesting calculation?
- - - Updated - - -
Quote:
Originally Posted by
jur13n
And that is why MVC will just get yourself used to OOP.
Look, I'm not saying MVC is a useless framework, because it isn't at all. Obviously you have made a few desktop applications and/or utilised Objective-C. However, MVC does not suit every applications needs. I'm sure you know that. MVC makes it easy to find bugs instead of it all being connected like a plate of spaghetti. It keeps things separate and neat. Great Concept. Really Good. But.
Like I said MVC is a great concept, but don't keep saying to everyone that MVC is what you need to use. Not only is it wrong, it is confusing to users who do not know what it is. I have seen numerous posts of you mentioning this.
Your project is unique, and sometimes it won't need MVC. However, it all comes down to what your wants/needs are - Application Design.