0
votes
0answers
6 views

How to market one self as a software generalist?

I've been in the busyness for around a decade and a half. Over this period, I've jumped from Web dev in ColdFusion, to Perl; then to more system level stuff in Perl and then to C++, mostly on Windows ...
0
votes
1answer
12 views

Code is not executed on Client side (Java)

I want my Client code to execute before server closes. I think it is obvious that server closes after client is connected because there are no more statements after connect(). But I don't know how to ...
0
votes
1answer
17 views

Unable to Solve Dynamic Programming

I had an assignment on dynamic programming due last night, but I had to turn it in unfinished because i could not understand how to solve the last problem: The state wants to monitor traffic on a ...
0
votes
1answer
16 views

How can I tell what standard my C is in?

Okies, totally newbie question here. I can read the code, mimic the code and understand the basics to be deadly. But, I never really took the time to understand what ANSI C really meant. I just look ...
0
votes
0answers
13 views

Is it pythonic to use properties to limit the mutability of class attributes (variables and methods)?

Some Explanation I'm somewhat new to python and to programming (I've been at it for a little over a year). I just recently discovered python properties, and I've been using them to limit the ...
0
votes
0answers
17 views

Polymorphically handle result of subtraction

I have an amount class which provides the minus method among others. The result of this operation is of course another amount. The question is how can I handle the three cases according to the signum ...
0
votes
0answers
5 views

error/correlation measure in machine learning

when calculating the error measure such as mean absolute error, we use the real values and the predicted values. Many machine learning algorithms can give a confidence measure of each value being ...
-1
votes
1answer
38 views

Is 3000 hours of programming enough to get a job as a junior developer?

Including time spent reading books to learn programming, as well as actual programming, would 3000 hours be enough to land a job as a junior developer?
0
votes
0answers
50 views

How was Microsoft's Tay exploited?

It's rather well known at this point, Microsoft's Tay fiasco. In summary, Microsoft released a chat AI onto Twitter and it was quickly trained by the public to be extremely vulgar and offensive. The ...
0
votes
0answers
6 views

Email client to send transactional emails from my site which is built on AngularJS & Firebase!

I am developing a site using AngularFire & Javascript. Firebase is the back end! Now I want to integrate an email client, for example Mandrill, to send transactional/trigger based emails to ...
1
vote
1answer
28 views

Weighing value of change vs. cost, how to handle costly changes

Quite often there are situations where a bug exists in code, or a feature is requested, where it is expected that the fix/implementation will add less value to the business than the cost of any of: ...
0
votes
1answer
21 views

Multiple arguments for last parameter

