Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
3 votes
1 answer
120 views

Typescript design pattern for rendering different objects with similarities

It's a web project. The code is working. The question is a design pattern question to write code that's more elegant, you know. I've created a Codepen of this question. I created a ...
Jhon's user avatar
  • 47
11 votes
3 answers
2k views

IP address detection code

I am using PHP for detecting a user's IP address and displaying their details, and I use OOP (i.e. object-oriented programming). Are there any problems in it or is it well-written? index.php: ...
Pscho's user avatar
  • 29
0 votes
1 answer
98 views

Best method to further execute the DRY principle and/or raise performance in my script? (client login/signup system)

Just for practice purposes, I written a basic client sided login/signup system that allows you to make an account, and then log into the account from my webpage. What it does is append to an object ...
DanielP533's user avatar
4 votes
3 answers
232 views

PHP display Error Wanings Yellow @ bottom of Page with PHP_EOL

I initially started searching for a PHP script which would output PHP errors, to the JavaScript console. As the Default behaviour is just to spit them out anywhere and displace everything else. ...
Ryan Stone's user avatar
2 votes
0 answers
335 views

Pomodoro Countdown Clock

I would appreciate feedback on this Pomodoro Clock. I tried to use straight Javascript for the logic instead of JQuery and I would be interested in any observations of where that was a good or bad ...
Cameron's user avatar
  • 165
3 votes
4 answers
751 views

CSV parsers and OrderedDictionary

I wrote the following (static) class to read files easily in C#. However, it is a static class, so I wonder if there would be a gain to make it a non static method (and therefore, passing arguments as ...
RUser4512's user avatar
  • 1,135
3 votes
3 answers
829 views

Constructor function, prototype and making a modal

I'm playing around with prototypes, constructor functions and javascript - I'm not really a Javascript developer but am interested in this. Am I on the right track with this code? I'm looking for a ...
Iamsamstimpson's user avatar
5 votes
1 answer
355 views

Getting color information from an image

I am working on a site that themes itself based on images / logos. I have made a utility class that gets the colors from an image, shown below. I am fairly new to OOP with PHP, and I'm looking for ...
jnthnjns's user avatar
  • 241
2 votes
2 answers
2k views

Event Registration

I am new to the world of coding, PHP as well as XHTML. As my first stab at object oriented coding, I put together a basic registration form that is meant to serve as a means to collect user details. ...
PeanutsMonkey's user avatar