1
vote
4answers
329 views

Pesky bugs - nonexistant?

Very short introduction (this is quite a context-heavy question): I'm a 17 year old programmer, doing some projects, usually netting around 20 files of 200 lines each. I usually don't program very ...
2
votes
2answers
116 views

Is there a name for a dictionary that returns the key as the value by default? [on hold]

A dictionary that returns the key as the value by default can be used in cases where exceptions or translation is needed. E.g. One could do i18n = SpecialDict() if spanish: i18n["Hello"] = ...
-2
votes
0answers
32 views

Is the basic tutorial offered by android developement community of any real use_ [on hold]

As a total newbie to Android programming, I find this official Android community tutorial the worst I've ever seen as today, considering the size and the importance of the platform they offer and ...
-4
votes
0answers
23 views

Where can I learn more python [on hold]

I am a beginner programmer and I've been learning Python for about a month now. I feel like I'm not really going anywhere with it and would like to know what would be the best place or course of ...
-3
votes
0answers
35 views

Initiating to Implement a New Idea [on hold]

I have a new idea, which I think in a way would work well, I have been working as a Java Developer since past few years, I also have a good knowledge on design patterns and data structures which are ...
2
votes
0answers
58 views

Scheme/Design Pattern for allowing a certain outside class to set properties

I came up with a solution (in PHP) to a problem and am wondering if it is a named Design Pattern, and if it is good practice. I have a collection class and an item class. The collection class is the ...
1
vote
2answers
58 views

What is Quality Assurance's role in a company that practices Continuous Delivery?

I was listening to this podcast on Continuous Delivery and Jez Humble briefly talked about QA's role, but I didn't really get a "big picture" idea of they're doing on a day to day basis. How is their ...
30
votes
6answers
11k views

What causes floating point rounding errors?

I am aware that floating point arithmetic has precision problems. I usually overcome them by switching to a fixed decimal representation of the number, or simply by neglecting the error. However, I ...
-1
votes
0answers
55 views

Having trouble being a team player [on hold]

recently I came from a startup company, which was my first experience in the enterprise IT field and I gained a lot of experience in every aspect, sort of full-stack experience, I worked there for 3 ...
51
votes
8answers
5k views

Is it premature optimization to add database indices?

A colleague of mine today suggested that we go through all of the queries in our application and to add indices accordingly. I feel this is premature optimisation because our application is not even ...
-1
votes
2answers
41 views

Should back-end (services) and front-end be different projects? [on hold]

As the title asks, is it a good idea to have separated projects (and repositories) for the back-end and the front-end of the application or website? It seems like a good idea, but then again I don't ...
7
votes
2answers
2k views

Naming conventions for Java classes that have a static main method?

After reading gnat's answer to Why a static main method in Java and C#, rather than a constructor? I take his answer to mean that the purpose of a Java class with a static main method is to define a ...
1
vote
2answers
42 views

Integrating QA within agile sprints [duplicate]

I've been working in "Agile" for a while and am working to move more towards agile at a new company. One of the problems I have always sort of encountered is effective integration of QA within the ...
0
votes
0answers
15 views

Preserving Pre-formatted Multi-Line Strings in Node.js Scripts

There is a lot I don't like about PHP, but one thing I love is multi-line strings: $query = <<<EOT select field1 ,field2 ,field3 from tableName where field1 = 123 EOT; ...
1
vote
4answers
146 views

What is the proper way for these methods to function?

How can I properly design what a method or function should do? To clarify the question I am going to use an example from a simple (non GUI) hangman game I created. The design is simple, it has a ...
0
votes
0answers
17 views

PSO – how Dimensions are set up?

I am coding a Particle Swarm Optimization in C++. I have been for days trying to understand the theory of how dimensions work in each different problem. In the many examples I have seen, all of them ...
-1
votes
0answers
12 views

My UITableView is NOT responding to first touch in my UIScrollView? [on hold]

