Tagged Questions
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 ...
3
votes
1answer
94 views
The eternal dilemma: bar.foo() or foo(bar)?
I was using foo(bar) as it's adopted for functional programming.
console.log(
join(
map(function(row){ return row.join(" "); },
tablify(
...
0
votes
2answers
127 views
Constructor with too many arguments [closed]
We have a Transaction class that's very loaded; so loaded that I originally ended up passing almost 20 argument to the ctor. After extracting a few value objects, there are still 12 arguments left, ...
3
votes
3answers
166 views
Beginner to OOP: Do these classes properly represent the objects in Java?
These classes are part of a program I am working on to convert Arabic numerals to Roman numerals and also the reverse. Do these classes look correct for representing objects in Java?
public class ...
8
votes
1answer
260 views
D&D Monster Organiser
I've made a python script to properly organise D&D monster stats in a directory. The script brings up the stats as instance variables of a Monster (class) instance.
For those unfamiliar with the ...
2
votes
2answers
166 views
Two similar API calls PHP optimisation and structure
I have the following script that I'm part way through and I'm not happy with it at all, it feels messy:
<?php
class Process {
public $search = ...
2
votes
1answer
235 views
using oop in php
This is one of my first oop code in normal php without any framework. This a code that combines all css files into one and all js files into one and it works. Any suggestion on what can i make better ...