2
votes
3answers
117 views

Train domain specialists in programming, or train developers in the domain? [on hold]

As software developers, we are often told that our job is not to write code, but rather, it is solving problems in a given domain, with code as our tool of choice. This strikes me as the cause of a ...
0
votes
1answer
37 views

How to Architect a solution to handle Project Subscriptions for Projects and Child Tasks Subscriptions that can overlap each other?

I am building a Project Management application with PHP, JavaScript, and MySQL . Here are some notes related to my question which is about how to implement a Subscription model for users to subscribe ...
0
votes
3answers
96 views

Is unwanted behavior, while work is in progress, declarable as a “bug”?

This might be only a question of definition, but maybe there's a consensus? Given the situation, software Foobar Plus is under construction, we're not working on an update, but on the first release ...
5
votes
4answers
359 views

Should a method be forgiving with the arguments that are passed in?

Suppose we have a method foo(String bar) that only operates on strings that meet certain criteria; for example, it must be lowercase, must not be empty or have only whitespace, and must match the ...
0
votes
1answer
22 views

Multiple methods in single test case

I am new to Junit. I have a class with four methods. I am creating a test class with test cases. Can I have a test case that uses more than one methods of testing class or there should one test case ...
0
votes
0answers
3 views

Android and GAnalytics, whats is important there

i made a android app where i use the Google Analytics tool, but it show a crazy data and no reason like: Iphone total Sessions = 3 (???) New users from Ipad = 6 (???) HOW? its a android app, ...
0
votes
0answers
4 views

VO to Entity Conversion

In our application we have multiple layers. UI -> This can be JSP/ JSON result of the API Controllers -> as in MVC Services -> perform single business operation per service DAOs -> Data Access ...
-2
votes
0answers
8 views

Choosing right technology for c# website application

I want to create a website application in c#. The website will be having large amount of data. It requires lots of webservices. So priority is in terms of performance. I am thinking to select ASP.NET ...
-3
votes
0answers
27 views

tilde(~) and the negate(!) operator

#include<stdio.h> int main(void) { int ch = 56; int a; int b; a = !ch; b = ~ch; printf("a = %d \nb = %d", a, b); return 0; } output is: a = 0 b = -57 I want ...
-3
votes
0answers
27 views

What is a computer science career like? [on hold]

I'm about to enter college as a freshman. I've spent a large part of my time so far making apps and working with various languages and technologies. Some of these include Objective-C/Swift, PHP, ...
0
votes
1answer
369 views

JavaFX with or without Rich Client Platform

I'm starting to delve into JavaFX and have heard that one of the cons of java fx is that there isn't a mature rich client platform or application framework ala eclipse rcp or netbeats platform for it. ...
0
votes
1answer
174 views

Possible way to make java class builder more abstract by using interface required keys

I'm looking for a more abstract pattern for builders that handles required fields without the need of writing a validator that checks if all requried fields are set. I like this builder. But is ...
8
votes
3answers
3k views

Why use Android Fragments?

I have read the documentation and some other questions' threads about this topic and I don't really feel convinced; I don't see clearly the limits of use of this technique. Fragments are now seen as ...
-3
votes
0answers
32 views

Preparing for a 3 hour interview for a different kind of role [on hold]

I'm currently working as a Haxe game developer and I've been there for 2.5 years. The current manager and I don't get along too well so I'd like to move on. I'd also like to get out of the gaming ...
2
votes
3answers
207 views

How to reuse common code between presenters

In my application there are 2 views both have 70% common fields like name, icon etc. One view is about list( contains 2-3 fields). On clicking the list , the next view which is the details should be ...
63
votes
13answers
8k views

Can commented-out code be valuable documentation?

