0
votes
1answer
69 views

I've finally found a satisfactory way to create classes on JavaScript. Are there any cons to it?

Depending on external OO libraries is really bad, using prototypes/new has some limitations, using only hashes has others. Dealing with classes was always a pain in JavaScript and it didn't help that ...
0
votes
1answer
50 views

Image Resize/Crop Class

I've combined some of my own functions with a function I found and I'm curious to know what others think of it. It will be used to upload and resize/crop images that are jpeg, jpg, png. <?php ...
3
votes
1answer
176 views

Optimize PHP Class

I'm looking for a better way to provide configuration options and improvements in general. I'm using the constructor injection pattern to get access to the Cache and Twitter class. $callback and ...
1
vote
1answer
96 views

How can I improve this C style va_args replacement?

I inherited a lot of C code with many ellipsis (variadic) function. So I have a lots of API with the following signature. void getXY(int foo, ...) // many parameters and this is used in this way ...
0
votes
1answer
240 views

Is my login function secure ? how to improve it?

Using cakePHP, I would love to have your point of view about this large source code, i am not sure if its enought secure. sha1() will be removed with another script. I found this large script can be ...
3
votes
2answers
937 views

Optimizing a Deal Or No Deal-style game in Java

could this code be more Efficient? The Game Class import java.util.List; import java.util.Arrays; import java.util.Collections; public class Game { private Case[] cases = new Case[26]; ...
2
votes
1answer
348 views

Can anyone check my code?

Can anyone check this code of mine I want to improve it . give me suggestion or tips and tricks to make this code of mine more efficient Here's my code, I want you guys to give me advices and tips ...