-6
votes
0answers
49 views

I have problem with code [on hold]

I should do massiv and The input of information from a text file into an array of records ; The addition of new elements to the end of the array ; To see all the elements of the array ; The ...
3
votes
3answers
110 views

Ambient dependency injection through static service locator

After some googling I found some debates about whether constructor injection or property/field injection is better, but there is yet another alternative that strikes me as more beneficial. In most ...
1
vote
1answer
95 views

python: detecting if my method is called with 0 or 1 args

I want to write a suite of methods that act as getters when passed zero arguments and as setters when passed a single argument. I have two two reasonable implementations, shown below. Is one better ...
0
votes
2answers
453 views

Finding lowest cost path - dynamic

I have to write a dynamic algorithm for finding lowest cost path. So I have a point that I have to visit. I can jump only between points by distance - 5 I have an array of distance from 0-point for ...
6
votes
1answer
187 views

Is there a standard way of cleaning data files?

Having spent quite a lot of time working in software companies that deal in medium to large data sets, I've seen that a choke point in their processes is often prepping data files for loading into ...
9
votes
3answers
306 views

Does abandon-ware code ever properly die?

It is my impression that, over time, more and more open source code is generated, added to various free or partially free repositories, and then generally abandoned. Are there any generally accepted ...
4
votes
1answer
112 views

Methods to encourage good behaviour when using shared servers?