I wrote the following code: if (boutique == null) { boutique = new Boutique(); boutique.setSite(site); boutique.setUrlLogo(CmsProperties.URL_FLUX_BOUTIQUE+fluxBoutique.getLogo()); ...
40
votes
11answers
3k views

Are there any reasons not to accept a software deliverable as a virtual machine?

This is a question about logistics, not a technical question. My company has outsourced some embedded software work. Specifically, we have payed a contractor to develop an embedded system for us ...
6
votes
7answers
240 views

Under what conditions does it make sense to break code into many files, or merge them?

Just finished merging seven scripts into one, but got me thinking that I really don't have a formal logic for breaking scripts into pages, or why I'd merge them. Suggestions?
0
votes
2answers
183 views

Does slicing a design in PS create horrible CSS?

I am a beginning programmer and I really want to have good habits and practices. I have yet to slice up a PSD and code it. Is this a bad practice? I have heard it creates bad code that had to be ...
1
vote
1answer
62 views

How to handle a project in git with the same code but different templates?

I have a project where the only difference are the templates. The question is how should I manage this with git now? At the moment I have 3 different git Repos, but it's hard to maintain all 3 of ...
0
votes
0answers
21 views

Writing a container that treats nearly-identical images as the same

I want to create a mapping in Python that will use images as keys, but treat similar (but not identical) images as the same key. I have an approach for deciding which images are similar enough: I ...
-2
votes
0answers
29 views

Why are JavaScript Frameworks so popular despite the hate?

I've been working with frameworks like AngularJS for a bit and I've had my frustrations, but I know JS frameworks are a popular way to go about constructing a web application so I'd like to keep ...
3
votes
2answers
367 views

Is it better to store data in a small, unreadable format, or a large, readable format?

I'm often conflicted when creating a project that requires manipulation of data in files. Often times, I store data in a readable format, like JSON, as seen below: { "Project 1": { ...
1
vote
1answer
55 views

Should MVVM models contain complex objects

Let us say that I have a Book class, a book can have an object of another class like an Author or other complex objects like a list of Genres. My question is, in an MVVM model should I make the ...
6
votes
1answer
98 views

What is the term for an anonymous JavaScript function that's called immediately?

I'm writing a JavaScript style-guide for my team, so that we can organise and contribute our documents easier. But I've hit a small bump which is where my question applies... What am I supposed to ...
0
votes
3answers
158 views

Select design pattern - user stage

I'm struggling to point a finger into the right design pattern. I have a web site which user can register and interact with the system. I want to add the following abilities to a user: Each user ...
0
votes
1answer
19 views

building web apps using exclusively cli api

I've seen this in many web apps, like trac, gitlab, and some cms even. There are cli tools besides normal admin panel. It got me wondering, isn't it a good idea to build a whole web app based on ...
2
votes
2answers
629 views

Liskov substitution and abstract classes / strategy pattern

I'm trying to follow LSP in practical programming. And I wonder if different constructors of subclasses violate it. It would be great to hear an explanation instead of just yes/no. Thanks much! P.S. ...
4
votes
0answers
59 views

How to transition one's career to an alternate stack [on hold]

I have a problem that I suspect a lot of people in more "senior" positions have. The problem is how to get a job in a different technology stack without "starting over." I've been a full stack ...
1
vote
0answers
57 views
+50

Deploy PHP application on customer server independent of the envirorment

Our company has developed a PHP(CakePHP) "Cloud" application that is running on our servers, now we have some customers that would like to use our service and make integrations to their local systems. ...
1
vote
1answer
87 views

Is it bad to store data in JSON form or should I use mySQL?

I've been building an application and the whole thing is built around a simple data storage system. Create an array. Convert it into JSON. Add <?php die() at the beginning to prevent access. ...
-7
votes
0answers
35 views

Using algorithm from open source project

If I clone an open source project from github or anywhere else and learn something about the way I can solve some problems and other stuff about programming , can I use that knowledge ???? and also ...
0
votes
2answers
201 views

Min weight feedback edge set with DFS?

Exercise from The Algorithm Design Manual 6-10. [4] Let G = (V,E) be an undirected graph. A set F ⊆ E of edges is called a feedback-edge set if every cycle of G has at least one edge in F. ...
0
votes
1answer
26 views

Best practice for documenting ports/hardware for embedded project?

I've recently taken an interest in embedded development and am wondering how most people document their projects. For example: Each pin on PORTE is wired to an LED and is aliased as LEDPORT. ...
43
votes
8answers
2k views

How to make a large codebase easier to understand for new programmers

Suppose that I am developing a relatively large project. I have already documented all my classes and functions with Doxygen, however, I had an idea to put a "programmer's notes" on each source code ...
7
votes
1answer
149 views

Do we need to validate entire module usage or just arguments of public methods?

I've heard that it is recommended to validate arguments of public methods: Should one check for null if he does not expect null? Should a method validate its parameters? MSDN - CA1062: Validate ...
4
votes
4answers
152 views

When did Undefined Behavior in C jump the causality barrier

Some hyper-modern C compilers will infer that if a program will invoke Undefined Behavior when given certain inputs, such inputs will never be received. Consequently, any code which would be ...
0
votes
2answers
347 views

block access to area/controller's methods but allow inherited controller to run methods, asp .net mvc5

I am trying to find out how to block a whole area/controller from being accessed by typing url website.com/area1/basecontroller/method1 (this area also contains the views that will be displayed) , ...
1
vote
2answers
39 views

Portable (No)SQL-database, pure XML or something else?

I'm currently planning out a desktop-application that is used to organize stuff. I want to open source it on one point and I want to use and embrace open standards for everything. There is just one ...
0
votes
1answer
18 views

Bounded contexts should contain just domain code?

In Domain-Driven Design there's the idea of bounded context which is basically a way to stablish a boundary within which a certain model is valid as far as I understood. I've found this idea very ...
0
votes
1answer
61 views
+50

Accepted Patterns For Base Class with both Static And User-Defined Data Sources

I have a requirement to build a 'base' profile library (in C# - NET 4.5.2) for various different internal (technical) consumers. This profile consists of metadata fields that would be shared by a ...
-4
votes
0answers
10 views

Session issue in codeigniter with subdomain [on hold]

Session issue in codeigniter I used codeigniter 3.0 to develop dynamic subdomain website. I checked the database and noticed a new session was being created on every page load.
0
votes
1answer
89 views

Architecture: Validate polymorphic votes - Controller or Model?

I have a question because I don't want to do something wrong. I have a polymorphic relation called votes. Well, I want to save votes but I need to validate if a user already has voted. But even if, ...
4
votes
1answer
37 views

Introducing Pull Requests for a 2 person team - merge my own requests?

I'm introducing git to a junior team member (a co-op). They are comfortable now with the basics of adding, committing, pushing and pulling. Now I want to introduce them to pull requests and ...
4
votes
1answer
229 views

When to use Prototypes & the correct usage of Prototypes ( Javascript )

I have been programming in Javascript for a while and I am quite comfortable with it. And I know the basic concept of prototypes and I have also used them a few times. But one thing I can't figure out ...
4
votes
1answer
177 views

“CSS first” vs “HTML first” (Bootstrap, SASS)

Kind of a follow-up to Should I write HTML or CSS first? On a relatively large website, we are considering to use SASS and/or Bootstrap. From previous projects, there seem to be different ways to go ...
0
votes
2answers
126 views

Content delivery design

I'm designing a system where users can access files stored in an external content storage service such as AWS's S3. Here's a simple diagram: ------ ------------ ----------------- | User ...
-3
votes
0answers
10 views

Inserting images from MySQL to listview in vb.net [on hold]

I am having a stuck. I'd like to insert all images from MySQL table to listview in vb.net, but i don't really know how. I'm using a blob for my images. I've already looked up for that on google but i ...
0
votes
1answer
64 views

Normalizing a numpy array

I checked a while back for questions relevant to my own about normalizing numpy arrays but couldn't find any. So I'll pose my question following this line of code: for i in ...
1
vote
2answers
130 views

Where should I store and verify files manipulated by an app

I'm working on a little Ruby script to move screenshots while renaming them based on a specific convention. I'll be writing tests to confirm the behavior. Ruby has lots of conventions for where to ...

15 30 50 per page