Software design is a process of problem solving and planning for a software solution.
0
votes
1answer
32 views
Complex structure vs object
This is not, strictly speaking, code review, but I think my question can be asked here.
This is a request to find out what seems to be the cleanest. This project is a blog engine that uses the file ...
0
votes
0answers
39 views
Design object Perl
It is a small backend blog engine that uses the file system as a storage. But I have some ideas to improve things a bit, I'll add support for git and another thing. But I'd like to have an opinion in ...
3
votes
2answers
215 views
I am applying for Object Oriented PHP jobs. Can I please get a general review of my OO skills?
I am new here, so hopefully it is ok to post a link to my github account where I am storing my code samples.
https://github.com/arthaeus/war
This particular sample is the card game 'war'. The ...
0
votes
0answers
37 views
How to design a robust class for Packet Capturing tool
I need to design a class for packet capture tool. Class should provide service to start and stop a dumpcap packet capture. Class should be capable of accepting all sorts of inputs which includes ...
2
votes
2answers
76 views
Deep iterations with side effects
Suppose I need to process a list of list of list of many objects, where the data usually comes from third party APIs.
For the sake of an example, lets assume we have many users, and for each user we ...
1
vote
2answers
56 views
Please tell me if it is a good controller or not. Would really appreciate
<?php
session_start();
include_once("model/Model.php");
class Controller {
public $model;
public function __construct()
{
$this->model = new Model();
}
public ...
1
vote
2answers
110 views
Setting Variable if it doen't exist in Dictionary
So I was wondering if this was good design from client side calls. In the event that the key doesn't exist, go ahead and add it.
public static void SetVariable(string name, object value)
{
if ...
3
votes
2answers
135 views
Design Pattern Question/Violating OCP
Is there a design pattern I can use for a situation like below. This is an example I made up to try and explain the situation I'm dealing with currently. I keep having to add new DeviceScript ...
1
vote
1answer
156 views
Python script to update a cPanel zone record with my public IP
This is my first attempt at using Python to send http requests. I want to keep a zone record on cPanel pointed at my home network's public IP. I'm just looking for some general feedback/suggestions. ...
5
votes
0answers
191 views
Doubts about the quality of an API designed for use with minimal effort
This is going to be long, and I do hope it is going to make some kind of sense; I apologize if it doesn't. I'll try to provide exactly the amount of context that is necessary to understand the ...
3
votes
1answer
65 views
Design review for single master-multiple slaves component
EDIT:
I conclude I've failed to describe the problem.
Intro: Master-Slave Architecture
Master-Slave is a common hardware setting, in which multiple peripheral, passive components, are wired to a ...
2
votes
1answer
77 views
Content Management System Design Pattern Opinion
I am building game platform content management system where i have the following classes:
Game, GameReview, Video and so on...
Every Game object has list with GameReview objects and every GameReview ...
2
votes
1answer
159 views
Have I implemented the command pattern correctly?
This is my command interface
public interface IConverter {
void convert();
}
This is my Receiver class
public class Ogg extends Audio{
private File src;
private File trgt;
...
1
vote
0answers
28 views
DOMDocument field class Python
What do you think of this class?
Is this simple to understand how it works and what it does?
Do you think it is good piece of code?
class Field(object):
"""Class which contains logic of ...
2
votes
2answers
125 views
how to write generic extensions for standard collection types in java?
I am a Java beginner and I am looking for an idiomatic way of writing a function that involves generics. I wrote this helper class (below) that pushes items into a sorted generic collection and I ...