This question was prompted by a comment left on another question pointing to this article. What Is Clean Code? I was thinking about how that sentiment can be applied to shared resources (servers, ...
1
vote
0answers
39 views

One producer and one consumer vs inconsistent shared resource state

I was reading about implementation of producer-consumer problem with one producer and one consumer. Looking at this paragraph I see the implementation where shared resource access is not synchronized ...
0
votes
2answers
174 views

How to implement backtracking to check if all fields have been traversed

I have been learning algorithms and trying to solve problems and now I have the following problem: In a 4x4 matrix, and it contains fields with height. There is a start field with given height also ...
-4
votes
1answer
40 views

Website Development - W3 Layout [on hold]

I tried to download a free template from W3layout but the file is corrupted. So I tried to pick up the CSS, HTML and JS files by diving into the source code. I used this link to pick source files ...
1
vote
1answer
32 views

Preparing multiple serial ports with multiple TCP in my project that I can enable or disable if I want

I have intermediate level of understanding on how TCP and serial works, I've also been able to develop system that uses 1 TCP client and 1 Serial 2 Serials 1 TCP Server 1 TCP client My problem is ...
-2
votes
3answers
77 views

Java Ellipses Signature for Multiple Parmeters

Firstly, I am studying function with new type of signature and body, and in this code, I want to know, what type of object is values? It doesn't appear to be an array of strings based on my ...
15
votes
5answers
3k views

When to use inheritance, when to use 'just a boolean field'?

In our Rails application, we are adding notifications. Some of these are blocking: They stop the progress of whatever resource they are added on, because some information on that resource is missing. ...
-1
votes
0answers
62 views

Removing optional braces in code [on hold]

Is there any regex I can use to strip optional braces from code written in curly-brace programming languages? I'd like to follow the K&R style, where braces only appear where necessary. ...
6
votes
1answer
1k views

Work advancement titles [closed]

After some googling I was unable to find out hierarchy of different titles in career development. Especially the connection between Senior Engineer and Software Specialist is unclear to me. Which one ...
-1
votes
0answers
26 views

Text script to .net code [on hold]

I have a set of text files which contain the keywords. I need to generate C# code / C# classes by reading these files using C#. Each text file is meant for a class. The keywords map to methods in the ...
2
votes
1answer
39 views

Use Coded UI Tests for Integration

I have a couple of users who have a User Interface for an application that they must use to do their job. The UI can be cumbersome to navigate to perform some time critical tasks. This UI does not ...
3
votes
1answer
411 views

Synchronization between two systems using MongoDB as changelog

We are developing two related system. One of them (A) will be installed in our customers' machines. The remaining (B) will be used by my organization. Each system has its own database (relational) ...
1
vote
1answer
41 views

Class access modifiers on tested implementations

Suppose you're writing an interface that's suppose to be your public API, let's call it Session. It's implementation is called SessionImpl and it's going to be injected by your DI framework. I'm ...
2
votes
1answer
381 views

How to backup data and images in this project? [closed]

I have MS C# and MS SQL 2008 database project. It can capture employees' records with pictures of more than 1000 records. Presently, I'm able to capture say 150 records on PC1 using my installed C# ...
15
votes
4answers
13k views

Why do we need URIs for XML namespaces?

I am trying to figure out why we need URIs for XML namespaces and I cannot find a purpose for that. Can anyone brighten me a little showing their use on a concrete example? EDIT: Ok so for ...
0
votes
3answers
78 views

Do you create an order before or after payment on an Ecommerce site?

I have a shopping cart with a checkout page. On the checkout page is a payment button which takes them to a stripe payment form. I've read some books on building eCommerce shopping carts in which ...
4
votes
2answers
100 views

Layered architectures and modular software

I have built a server-side Java application of about 10k lines of code and on a code review a colleague made me notice that when developing a new business feature , I have to touch several files. My ...
0
votes
0answers
18 views

what's a good way to deploy a seed project with some custom values? (eg: similar to npm init)

I need to deploy quite a few projects from the same seed, which will have a few files, with a few lines in a couple of the files containing some value that would ideally be entered into a script and ...
2
votes
0answers
36 views

Tainted String Type in Kotlin

Two of the top 3 security vulnerabilities in the OWASP Top 10 come from trusting user input (Injection and XSS). To deal with this, Ruby lets you "taint" Strings received from the user as unsafe. In ...
13
votes
3answers
4k views

Is inline SQL still classed as bad practice now that we have Micro ORMs?

This is a bit of an open ended question but I wanted some opinions, as I grew up in a world where inline SQL scripts were the norm, then we were all made very aware of SQL injection based issues, and ...
-2
votes
1answer
48 views

Java/OOP-Book for functional programmer [on hold]

I'm a functional programmer (mostly Haskell) and have some experience with OOP - I know how inheritance, overloading, ... work, also I have experience with low-level procedural languages like C. I'm ...
-1
votes
0answers
24 views

Does it make sense to use namespace pattern in ECMAScript 6? [on hold]

In ECMAScript 5 of JavaScript it was common approach to use namespaces in your code. (implementations of namespace in JS). ECMAScript 6 standard declares modules. But still there are many projects ...
0
votes
0answers
18 views

Concept analysis: using a Java ServerSocket to let an Android phone and server communicate?

I have an idea for an application that will not be published to the public Play Store. My friends will need to be able to log in from their Android phone to view certain data that cannot be viewed by ...
-1
votes
0answers
23 views

Which permanent data storage technology should I use for a simple, but large collection of information in Ruby?

I'm just setting up a Ruby server for my iOS messaging app. The server is for delivering push notifications, and it needs to store some basic user details - a list of devices IDs, an identifier, some ...
2
votes
1answer
156 views

Why and when would you use a .NET framework data type?

I've seen an increasing trend of people submitting code to SO that includes the use of .NET Framework data types. I understand that the .NET Framework has its own data types (like Int16, Int32, ...
1
vote
1answer
210 views

Best way to structure many-to-one allocation of users to projects in NoSQL

I apologise if this is a bit of a stupid or broad question, but I'd like some general feedback please! Say I have this DB structure for users (in Mongo/JS, but really it's all pseudocode- and the IDs ...
0
votes
1answer
82 views

What are the consequences of eliminating the ORM/ODM in a NoSQL based system?

In Martin Fowler's article OrmHate, he states the following: If you have an application problem that maps well to a NoSQL data model - such as aggregates or graphs - then you can avoid the ...
-3
votes
0answers
49 views

Is there a change of hardware that allows us to go from command line to a window display [on hold]

I can't find my answer on google because I just get links on "how to use command line in windows" type things. So I really can't find anything regarding the actual window part. What is the hardware ...
30
votes
6answers
15k views

Why avoid Java Inheritance “Extends”

Jame Gosling said “You should avoid implementation inheritance whenever possible.” and instead, use interface inheritance. But why? How can we avoid inheriting the structure of an object using ...
10
votes
3answers
1k views

How to TDD that the correct results are returned

I'm starting a new project, and trying very very hard to use TDD to drive the design. I've been pushing for years, and finally got approval to spend the extra time on this project to use it while I ...
0
votes
0answers
38 views

Viability of custom framework to serve RESTful API

Context For my end-of-year project at school I had to create a framework to serve a RESTful JSON API. I wasn't authorized to use a project like Ruby on Rails for instance, Sinatra is allowed since it ...
-1
votes
0answers
20 views

tidyParseBuffer strip the <style> tag in the body

When i use "tidyParseBuffer" function to parse a html, it remove the "style" tag in the body, usually the "style" tag should be in the head, but i need the contents in the body, what should i do to ...
0
votes
3answers
156 views

A very basic question about whether I should check for null and throw NPE? [duplicate]

Consider the below method- public void operationOnList(List<String> list) { list.add(1); } It is obvious that if l is null this method will throw a NullPointerException. My question is ...
1
vote
0answers
13 views

Linking service and factory functions to controller $scopes in Angular

I'm trying to keep my controllers as thin as possible, so I keep my domain logic in services and factories. When I need to call a function in response to a user action like a click I assign the ...
2
votes
3answers
118 views

Should I only declare the variable as integer if I can perform calculations on it?

Been thinking this for a while now, for example I have a UX that let's the user choose what IP to connect. I have numericUpDown1, numericUpDown2, numericUpDown3, numericUpDown4 to limit the user to ...
0
votes
1answer
29 views

Using “Id” as Primary Key in green field Dapper Contrib MVC 5 site

I am creating a new site and will base it on ASP.NET MVC 5 & Dapper Contrib. I want to go all in with all these technologies - and get all the time saving / convention over configuration / terse ...
1
vote
1answer
113 views

What is the correct reusable architecture using Entity Framework for common database tables and services?

Context I have a line of business application "MyApp" in C# using EF. Layers are separated as MyResusableLib.DataAccess // Class Lib: EF based utils, extension methods, MyApp.DataAccess // Class ...
3
votes
5answers
120 views

Conditionally initializing a string list

I am writing a program that needs to be able to process data from a number of different sources. The sources output data in a variety of formats. So, depending on which source is being used, I need to ...
15
votes
5answers
6k views

Proper workaround for multiple inheritence in Java (Android)

I have a conceptual problem with a proper implementation of code which seems require multiple inheritance, that would not be a problem in many OO languages, but as the project is for Android, there ...
28
votes
14answers
17k views

Is it possible to reach absolute zero bug state for large scale software?

I am talking about 20-30+ millions lines of code, software at the scale and complexity of Autodesk Maya for example. If you freeze the development as long as it needs to be, can you actually fix all ...
8
votes
3answers
151 views

In REST parlance what is the difference between a resource and a representation?

My understanding of REST that is enables modelling service operations as representation of state and transition from one state to another making use of HTTP. I have always understood resources as ...
-2
votes
0answers
33 views

understand and use Event , personal event example [on hold]

i m in front of first uses of personal event. I present some of my doubts and my problems.. I write a small class CountDown, is use a timer to create a countdown and raise an event when time target ...
1
vote
1answer
64 views

How broad is the definition of “dependency injection”?

What is the "essence" of dependency injection? Is it the idea of dynamically swapping out/in core logical/structural aspects of a program at runtime? Traditionally, this is done in code via some DI ...
1
vote
1answer
44 views

GPL: What do I have to provide?

Hello I know this is a common question, but I am not sure how my case fits in. I am building a site with a GNU licensed program called OpenCart. Now I am not "distributing" anything.. but people ...

15 30 50 per page