-2
votes
1answer
25 views

Does datetime.fromtimestamp() return a datetime object or a string?

Basically what the title says. This is a more theoretical question than anything, I don't have a specific use for it. I've looked up the documentation and I can't find a definite answer.
-2
votes
0answers
24 views

NullPointerException from tring to get seperate RGB components [migrated]

I am trying to get the seperate RGB components from each element in a 2D color array,but it keeps throwing a NullPointerException and I am not sure why. It might be something small that I missed, so ...
-2
votes
0answers
27 views

Convert base 10 number to null terminated ascii string [migrated]

I'm wondering if I am thinking about this correctly. I need to convert 301 base 10 to a null terminated ASCII string in hexadecimal. I get the following: "3" = 33 "0" = 30 "1" = 31 NULL = 00 Which ...
2
votes
1answer
109 views

Declaring JS Functions in Two Ways : What's the Benefit?

I've come across JS code in which I see functions being declared in two different styles: Method 1 function doSomething(){ alert('This is one way of declaring a function'); } Method 2 ...
-1
votes
0answers
23 views

project management software [on hold]

I am starting a software development project of 6 people, and I am looking for a configuration that will allow the following features: Create and assign tasks. Front end for source control Content ...
0
votes
0answers
2 views

How to have only one of two DataGridViewCheckBox columns checked or true in a DataGridView [migrated]

I have a DataGridView with five columns defined. The user populates the DataGridView at runtime by selecting one or more files through an openFileDialog and the file name(s) are loaded into the first ...
0
votes
0answers
28 views

Best Practices for Managing Low Disc Space [on hold]

What are the norms for managing a low disc space situation? i.e. what should my application do if there is low disc space on startup? What would an application normally do if it runs out of space ...
2
votes
3answers
172 views

The recommended Way to exit a Loop

Occasionally - but recurringly - I face the following loop pattern problem: CodeSnippet1 DO WHILE LoopCondition //LoopCondition depends on some pre-calculation from CodeSnippet1 CodeSnippet2 ...
0
votes
1answer
65 views

Return values and exceptions

I wrote simple function that returns a string depending on which condition is TRUE. Here is my code: private String getMyString() { if(!mStrigMember.isEmpty()) { return mStrigMember; ...
1
vote
1answer
32 views

Setting Up “Internal” Network Between Multiple Servers?

So I have a few servers who handle different things. One is for a forward-facing website, one is an internally used website, as well as a few servers that host DB's. I am in the process of writing a ...
-5
votes
0answers
31 views

Editing assembly code for 68HC11 Micro? [on hold]

1 ORG $0020 start of RAM (data) 2 AT1 RMB 2 3 Space RMB 1 4 Length RMB 1 5 Count RMB 1 6 Ptr RMB 2 7 ORG $E000 start of ROM (program) 8 START ...
0
votes
0answers
27 views

Can you write normal Windows applications with C++/CX? [migrated]

Or are you restricted to the "Metro style" applications and Windows Store apps? At first I thought C++/CX would be a good alternative to C++/CLI as it has some nifty C#-esque keywords ('sealed', ...
1
vote
1answer
24 views

Restrictions of using a CC BY-NC resource in software?

Lets say there is a resource published under the CC BY-NC license that is not itself in any way related to software, but rather a database of sorts for example. As I understand, this places ...
5
votes
3answers
201 views

SQL - Algorithm for finding availability of a resource

I'm having trouble creating a mysql compatible algorithm for this. Background App with mysql, perl and JS. It's a booking system where each booking is comprised of a start, end and qty. Start and ...
-2
votes
0answers
37 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
36 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
37 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 ...
18
votes
3answers
2k views

Is it worth even checking to see if Guid.NewGuid() is Guid.Empty?

In one of the projects I'm working on the following pattern is seen on a fairly regular basis: var guid = Guid.NewGuid().ToString(); while (guid == Guid.Empty.ToString()) { guid = ...
-1
votes
0answers
58 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 ...
1
vote
1answer
54 views

Assigning default values from environment variable in Node.js

When attempting to set default values for parameters that may exist in environment variables in JavaScript, I often see this pattern: var lag; try { lag = process.env.THROTTLE_LAG; } catch ( e ) ...
1
vote
2answers
62 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 ...
20
votes
6answers
2k views

When NOT to apply Dependency Inversion?

I am currently trying to figure out SOLID. So Dependency inversion means that any two classes should communicate via interfaces, not directly. E.g. if class A has a method, that expects a pointer to ...
-1
votes
2answers
43 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 ...
0
votes
0answers
22 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; ...
0
votes
0answers
19 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
16 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 ...
-5
votes
0answers
30 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
19 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 ...
0
votes
1answer
70 views

Database object mapping, good practices [on hold]

I think I've understood the basic idea behind object mapping but there is one gap in my knowledge base that I hope to fill now. First let me tell you what I understand out of the whole thing. I have ...
5
votes
4answers
145 views

How to unit test correct implementation of an interface is used?

I have this problem with unit testing for years. Unit testing should test isolated units, that is, if we use interface/implementation vocabulary, it should test concrete implementation classes. Fine, ...
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 ...
2
votes
1answer
58 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 ...
2
votes
2answers
122 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"] = ...
1
vote
4answers
152 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
1answer
68 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
0answers
69 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 ...
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 ...
1
vote
3answers
85 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
22 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 ...
-4
votes
0answers
63 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 ...
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 ...
0
votes
2answers
82 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; ...
2
votes
1answer
33 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
2answers
65 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
3answers
147 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 ...
-4
votes
0answers
70 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 ...
-4
votes
0answers
43 views

when i'm using 3 tier insertion try-catch, showingstack overflow exception..i'm new to the try-catch block pls help me! [on hold]

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.SqlClient; using System.Data; namespace Wpf_threetier_test { ...
2
votes
0answers
60 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 ...
2
votes
5answers
146 views

Implement multiple separate interfaces or interface hierarchy

I've been refactoring one of my projects recently and ran into a decision I have to make. I have several interfaces: Entity: Something in the game world Actor: An Entity that can perform actions ...

15 30 50 per page