1
vote
1answer
90 views

Does dynamically generating classes in python affect readability/performance?

I have a set of classes that represent different objects (tables in a database): class ObjA: # some class specific attributes and methods def refresh(self): # implementation ...
1
vote
2answers
62 views

many to many relation in database schema and oop class diagram

I have Student and Group entities. Student can have many groups and Group can have many students too. so in database I should have middle class and change many-to-many relation to one-to-many and ...
1
vote
2answers
104 views

Overriding methods by passing as argument the subclass object where the supertype is expected

I am just learning Java, and am not a practicing programmer. The book I am following says that when overriding a method, the argument types must be the same, but the return types can be ...
0
votes
1answer
47 views

Does a Form describing JSON “Standard” exist?

I joined a project were we sell services for different providers through web, iOS and android apps. I am working on iOS. I was ask to display a purchase form via a web view and react by what is ...
0
votes
1answer
39 views

Java Doc - Do fields also get documented?

This is a really simple question but oddly, I'm finding it difficult to get a definite answer.... What do you do with fields? Is this valid? /** * Keeps track of all usernames in the system. */ ...
2
votes
3answers
169 views

Is checking return values always required? [duplicate]

We know that checking return values prevent our software from unexpected states. (You can see CWE definition.) But, we are sometimes sure about the return value. For example: bool ...
0
votes
2answers
72 views

Pattern for caching DAOs: strategy or decorator?

I'm building a php system with the Services/DAOs/Domain Models pattern, and now is the time to implement a caching system for the DAOs. Would you use a decorator pattern, or maybe the strategy ...
0
votes
1answer
61 views

Block diagram scheme file format

Yesterday I wanted to show my colleague a work flow diagram representing my view on developing our next project. Today I want to display file structure of another my project with includes as a tree ...
0
votes
0answers
31 views

Best approach to save relationship mapping of country,state,city in orm

I am building a project in play framework java with jpa and I want set country,state,city dropdown fields in a form to be dynamic(from database).So only admin can increase or decrease the value of ...
-4
votes
0answers
38 views

Fresh graduate first job- Tester vs Programmer [closed]

I'm just graduated from university with major in Software Engineering. I planned to get my first job as system tester for few years and then change to programmer. Is it a good choice to start my ...
0
votes
0answers
16 views

Best method to synchronize data from an eCommerce platform

I have been assigned to design a high level architecture for an plugin, aimed at fetching and syncing product data from an open source eCommerce platform. The eCommerce platform allows development of ...
1
vote
0answers
60 views

Reject pull request or accept incorrect code? [duplicate]

Very often I have to review pull requests of fellow programmers and I face the problem - what should I do when the code is not as good as I would expect? Should I reject the pull request or ...
-5
votes
0answers
37 views

iterate list in python like for loop in python [on hold]

How to loop a list in python. What I have tried is, l=[1,2,4,5] for i in l print i I know how to in C. for(i=0;i<=10;i++){ do something.. } How can I achieve this in python ?
0
votes
1answer
137 views

What'd be better? To add one more local variable, or to call a method twice in general case?

I have the method which returns java.util.Date inside the hibernate-entity class: package ua.com.winforce.loto_partner.commons.db.entity; @Entity @Table(schema = "pr", name = "publice") public class ...
3
votes
1answer
123 views

Functional programming for loop side effect

