0
votes
1answer
32 views

Referencing official documentation in source-code documentation

What are your preferences for referencing official documentation (like a white paper) for an algorithm from comments in the code that implements it? I'm trying to decide between two methods, as ...
1
vote
1answer
34 views

Equidistant polygons

Consider these polygons: For reasons of simplicity I only consider triangles or polygons with 4 vertices. These shapes are specified by the vertices, the output of the program should be modified ...
-5
votes
0answers
55 views

how to learn c++ if you know nothing about programming? [on hold]

I have tried online tutorials and books but I can't find one that is fun or explains without that techy vocabulary, is there any book that is fun or is for beginers that don't know anyting.
1
vote
5answers
185 views

Coupling business logic with class definitions

Perhaps it is my scripting background, but my perspective is that the purpose of an object should be to contain data. Classes are necessary in that they provide templates and standard ways to classify ...
-4
votes
0answers
55 views

How to start programming? [on hold]

I'm 14 years old and would like to know how to start programming. I have tried reading books and online tutorials but I get bored just reading. Is there a fun book, tutorial or general method you ...
1
vote
0answers
67 views

Do serialization functions belong in a model or a controller?

I'm developing an application where: Models keep data as a multi-dimensional array, which are saved as-is to a MongoDB database. The model is used to provide methods to manipulate the data, and ...
6
votes
1answer
156 views

How are Rust Traits different from Go Interfaces?

I am relatively familiar with Go, having written a number of small programs in it. Rust, of course, I am less familiar with but keeping an eye on. Having recently read ...
-5
votes
0answers
40 views

Linux Programmer Career Opportunities: Number of job positions compared to Windows [on hold]

Linux Programmer Career Opportunities: Number of job positions compared to Windows. How are the number of job positions for Linux programmers compared to the number of job positions for Windows ...
0
votes
1answer
28 views

Guidance on android type app to connect to sql-server

Excuse my ignorance but we've got an application that we'd like to sample out on a mobile app The app is a C#/asp.net application connected to our sql server database. If we are going to write an ...
-7
votes
0answers
101 views

SOLVED! Error in result: 5^2 = 24 and 10^2 = 99? [on hold]

The compiler is GCC and the program Codelite. Using double or float works!
-3
votes
1answer
84 views

Java Multiple for loops [on hold]

I have a small java program I am working on where I am to calculate interest rates from 5%-10% after one year (this is for practice). However, when I try to print out multiple columns, it doesn't ...
0
votes
2answers
87 views

Way for java program to read file from when it was stopped

I am working on an application that reads a log file, looks for a specific string, sends alert emails and saves data from the file into a database. The reading functionality is working well, but I am ...
3
votes
3answers
95 views

MVC and the business rule

I need to know where in the MVC should I apply the business rule. Imagine the situation: I have a school and I need to generate a calendar of classes for teachers. Each teacher has a school subject ...
1
vote
2answers
250 views

How bad is using underscore in names? [on hold]

I am mainly a C programmer. In my world, writing likeThis or like_this is just a matter of style. In Haskell however, it seems that camelCase is the definite choice. Personally, I find the later much ...
1
vote
1answer
39 views

Does ES6 help grow the Ecmascript standard library?

With all the noise about EC6, one thing that I realized I haven't heard about is expanding Javascript's standard library. Javascript has a fairly sparse standard library. You need a 3rd party library ...
4
votes
3answers
475 views

What is a helper? Is it a design pattern? Is it an algorithm? [on hold]

Maybe a little tongue-in-cheek, but as I can't find this answer anywhere through Google, so to ensure Programmers Stackexchange has the answer: What is a helper? I see the name being used everywhere ...
-3
votes
1answer
56 views

What do the different [main] programming languages specialize in? [on hold]

I am somewhat new to the world of programming. I have taught myself to use C++/C/C# to accomplish moderate-level tasks (I programmed a robot a team of engineering students, myself included, are ...
1
vote
2answers
194 views