I understand that a tableView inherits from a UIScrollView and apple doesn't recommend nesting a tableView in a scrollView because it can cause inconsistent touch events. Having said that, I still ...
0
votes
0answers
69 views

Rating Agile Ability [on hold]

I'm basing this on the Agile Manifesto Principle: Our highest priority is to satisfy the customer through early and continuous delivery of valuable software. There are many methodologies and ...
-5
votes
0answers
26 views

Using HTML5 Templates [on hold]

I'm an android developer new to developing Websites. I have some HTML5 CSS3 templates which i have modified as per the client requirements, now the client asked me to include a payment system in the ...
-2
votes
0answers
18 views

Should I use a CSS grid system for this template? [on hold]

I asked this question in software recommendations but I was told to ask it here... I want to convert the following template to HTML and CSS. Should I use a grid system such as bootstrap? Seeing as ...
11
votes
4answers
393 views

Dealing with state problems in functional programming

I've learned how to program primarily from an OOP standpoint (like most of us, I'm sure), but I've spent a lot of time trying to learn how to solve problems the functional way. I have a good grasp on ...
2
votes
1answer
57 views

How do you differentiate software between TEST and PROD environments?

We have a TEST and PROD environment. TEST and PROD are nearly identical, and obviously software first ends up in TEST before getting approved to go to PROD. Our software is primarily Windows ...
0
votes
0answers
68 views

Is there any necessity to pass a variable parameter to a method while the variable declared global? [duplicate]