I have function that has three parameters, called key, value and attribute. Parameter attribute may be empty or have within two arguments. Code of function below is shortened (deprived of arguments ...
1
vote
1answer
43 views

Boolean endpoint within a RESTful API

I am currently designing a JSON RESTful API which should have a boolean endpoint such as /item/vote which can either be false meaning that a user has not voted for a specific item or true meaning that ...
-4
votes
1answer
66 views

How exactly does this Java expression evaluate?

int y = 10; int z; z = (++y * (y++ + 5)); // Evaluates to 176 According to me this should evaluate to 180. Please provide an explanation as well which relates to precedence and associativity.
-3
votes
0answers
39 views

What knowledge is necessary for launching a website

I have a startup website (still a project). I've written all the HTML/CSS/JS codes. I want to employ a developer in my city for all of the remaining work until the launch and after that. What ...
-2
votes
0answers
21 views

Remove metadata from document using c#?

I'm currently using C# to set the custom attributes of multiple excel files. I'm using an imported library from Microsoft known as DSOFile to write to the CustomProperties property. One issue that ...
-5
votes
1answer
44 views

Is there a special character that marks the end of a file?

So i have a .txt file my program is reading that is a bunch of words separated by newlines. The program is reading this file one character at a time until the newline character "\n" and then doing ...
4
votes
3answers
114 views

Is it correct to say that a variable is an instance of a data type?

(that can change its value over the course of the program) Or is 'instance of something' strictly related to classes and objects? If so, how would you define the concept of 'variable' when it comes ...
2
votes
1answer
17 views

UML attributes types and names

Does UML provide its own data types for the attributes in the class diagram? If so, what data types does UML provide? If UML provides its own data type and the target language has an equivalent type ...
-1
votes
0answers
23 views

Starting with angular2 or find some other framework? [on hold]

I had good experience in developing applications using angular 1x. I had pushed for using angular and angular material in our company too. But now angular 2 is in beta, and does it make sense to ...
-2
votes
0answers
45 views

A way to rename classes dynamically?

Context: I wrote a book for people willing to know about programming. For labs I use a limited subset of Groovy. Now I want to use internationalisation features on a library I wrote for easy ...
-1
votes
0answers
7 views

Git / SourceTree: how to delete a branch? [migrated]

Following git flow, I have merged my finished feature branches into develop branch. But then I've created the release branch to soon accidently. What I'd like to do now is go back into the develop ...
0
votes
1answer
41 views

Should Laravel's App::make() be considered a dependency?

I think the question in general is best summed up as, should Laravel's App::make() be considered a dependency? On the one hand it can instantiate any number of different implementations, so maybe it ...
1
vote
3answers
67 views

Private string constants for map keys

Is it good practice to define private constant strings that have the same name as their values? Take the following code for example. public class Example { private static final String FIRST_KEY ...
-1
votes
2answers
51 views

Can the Linux kernel be described as a Server?

I am developping an Android application that is using NDK in order to access to data from the Linux kernel. As you may know, this is done using IPC (Inter Process Communication) through Android's ...
-1
votes
0answers
15 views

Spinner display blank items. No error displayed [on hold]

I have tried to use Spinner to display data from SQLite. There was no errors but the spinner displayed nothing. Can anyone solve this problem before. Below is my code: CategoryBO.java package ...
35
votes
5answers
2k views

How does a surname of Null cause problems in many databases?

I read an article on BBC. One of the examples they said was that people with surname 'Null' are having problems with entering their details in some websites. No explanation is given about the error ...
2
votes
2answers
81 views

Reversible Functions

Currently writing a JSON Importer and creating some POJOs based on the data. I also have a requirement to write an JSON Exporter which take the information in the POJOs and exports a JSON doc. To me ...
2
votes
0answers
46 views

Is it possible for a weak entity, already related to a strong entity, to get related to another weak entity in an ER diagram? [migrated]

I have a problem statement (briefed), Database for a Fitness Club - Client's Attributes: Name, Address, Ph. No. Membership Plan's Attributes: Beg. date, Sub. Fee, Monthly Fee, Duration ...
-4
votes
2answers
42 views

What are the advantages of making software as opensource [duplicate]

I see many good projects like clamav, Apache have been made as open source. I know its advantages to the end user but what is the advantage to the developer. Because projects like clamav can earn lot ...
2
votes
1answer
96 views

Differences between “function as first-class citizen” mechanisms

C# / VB.NET have the concept of a delegate which enables first-class functions: var l = new List<int>(); Func<string> fn = l.ToString; This is not the method itself, but rather an ...
-2
votes
0answers
21 views

What could be the domain for a smartphone app that records speech and performs sentiment analysis on it? [on hold]

We are in the process of creating a smartphone application that will record conversations and perform speech to text sentiment analysis on it. What could be the Business Domain of aforementioned ...
-4
votes
0answers
37 views

Question about JavaScript two dimensional array [on hold]

The table that displays on the screen after I enter values in the form is full of mostly undefined and NaN. My code seems to be going off the rails at the point where I calculate the data for the 2d ...
0
votes
0answers
4 views

How to set MinGW-w64 with Qt [migrated]

I have installed Qt on my desktop. It opens and I create a new project, After a few steps the kits step comes up. I clicked on configure and it showed a red error sign side of the desktop kit for ...
0
votes
3answers
79 views

Should REST APIs contain the ability to dispatch email?

When building a service that uses both a back-end REST API, and (a) front-end application(s), is it proper to build into that API the ability to dispatch email? Take Twitter for example; for those ...
-1
votes
3answers
185 views

Closed because investing time here did not pay off [on hold]

After improving my question over and over again and did not get a reopen, I am fed up with this site.
-2
votes
1answer
76 views

Is there an official name for the “one object disease” anti-pattern (iterative single object operations on databases, services etc.)?

It is caused by the naive programming paradigm: focus on just a single object, do something with it, and if you have to work with many objects, you loop, iterate and traverse, repeating the operation ...
4
votes
0answers
49 views

Visitor Pattern, replacing objects

I have a program that translates a DSL to C++, which uses a Visitor pattern on the intermediate representation. I quite often need to replace the currently processed node with one of a different type ...
0
votes
0answers
66 views

How to consume Checkstyle output without disk I/O?

I'm facing a dilemma in one of my gradle Java projects where I consume Checkstyle in my application, but I require a specific functionality that is unavailable in Checkstyle. Here's the way my ...
0
votes
1answer
65 views

Optimal way to use null conditional operators in boolean expressions

You are writing a boolean expression that might look like this: team.Category == "A Team" && team?.Manager?.IsVietnamVet public class Manager { public bool IsVietnamVet { get; set; } } ...
-3
votes
2answers
97 views

Automatically detect offensive images [on hold]

I want to develop an app where users can upload an share images. I am planning to integrate a disclaimer which says that it is prohibited to upload images which contain crime, sex, insults etc. ...
2
votes
1answer
61 views

Difference between Python classes and Haskell typeclasses

I'm an intermediate Python dev and just starting out with Haskell. It seems like Python's classes can be used in a way that is similar to how Haskell's typeclasses are used. It seems like typeclasses ...
-1
votes
0answers
12 views

Backup directory with tar through tarfile module but with exclusion of some folder

I would ask if is possible in Python create an archive from a directory that I want backup excluding some sub-dirs. For example I would like create a tar backup of home dir without include the Music ...
-6
votes
0answers
49 views

Need help to know the logic behind flow chart aptitude sample question [duplicate]

Please help me out in detail to understand the logic to solve this question. Even i found similar/duplicate question here also but not able to understand the answers. I tried to explain the question ...
4
votes
1answer
61 views

Partially parallel producer-consumer pattern with internal state

I need to implement a producer-consumer pattern for reading, processing and saving electrical values. I have to implement this in C# .NET 4.6.1. I try to describe this in great detail, so that there ...
1
vote
1answer
28 views

What are best practices when it comes to extensions in Swift with reusability in mind?

I like the Swift way of trying to eliminate unintended consequences wherever possible. Whenever there is a change to the language that deprecates something I have been doing for years, it forces me to ...
1
vote
3answers
60 views

Should I keep “redirect only” methods in my Controller?

Controller: function indexAction() { if ($condition) $this->renumPosition($id); //LINE #1 } //Redirect only - function's sole purpose is to call another function function ...
4
votes
3answers
88 views

Convert version string to integer

I need to be able to convert a version string to an integer. I've decided I will follow semantic versioning so version strings will be of the type x.y.z. Initially I thought a simple algorithm like ...
0
votes
0answers
16 views

what to consider when validating a text area with jQuery?

I'm creating a contact form for my website and not sure what are the things I should check during validation for comment section other than empty text area. <div class="form-group note"> ...
1
vote
1answer
78 views

Developing a calculator using the command pattern

In an attempt to solidify my understanding of the command pattern, I decided to write a calculator application that utilised it. After making some progress, I realised that my choice of application ...

15 30 50 per page