-
Posts
2,921 -
Joined
-
Last visited
-
Days Won
48
Content Type
Profiles
Forums
Events
Everything posted by KyleMassacre
-
It's all up to you really. If you want to learn some PHP frameworks go for it. There are also JavaScript frameworks out there too that are becoming popular
-
Yeah, I already had my answer up :p
-
Your right except we are not talking about storing everything. We are talking about storing user stats like health, money, xp, etc. I wasnt talking about storing the entire database in cache because of the constant updates
-
Thats why I suggested possible both Memcache and a database. Here is something that I was proposing: Finding Stats Search Memcached for the key If found, Use it If not found grab it from the database [*]Setting Stats Are the stats going to expire? Set them in the database [*]No? Just display them from cache Like I said, its probably best for offline players just because of the constant changes
-
What was your question? I recall answering any questions you asked. Answers: String number Object Object true 1 0.30000000000000004 Why 7 is like that is beyond me. Also I have no clue why null would equal undefined, I figured they were different. What if I wanted it to be null and not undefined? [ATTACH=CONFIG]2172[/ATTACH]
-
Well that's beside the point here. A framework is a framework no matter what or how you use it. Some people may disagree on the use of frameworks, but I don't. I think they are a great tool for developers. Sure, it's good to know how to make your own application and all but frameworks offer some great helpers. And the more frameworks you know the more work the op can get. So jcvenom take a dive in laravel. I believe at this point in time it is the most popular and widely used or take a look at codeigniter which is my poison
-
Stupid numbers haha. i mention frameworks because to stay on the cheap a lot of sites use frameworks like laravel. Instead of spending more money on a developer to learn what has been started or to create something from scratch a framework is good to use like Zend. I maybe should have been a bit more clear and not used the term framework so loosely and should have used applications. Anyone can know a particular language but not know an application/framework. Let's say I wanted to hire the OP to make me a plugin for my ecommerce site using Magento, sure PHP is PHP but without knowing at least Zend he would most likely be lost. Or if I was making a mobile app and I used angularjs with ionic framework, knowing JS is a huge plus but still may be a bit lost there too. Since frameworks use a particular standard it will make the job much easier, cheap, and faster so it's a win win situation. I only speak for myself but I wouldn't hire someone to make me something if they don't know how to do what I want. I'm sure someone can figure it out but I don't want to wait for them to do so just because they are 90% proficient in PHP and 60% proficient in JS. And not to burst your bubble script but jquery is a framework built on JS which I know you use and phonegap/Cordova is as well ;)
-
I'll try it out but I will probably get them wrong haha 1. String 2. Int or integer 3. Object 4. Array 5. False 6. 1 7. 0.3 But I agree with Dayo here. It's really hard to put a percentage on something like this hue cause they are alway changing. Years experience would be better although people learn at a different rate than others. to answer your question jcvenom: learn what you think you may be required to know or what you want to know. OO is similar to procedural except you are working with objects and methods. For example: $object = new Class('Kyle'); echo 'Hi '.$object->someMethod(); //will return Hi Kyle or: $object = new Class();//no constructor parameter $object->name = 'Kyle';//same property in class.php as public $name; echo 'Hi '.$object->someMethod(); // returns Hi Kyle $object->name = 'jcvenom'; echo 'Hi '.$object->someMethod();// now returns Hi jcvenom class.php: class Class { public $name; // parameter to pass in the constructor for this example function __construct($name = null) { if($name != null) { $this->name = $name; // set the parameter $name to the value in the constructor and can be used in any method } } public function someMethod() { return $this->name; // return the value we passed in the constructor } } This is just a basic example of a class to just output Hi @name. I prefer using OO over procedural because I think you have more freedom and power over what you are creating
-
Even so, 3 years of "coding" experience I think is hardly sufficient enough to be an average of 80% (estimation) proficient in all the languages and frameworks specified and I still believe jcvenom needs to update his skill set. I won't argue with the front end/backend dilemma but my thought still stands on specifying unless he does actually know how to run node.js.
-
I will have to agree with script here. When I see the term JS/JavaScript I immediately think DOM manipulation/interaction. And if I were you jcvenom, I would specify this unless you actually know NODE and if you do then disregard. I would hate to outsource something to someone saying they know "backend" js and ask for a chat application using node, socket io and come to find out they can't do it when I already invested time and money into a developer. It would be kind of bad for business. Another thing is, are you limited to what you can do? Are you familiar with frameworks such as laravel, codeigniter, or Magento? Also so you can look into getting certifications like in Zend or even Magento. If you do, you can get a lot of clients that way
-
I don't want to be a bad guy here but I can't stand the font you used for your headings. Everything else is nice though and it seems to flow well. Also, if I am wrong about this I am sorry: But I seem to recall you a while back stating that you are not familiar with OO just procedural. If that's the case I wouldn't say you are 90% proficient with PHP since pretty much everything now is moving towards OO since somewhere around PHP 5.3. Another thing is that I wouldn't say your skilled in MySQLi since that isn't a language it is an "extension" or for lack of a better term an API. And grabbing records from a database using the MySQL* extension doesn't make you proficient in MySQL, those would fall under PHP. Being proficient in MySQL means you can understand the differences between database engines, data types, relationships, triggers, and etc. Hell, I know PHP and MySQL but wouldn't give myself a rating of 4+ stars for it but also I am not saying I know more than you but it's just stuff that I have seen and I am trying to give constructive feedback and don't mean to come off like an ass. But if you know more than I have seen from you, awesome. More power to you
-
Memcached is not the same as browser cache, it is its own system like a little mini db. I don't think it's as resource intensive as MySQL so it could be a nice little replacement for it in some aspects. But in actuality, I don't think the really meant for the way I suggested because it is cache which isn't supposed to change all that much like user stats. But on the flip side you could use it for offline players so your not hitting the db with query after query on something that isn't changing all the time when their profile is being looked up.
-
I wouldn't know since I'm not familiar with .NET. I wasn't aware that we were talking about that. I think coly was on the same track as myself :p. Play around with it and see if it's worth using I guess would be my answer. I wouldn't in PHP because it seems like handling a session may be a lot more of a pain in the ass than it's worth.
-
How about chaching them using memcached? i have not used memcached yet but have briefly looked through some docs for it and seems pretty nice so I wouldn't know if there are any drawbacks to it. From what hat I have seen though you just set the cache time and if it's about to expire, before you load the stat save it to the db. If it has expired, pull it from the db then cache it again. It seems as if it would work pretty well in reality
-
Wow it's been a while since a first time poster has followed the partnership template haha. I have a question though: will you be allowed to use real atheletes and teams? I thought they had some copyright stuff attached to them. I could be wrong
-
If we convert it you will not learn. In here are some tutorials to help you though. This mod is written in V1 but if you look at the V1 to V2 conversion tut you can get most of it done then go to the V2 to Redux and you will have the rest. The he only major difference off the top of my head between V2 and Redux is you have to add the file in the array in index.php and change all the links to the gen_url() function
-
$multi = array('head' => 1.2, 'arm' => 1.05, 'leg' => 1.05, 'body' => 1.1); $rand_key = array_rand($multi,1); $dmg = ($str * mt_rand(1, 5)) - $def * $multi[$rand_key]; Str: 30 Def: 28 Random Number: 5 Muliplier: .5 Would come out to 134.2 damage. Whereas without the random multiplier it would be 122. I did change my percentages to make it easier to multiply by
-
With something like this you can add little multipliers quite easily. I won't go into math because I'm lazy and whatnot but for example you can add an array k/v pair with something like head, body, arm, leg shot with a damage multiplier. $multi = array('head' => .2, 'arm' => .05, 'leg' => .05, 'body' => .1);
-
What's with all the necromancy lately???
-
Maybe look into OAuth because a lot of people are like Peter and it's a lot more flexible and you can implement a one click sign in. As for the temporary email address, generally a check of their spf records would show you it's a burner address. Most don't allow people to send emails from it
-
If you wanted to save the resources and keep the security, you cli would work: $ mysql -u <yourUserName> -p Hit enter and put in your password Or if your not too worried about resources PMA would work fine Or if you lock it down pretty well there are remote programs that you can use like Navicat, MySQL Workbench, and etc. Just some alternatives since you say you got it figured out now
-
Moved all the other stuff to the collaboration thread
-
Yeah but since a lot of the stuff here is support based it seems, that would really put a damper on a lot of the legitimate posters. And also, a large number of these spammers are sleeper agents. They do wait a few days sometimes to post. The only action I can think of is to start moderating people with < x posts. But that would be up to Dave and CB to implement
-
It's really hard to deal with a lot of the spam that happens these days. I think 90%+ is real people and not a bot