I am trying to get my head around as to why having a local variable or a for loop inside a function is not considered to be pure functional programming. Given this function: int as_int(char *str) { ...
-1
votes
1answer
44 views

Need an example of a real backlog task or how elaborate must it be?

I'd like to know whether a task must be self contained. Our tasks mostly contain a couple of sentences. To understand what you are to do you should: Read the requirements document for several ...
-1
votes
0answers
24 views

Questions about getting MCTS [closed]

For work, I have to get some certificates. For now, I'm supposed to do MCTS exams for .NET 4. I know these exams are retired, but looking at the available options I have at work, this seems best to ...
4
votes
3answers
162 views

Safety-critical software and optimising compilers

I'm reading some internal documentation for code developed to the MISRA C guidelines, and I see that in compiler flags section of the documentation there is a note to compile with optimisation off ...
0
votes
0answers
18 views

Using the v3 api without autorized user need [on hold]

I wanna do a page for my website that can show a list of the last videos of 5 youtube channels (a mixed list) . It will be public so I need a upload_list.js script like this one : ...
-1
votes
0answers
49 views

Future chaining, no code-walking…what would it require?

I've found the idea of chaining futures as a way of avoiding callback hell to be fairly interesting, and even though I normally prefer things like Pulsar it's still a natural way to express when you ...
2
votes
1answer
101 views

Object caching in this code too expensive?

I'm having some trouble with a game developed in Java which is kinda slow. I benchmarked it a little bit and found the problem: most of the time, the JVM is in the Object.<init>() since there ...
1
vote
2answers
177 views

Development on Android without using Java [on hold]

As the title of this question suggests, I am looking forward to develop app(s) on Android platform without using Java at all. It doesn't mean I have some kind of vendetta against this beautiful ...
0
votes
0answers
18 views

Breaking java script into manageable parts [migrated]

Hi I have long java script code with many functions and i want break it to manageable but struggling to get right design,Previously i have long init() and search function and now i want to break it so ...
-2
votes
0answers
19 views

Does these algorithms need to train to estimate genetic network? [closed]

As the title , does the following algorithms need to train to estimate genetic network? Genetic Algorithm with weight matrices Boolean Algorithm Thanks
0
votes
0answers
4 views

Linux C raw socket TCP handsake [migrated]

I'm trying to create a TCP connection using raw sockets in C (on a Debian system) but I'm having a hard time getting it working. It will send a packet but I dont get any response from the server. I ...
0
votes
0answers
8 views

Incrementing a string [migrated]

How do I take an input and increment each letter by one e.g "ABC" to "BCD" in Java. I have attempted below to try and change the string to an int and then increase the value by 1. import ...
-2
votes
0answers
45 views

Multi process programming

I'm developing an xml server in python which serves as an api emulator for an existing server. I'm using process libraries in order to handle multiple processes in the server for each client request. ...
0
votes
0answers
14 views

jQuery event binding management

Given the following elements: <div class="container"> <span class="some-class">content</span> ..n span repetitions.. </div> Given the following .on() ...
8
votes
7answers
1k views

How did OOP evolve to include the notion of Properties

I've come from a C++ background and am going all out C# in my current job and I've just been reading a lot of Q&A about what's the difference between public fields and properties and all the back ...
0
votes
2answers
58 views

Clients connect to WCF or SQL Server

I was wondering what is the prefered way of accessing data from a server in a client application. The data will be stored on the server in an SQL database and I have previously used the following 2 ...
0
votes
1answer
34 views

MVC: Inserting a view from a SubController to its Parent controller

I have 2 controllers: 1 top level controller,MainController, and a SubController, which MainController has an instance of and controls. The SubController has a Subview which goes inside the MainView ...
-4
votes
0answers
31 views

What are some best practices for converting a codebase from Matlab to C using MATLAB Coder? [on hold]

I am starting a project to convert a medium size Matlab codebase (~100 files, total of ~10K LOC) into C/C++. (That is, the end product needs to be runnable without Matlab.) I have been reading ...
2
votes
5answers
410 views

Why lambda/closures expressions came so late to C++?

I was reading a really great Bjarne Stroustrup's article where he exposes some C++ myths. I look at code that focus my attention, because I wouldn't know that C++ supports this kind of expressions. ...
1
vote
0answers
76 views

Design an algorithm with network flow

Given a matrix A with 0 and 1 entries. Neighbours of a[i,j] are a[i-1,j], a[i+1,j], a[i,j-1] and a[i,j+1] (if exists any). Tow neigbour entries are an Improper pair if they have not equal values. if ...
-4
votes
0answers
28 views

Is there a modern incarnation of the Java Web Start CD-Install page? [closed]

The Java Web Start Guide used to include a page describing how to make a Web Start application installable from external media, but that page isn't in recent versions of the documentation. Is an ...
3
votes
3answers
76 views

Mobile app for a website vs browser view [on hold]

I have noticed that many websites have their own mobile apps. For developers, What is the benefit of creating mobile app for a website? In which cases it is better than viewing it using browser? ...
-5
votes
0answers
17 views

Java writeLock() [closed]

How to determine if writeLock section is already busy? I mean I have multi-thrad application and many users use the same object. But only one users has an access for writing. Similiar code: ...
-1
votes
0answers
26 views

What monospaced fonts have native bold-italic styles? [closed]

I do my Java programming in the Eclipse IDE. For certain keywords, Eclipse displays the letters in the bold-italic style. Originally, I liked to use the Inconsolata font. But I discovered that ...
-4
votes
0answers
31 views

Phone to PC voice commands [closed]

I am currently programming a small program in python that takes voice commands and executes commands depending on what was said. I need a way to input voice commands phone and send the translated text ...
0
votes
1answer
58 views

Database vs. server-sided scripting language

To keep my question short and to the point, consider this: $relation = $mysql->query("SELECT relation($loggeduser, $requesteduser) AS a")->fetch_assoc()['a']; if ($relation != BLOCKED) { ...
0
votes
0answers
51 views

Why Moles (shims) frameworks are very less [closed]

With consideration of difference between Mocks and Moles, as they say: "The MS fakes framework supplies stubs and moles (shims), whereas NMock, RhinoMocks, and Moq all provide stubs and mocks......MS ...
-1
votes
1answer
47 views

Personal project - How to stay focused and disciplined [duplicate]

I have a personal project which I have been trying to see through to some kind of usable product for many years. I am really passionate about the domain (as it has been an on-the-side interest of mine ...
3
votes
1answer
47 views

Bottleneck performance in ECS

I've been looking into building an entity-component-system. Basically, an entity is just an id wrapped around a struct, components are data belonging to that entity(and reference said id), and systems ...
3
votes
3answers
61 views

How does word size affect the amount of virtual address space available?

So, I should really know this stuff already, but I am starting to learn more about the lower levels of software development. I am currently reading Computer Systems: A Programmer's Perspective. by ...
0
votes
0answers
17 views

Cad-style .Net software as a service [closed]

I've been just introduced to cloud computing ans SaaS and it seems very very fascinating! I have actually written a .Net C# software and it is ready to be published. Now that I have become familiar ...
7
votes
1answer
136 views

Massive View Controller - IOS - Solutions

I'm sure every new iOS developer has the following problem: The View Controllers get very fast crowded with code for various purposes, easily getting to 500 + lines of code. This is how it looks like ...
0
votes
0answers
38 views

Guidance for beginning open source development [closed]

I was feeling excited about working in open source. But I need need some guidance as to what are the good practices and how one should start in this field. I am well versed in C/C++ programming ...
3
votes
5answers
180 views

How do you unit test a function that clears properties?

I have a very common function that I have always unit tested in the same way, but I'm wondering if there is a better solution or if it's even possible a code smell is involved. It seems like a very ...
-2
votes
0answers
35 views

Non software projects managed with scrum - any help? [closed]

I'm about to start working on a non software project, it is for a NGO (non-governmental organization), and it is something I'm going to do in my free time. It is for the JCI organization. I ...
3
votes
1answer
89 views

Help, team members out of tasks want to start with future sprints topics

I have this problem, a team with 4 members working under scrum, with specific skills each one of them: Person A) DBA with reporting skills Person B) DBA with stored procedure skills and a very ...

15 30 50 per page