I am writing a class in java of Monte-Carlo algorithm. Here is the written code - public class MonteCarlo { int[][] matrix; public void monteCarlo(List<Node> nodeList) { matrix ...
3
votes
2answers
160 views

How can I convince my manager to contribute back to the open source community? [on hold]

I'm currently working within a large corporation that has a department specifically for open source development. The idea being, someone comes to us with a project, and we develop solutions based on ...
1
vote
3answers
82 views

Generate random numbers with certain spikes?

I am trying to generate random numbers to simulate steering wheel angles and velocities of a car. So for steering wheels the random numbers could go like 1,2,4,6,4,3,40,0. I can generate random ...
0
votes
1answer
89 views

How specific is too specific with css selectors?

The way that I like to write scss gives way to very specific selectors (code sample is under). Is this a bad thing? Are there any performance or reusability issues that I should consider? ...
0
votes
1answer
67 views

Feasibility of idea to reduce email spam [on hold]

Had an idea for a new email protocol to reduce email spam. It'd be great if someone can tell me if this has been thought of before, and/or identify any reason why this would fail. Process to send an ...
0
votes
1answer
20 views

proper way to design REST interface with nginx lua.

I'm a noob at nginx and lua. But I'm trying to design a REST interface. The plan is to create a location entry that will match URIs like this: curl -i -X GET ...
0
votes
0answers
47 views

Should all public API POCO value-type properties be nullables?

I use nullable value types a lot when designing classes that have properties which may remain null, i.e. when the object is being persisted. For example: public int? MyProperty { get; set; } My ...
0
votes
0answers
37 views

What classes should be part of Business Logic Layer? [on hold]

I am very new to software architecture.I am developing an iPhone app. I have read that iOS follows MVC architecture, but one of my previous projects had busies logic layer, helper folder too in its ...
0
votes
2answers
66 views

Create the fields in class level then instantiate inside methods or create and instantiated inside methods

I'm a newbie in software development. Just wondering which code is better and why should I continue which pattern should I follow. First Snippet: Class TestClass { private Object1 field = null; ...
1
vote
1answer
136 views

Debugging xml and annotations

By now, most web containers have an annotation variant of their xml configurations for Java EE. I'm guessing this is because it's better to keep things in Java where they can be managed, coded with ...
4
votes
1answer
192 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 ...
2
votes
1answer
31 views

Comparing path strings against list of rules

I am trying to find a way to enhance a filtering algorithm. I am developing a backup software that enables users to specify custom filters to exclude unwanted files/directories. Currently when trying ...
1
vote
1answer
53 views

Can table of content be parsed using some formal grammar?

A table of content can look like: Preface Table of Content Chapter 1 ... 1.1 ... 1.1.1 ... 1.1.2 .... 1.2 ... Summary Exercises Chapter 2 ... ... Appendix ... A ... A.1 ... A.2 ... B ... References ...
3
votes
2answers
85 views

How “Best” to capture State Transitions in a formal software requirements specification

Suppose you have a state transition diagram. What is the best way to "Formally" write requirement(s) that capture the state transitions depicted in the diagram. Over the years I have used two ...
0
votes
1answer
81 views

How to structure GUI program with a database

I am fairly experienced with web design and programming, C, C++ and a little java (used it to build some small GUI). I am trying to work with Python, and I am faced with some technical structuring ...
3
votes
1answer
119 views

Tracing an object

Suppose I want an object with a list of strings and every method that this object gets passed to adds its name to the list of strings. Basically it's a stack trace, except unlike a stack trace it ...
-4
votes
0answers
58 views

Query result with 6000+ columns in a single row [on hold]

There is a business need to fetch about 6000 columns of data from 20+ different tables. This 6000 columns will be served to a database application for further processing. Which databases can provide ...
0
votes
1answer
48 views

Algorithm Space and Time Complexity with Consideration for I/O (eg cache)

Is there an expression of performance for an algorithm or data structure that attempts to consider cache and other hardware concerns? Context: in my class we're looking at binary trees and it seems ...
1
vote
0answers
54 views

Traversing game state space : more search leads to bad results [migrated]

I am cross posting this question from codereview as i found that it to be non-responsive. I am trying to solve a problem which i think is TSP on a 2-D grid. So, i am trying to get the best result ...
2
votes
1answer
183 views

Efficient algorithm for Virtual Machine(VM) Consolidation in Cloud

PROBLEM: We have N physical machines(PMs) each with ram Ri, cpu Ci and a set of currently scheduled VMs each with ram requirement ri and ci respectively Moving(Migrating) any VM from one PM to ...
1
vote
2answers
64 views

Concurrent collections, should read methods allow multiple threads at one time?

I have custom collection and I want to add wrapper to allow concurrent access. public class MyConcurrentCollection<T> { private MyCollection _collection; // passed in constructor ...
0
votes
1answer
45 views

Where is asp mvc model data stored?

I am using ViewModel classes in order to structure data being populated inside of a controller. My questions is now where exactly is data of a @model stored after being populated via asp mvc ...
0
votes
1answer
354 views

Dynamic query in Mysql

I'm doing a J2EE web application with Struts2, Mybatis and a MySQL database, so what I want to allow to the user is to be free to choose different parameters to perform a select to a table in the ...
0
votes
3answers
144 views

Write a (good) code convention for c# [on hold]

As a relative new trainee in my company, I've been asked to write a code convention since the project is 6 years old and nothing have been done. Here's the points I came up with: VARIABLE ...
0
votes
3answers
176 views

Why are there no java compiler alternatives to allow new functionality? [on hold]

For example, a new java compiler could allow for some breaking backwards compatibility to allow for things like overloading on generic types like: void foo(List<String> arr); void ...
1
vote
1answer
32 views

What's the proper name for type of security where we secure resources by ownerrship

I work on REST API that mixes two types of security: First you have standard role-based security - so we have multiple roles such as admin, read-only user, super user user etc. Then we have also ...
0
votes
1answer
128 views

Repository pattern vs DAO managing Entities

I am new to concepts like DAO, DAL and Domain Driven Design. In the end I want to decouple the persistence layer (mysql database) from my business objects and logic in a web application. I liked the ...
-4
votes
0answers
66 views

What's the best web development process when you work alone [on hold]

If you are working alone on your idea (web project) after your daily work. How do you do it? Are you just thinking and coding without big plan and all the details ? Are you following the agile ...

15 30 50 per page