Repository pattern implementation that knows nothing (Jon Snow) about the database table and column names

I've seen around the Internet and Github, implementations for the design pattern Repository that knows about database table and column names. I was think, if I want to work with the database as a ...
-3
votes
0answers
33 views

How to format mm/yyyy in AngularJS [on hold]

I have come across various examples of formatting dd/mm/yyyy in AngularJS and I have implemented them as well. However I need to format MM/yyyy only. How can I do that I have done the following so ...
4
votes
1answer
116 views

Is it good practice declare a function inline?

I'm writing a method and depending on a config field I need to change where I get my data from. What this results in me having to write code that looks like this: List<string> result = new ...
0
votes
4answers
126 views

MySQL Database design - Opinions

Im working on a web Application for our bussiness with my brother. Our application its pretty simple, will be develop with php and mysql. Clients and providers ABMs Articles Inventory (we do not ...
0
votes
0answers
26 views

Maven GroupId with special characters [migrated]

One best practice for choosing the Maven groupId says to choose the groupId according to the domain name of the company. Some domain names contain special characters, especially hyphen-minus. And ...
-1
votes
0answers
18 views

Custom form authetication logoff redirection to another page? [on hold]

I am using asp.net mvc 5 and using custom form authetication. When I try to login it login perfectly but when I try to logoff it redirect me to logiurl which I have set in webconfig file which is give ...
15
votes
2answers
229 views

How to test and optimize when you can't reproduce the environment?

In the past, I've worked in a variety of environments. Desktop apps, games, embedded stuff, web services, command line jobs, web sites, database reporting, and so on. All of these environments shared ...
-2
votes
2answers
70 views

Patent a program: possible or not? [duplicate]

Suppose I have devised a new algorithm that solves a particular problem faster/better than the currently available fastest algorithm for that particular problem. By faster and better I mean, ...
1
vote
2answers
42 views

Why does CFileDialog::DoModal() Hang?

I have developed a fairly large C++ program in VS 6.0 on a Win XP platform, and have now migrated to a new machine running Win 7 (still running VS 6.0). The code includes a function to instantiate and ...
1
vote
2answers
54 views

A vector of pointers to different derived classes of the same base class

I am writing a game in C++ which has different enemy types. I have defined a base Enemy class and I also have derived classes enemy1, enemy2 etc. Now for updating these enemies in each iteration of ...
-4
votes
0answers
31 views

vb6/vb.net API for sms sending online [on hold]

I am not yet into vb.net but want to use some API to send messages online with some service provider in my applications, the API is exposed in https://www.africastalking.com/tutorials/sendsms, I was ...
-1
votes
3answers
108 views

Where to learn low-level programming like driver, kernel or system programming? [on hold]

Where to learn low-level programming like driver, kernel or system programming ? I've read several programming books on C\C++, but they all introduce the language without going further. I would like ...
9
votes
4answers
1k views

Pointer indexing

I am currently reading a book titled "Numerical Recipes in C". In this book, the author details how certain algorithms inherently work better if we had indices starting with 1 (I don't entirely follow ...
2
votes
1answer
50 views

Python API: Extension Module or Pure Module

We have a C++ application, with C++ interfaces changing regularly during development. We also have a C API which is designed to be stable in spite of such changes; the C API is tighly focused on ...
-3
votes
0answers
68 views

How low level language programmers see C#? [on hold]

.Net has made a helpful abstraction for the programmers when interacting at hardware level or memory management. I haven't seen anyone creating device drivers in .Net or doing memory management as the ...
0
votes
0answers
31 views

Can sequence alignment algorithms be used for search implementation?

Hi I want to implement a search on a website which includes imperfect search results. Meaning, if the search term is misspelled or slightly different from a 100% match, the function should still ...
0
votes
0answers
9 views

Where you are both the Authorization Server and Resource Server does it make sense to use OAUTH2 for security?

I'm curious if there are any use cases where it makes sense to use OAUTH2 where you are both the protected resource and the authorization server. In this case you have the passwords already for ...
1
vote
0answers
38 views

Managing debug information of C program for Eclipse

I am not sure if the title is appropriate. I have written a parser for CDB files in C# and ANTLR that creates runtime objects for me such that I can pass it to the TCF Agent which takes care of ...
-4
votes
0answers
22 views

Can anyone suggest me a good source for Exception handling and collection [on hold]

Can anyone suggest me a good source for Exception handling and collection. I have tried oracledocs, and scjp/ocjp books. But still I find that there is a lot more to cover. If anyone can suggest me ...
2
votes
1answer
58 views

does the MIT license allow me to make a product that's a front-end for another MIT-license product?

I've been struggling with timezones online for a few years now. Because I've had enough of it, I want to develop a Chrome extension that leverages moment.js so I can paste in a representation of a ...
1
vote
2answers
87 views

Databases and the single responsibility principle

Can the single responsibility principle be applied to databases? relational databases I mean. I'm asking this because a typical database will have several tables and we may find something like that ...
-4
votes
0answers
59 views

Facebook's front-end dev methodology? [on hold]

There is a Yandex' front-end development methodology. It is called "BEM" http://bem.info/method/ But is there some similar methodology from FB, for example? Or BEM's principles are applied ...
-5
votes
0answers
60 views

How to become malware analyst [on hold]

I am willing to be a malware analyst. I am 17 years old and want to be guided. I tried learning x86 assembly form (the art of assembly) but it was complex and I believe that it is very old (I don't ...
5
votes
7answers
565 views

Why isn't there a next operation on enums?

In most popular programming languages like Java and C# there is a way to define enums, which are essentially datatypes with a fixed set of values, e.g. DayOfWeek. The problem is, given a value, e.g. ...
26
votes
5answers
3k views

Why do some functional programming languages use a space for function application?

Having looked at some languages for functional programming, I always wondered why some fp-languages use one or more whitespace characters for function application (and definition), whereas most (all?) ...
-1
votes
1answer
69 views

PHP4 constructor does not work with namespaces [on hold]

Here's a scenario: whenever accessing class using namespaces in php, it doesn't launch the standard constructor, but only the 'magic' method. What's wrong here and what can be fixed? hierarchy ...
0
votes
1answer
98 views

Coding shortcuts for type conversions or similar [on hold]

bool? example = null; is actually Nullable<System.Boolean> example = null; Now for the bool to System.Boolean conversion or actually compile-time replacement: We ususally hardly care, as it ...
3
votes
4answers
198 views

Split work item into prototype and main work item?

During grooming, we usually have work items which get approved based upon the team understanding that what needs to be done? The product owner does not discuss the details of how it will be done and ...
-3
votes
0answers
36 views

Bluetooth 4 communication function and programming languages [on hold]

I have a Bluetooth 4 controller that works with an iOS app fine. What I am attempting to do is create a JavaScript that will replace the iOS app in function. For example, go to a browser, load a ...
-9
votes
0answers
40 views

help me its showing error [on hold]

class first{ int x; static first t2; private first(int val){ x=val; System.out.println("object is created"); } static first getob(int t) { if(t2==null) { first t1= new first(t); ...
-2
votes
0answers
55 views

For Programmers, System Analysts, or people who have experienced actual system or application development. Please help! [on hold]

Just need some help with my home work. Our teacher asked as to conduct an interview to people who have experienced system or application development for a certain company or business organization. I ...
45
votes
10answers
6k views

Why is software OS specific?

I'm trying to determine the technical details of why software produced using programming languages for certain operating systems only work with them. It is my understanding that binaries are specific ...
0
votes
1answer
76 views

Confused on how to properly employ a Repository Pattern with Service/Business Layer on top

I'm building a ASP.NET Web Api 2 solution for learning purposes, and I've hit a snag. I was wondering if anyone could tell me what exactly it is that I'm missing. My Web Api solution has 4 Layers: ...

15 30 50 per page