1
vote
0answers
51 views

How do I set up a micro-services architecture that can take advantage of a common, centralized security service?

I've obviously heard a lot about the Micro-Services Architecture and think it makes a lot of sense (especially with the success stories of Netflix). I'd like to implement a small Grails application ...
0
votes
0answers
4 views

How can I make this custom dual nav responsive and fixed at the same time? [migrated]

I have a client that want's two custom nav menus stacked on top of one another and under a slider with their logo in the center. They also want the menus to be fixed upon scroll. I have executed this ...
88
votes
8answers
14k views

Why is polling accepted in web programming?

I am currently working on a Ruby on Rails project which shows a list of images. A must-have for this project is that it shows new posts in realtime without the need of refreshing the web page. After ...
2
votes
1answer
92 views

Exceptions in ANSI C

Would it be possible to implement exception mechanism in pure ANSI C similar to the one used in popular OOP languages (with familiar try-catch-finally clauses)? If yes then how? I'm especially ...
-2
votes
0answers
74 views

Where do you code? [on hold]

I personally don't find much motivation to code sitting at home, so I go to strange places like the local mall and sit at a table and code. What about you? Where do you code and in what spaces ...
0
votes
2answers
459 views

Object inheritance and method parameters/return types - Please check my logic

I'm preparing for a test and doing practice questions, this one in particular I am unsure I did correctly: We are given a very simple UML diagram to demonstrate inheritance: I hope this is clear, it ...
15
votes
8answers
2k views

Is it normal for a programmer to not have 100% clarity over their own code at times? [on hold]

I'm not an expert programmer so this may be why, but I've come to notice that whenever I create complex code (like a Chess game I recently made), I am able to write the correct code to get the program ...
0
votes
2answers
58 views

What are the advantages of using async JavaScript modules (like AMD) for traditional sites?

This is specific to JS in the browser for a traditional multi-page site (i.e. not a single-page app). For single-page apps, the advantages are pretty clear: the main view page is going to be ...
2
votes
1answer
109 views

Who is responsible to challenge a product owner?

I am relatively new to Scrum and I am not clear on the boundaries of a product owner. The product owner that I am currently working with seems to behave more like a manager than someone who gives ...
0
votes
1answer
223 views

GUI code implementation for specific Window/Form class

Terminology Element/Form Element -> Fields such as text list, combo_boxes, push buttons, etc. Problem I have a program that is basically a fat client that interfaces into a system that keeps track ...
3
votes
2answers
428 views

What makes for a bad case for quick sort?

I am learning about quicksort and want to illustrate different arrays that quicksort would have a hard time on. The quicksort I have in mind does not have an initial random shuffling, does 2 ...
0
votes
0answers
31 views

MVC Sites and Entity Framework (using DbContext)

I've been looking at a couple of the MVC tutorials on the ASP.NET website and and have noticed numerous of them make use of Entity Framework (especially the Identity provider stuff). Maybe my ...
2
votes
2answers
134 views

Software licensing of free abandonware

I recently found the game that was my first encounter with a computer, a DOS game running in text mode. It was released in 1984 and is available on abandonware sites, but I've started to wonder if I ...
26
votes
3answers
750 views

Why squash git commits for pull requests?

Why does every serious Github repo I do pull requests for want me to squash my commits into a single commit? I thought the git log was there so you could inspect all your history and see exactly what ...
0
votes
1answer
128 views

The ViewController design in iOS vs MVC in tradiational web apps design

As I came from the background of webapps and move to iOS programming, I am wondering why we can't just apply the MVC design approach to native apps, i.e. in iOS, the view and controller are tightly ...
6
votes
1answer
297 views

The Lisp in Gnu

Since the GNU project is celebrating its anniversary, and the initial announcement for GNU is linked to (http://www.gnu.org/gnu/initial-announcement.en.html) all over the place, I reread it and I ...
-4
votes
0answers
40 views

Which library to display grid better in Conway Game of Life? [on hold]

I have implemented Conway's Game of Life in C++. I want to know which library shall i use to display the grid, as i am not satisfied with the output that i am getting on console. I need more control ...
4
votes
3answers
186 views

Batching immutable object changes?

With immutable models, what would be the best way to batch several changes? For example, let's have a Book that is immutable. I need to change both title and year. I could change one by one, but that ...
-1
votes
0answers
32 views

Moving from .net to Android - what is the best way for two apps I am developing? [on hold]

I have been developing with C# for a few years. I would love to go the Xamarin route but management have decided against that (too many java developers in the company) and I have to start learning ...
1
vote
2answers
224 views

When should I refactor a private class into a package-private class?

When I began implementing a class in my system (let's call it A), I realized I needed some kind of object that does something. So I needed a new class (let's call it B), but I made it a private static ...
-1
votes
0answers
28 views

How to add premium (featured ) user in an Entity–relationship diagram? [on hold]

I have a table 'User' in my database. When the user makes a payment after placing an order for a package, he is considered a Featured(Premium) user of a company. How do I add this Premium (Featured ...
0
votes
1answer
172 views

Did Java avoid multiple inheritance here?

I learnt that Java did not allow multiple inheritance using abstract classes for simplicity. In java, after a good design of class hierarchy, SubType would not get into trouble of same method ...
-2
votes
1answer
77 views

Learning C as my first Programming Language [on hold]

I am Very new to programming and i am Learning C, My Question is: I am learning from book (C Primer Plus: Edition 5 by Stephen Prata) at home. Will i get enough grip over C language if i learn from ...
0
votes
0answers
40 views

Async properties in interfaces to cater for the possibility of expensive first-time evaluation: Is this a good idea?

First of all, sorry if this post is too long. I'll start with the… Short version: Is it generally advisable or a good idea to design an interface property as asynchronous simply because we cannot be ...
26
votes
8answers
52k views

Stack and Heap memory in Java

As I understand, in Java, stack memory holds primitives and method invocations and heap memory is used to store objects. Suppose I have a class class A { int a ; String b; ...
2
votes
1answer
75 views

Callback functions: Semantics and maintainability, when they aren't necessary [duplicate]

Within the context of JavaScript/Node.JS; Will using Callback functions improve the maintainability of source code, when there is no need for async programming? For example does the plain code sound ...
1
vote
1answer
178 views

Dynamic git URL for Jenkins builds

We internally use GitHub Enterprise and Jenkins. If I push on the main repository it is automatically build without and the Commit is marked as correct (just as Travis does this). However, I want to ...
-2
votes
1answer
63 views

Technical and Problem Solving type questions for Graduates [on hold]

My company is looking to hire some graduate developers soon so I wanted to start putting together some questions to ask in the interviews. Ideally I'd like to ask a few basic technical question about ...
-2
votes
2answers
101 views

Java 8 vs Scala? Which one to learn? [on hold]

Scala has been promoted with advantages of perfect mix of functional programming and pure OOP and some more features which is difficult to achieve with java like reliable multi-thread programming. I ...
1
vote
1answer
137 views

Methods for structuring JavaScript SDKs

I've built a REST API and have been using Backbone models throughout a couple different applications to communicate to it. I would really like to build a single JS SDK that can be used in any ...
0
votes
1answer
47 views

Simulated Annealing Contradiction?

The entire idea of simulated annealing is to avoid getting stuck in local optimums, which is why sometimes, a worse solution is accepted. However, simulated annealing will automatically accept a ...
0
votes
0answers
44 views

Switching a versioning scheme from X.Y to X.Y.Z [on hold]

I have inherited an open source project, with a current version of 2.2. Since Semantic Versioning is all the rage, I am considering releasing the next version as 2.3.0 (perhaps starting with ...
0
votes
1answer
23 views

Should a list or array of objects be represented as a lifeline in sequence diagram?

I have the following sequence diagram to add a student to a list of students. the implementation could be like List<Student> Students = new List<Student>(); Students.Add(aStudent); I ...
55
votes
16answers
14k views

I don't know C. And why should I learn it? [on hold]

My first programming language was PHP (gasp). After that I started working with JavaScript. I've recently done work in C#. I've never once looked at low or mid level languages like C. The general ...
0
votes
3answers
275 views

Manage ClickOnce releases for different parties

I'm struggling with release management of a piece of software. First some general information: It is a ClickOnce application I follow the release often practice There are about 30 parties served ...
4
votes
2answers
400 views

What is the most appropriate testing method in this scenario?

I'm writing some Objective-C apps (for OS X/iOS) and I'm currently implementing a service to be shared across them. The service is intended to be fairly self-contained. For the current functionality ...
0
votes
1answer
138 views

Why does this evaluation function work in a connect four game in java

I am exploring how a Minimax algorithm can be used in a connect four game. I was looking through a program and found this evaluation function. private static int[][] evaluationTable = {{3, 4, 5, 7, ...
-2
votes
0answers
33 views

use Unity engine for solo project, Agile Scrum methodology [on hold]

I have solo project for making Android mobile apps simulation game for driving school learners of motorcyclist using Unity game engine I want to use Agile methodology with Scrum, and I've heard Scrum ...
21
votes
4answers
1k views

Why do code-bases in n-tier development have an equal amount of, if not more, JavaScript code now?

I've been doing web programming for a long time now, and somewhere, I lost track of why we are doing what we are doing today (or how did we come to do things this way)? I started out with basic ASP ...
0
votes
0answers
38 views

Are quotes said to escape what is in between them? [on hold]

I don't know whether to put this here on SO or english.stackexchange or if it fits none of them. I know backslash or caret or whatever the escape character is, is said to escape a character, ...
0
votes
1answer
75 views

JavaScript strict mode compatibility

While reading about strict mode on MDN I really was surprised to read the following near the end of the page, quote: Browsers don't reliably implement strict mode yet, so don't blindly depend on ...
0
votes
0answers
30 views

Rewrite Engine vs Boostrap type index file

I currently use apache mod rewrite on a site to redirect various queries / visitors such as this: if you come to example.com/authors/, you are redirected to authors.php if you come to ...
1
vote
2answers
559 views

Data transfer between “main” site and secured virtual subsite

I am currently working on a C# ASP.Net 3.5 website I wrote some years ago which consists of a "main" public site, and a sub-site which is our customer management application, using forms-based ...
15
votes
5answers
2k views

Asynchronous Programming in Functional Languages

I'm mostly a C/C++ programmer, which means that the majority of my experience is with procedural and object-oriented paradigms. However, as many C++ programmers are aware, C++ has shifted in emphasis ...
0
votes
1answer
46 views

Swift Protocol Naming Conventions [on hold]

Coming from a mainly c# background, I'm used to using the term "interface" for describing an object with no implementation that defines behaviour. In c#, the convention is to prepend interface names ...
1
vote
2answers
118 views

Python: Object initialised inside a Class?

Is possible and, if so, common practice to initialize an object inside a class in Python? self.field = Class()
-5
votes
0answers
31 views

Write a program which recurrently move to right elements of array by given number [on hold]

Write a program which recurrently move to right elements of array by given number.For example for array {1, 2, 3, 4, 5, 6} and moved by 2 it should look like that {5, 6, 1, 2, 3, 4}. ` #include ...
2
votes
1answer
164 views

What's the best way of building an administrative UI for an existing SPA application?

I’m working on an application where the client-side interface and backend server are completely separate applications. The backend is written in Ruby and only serves JSON via HTTP. The client is a ...
-2
votes
0answers
48 views

Improving command line skills [on hold]

I'd like to improve my Bash terminal skills, knowledge and muscle memory. There are a lot of books and tutorials out there, but what I'd really love some recommendations on drills or repetitive tasks ...
60
votes
4answers
17k views

Differences between TypeScript and Dart

Microsoft recently unveiled Typescript, a new JavaScript-like programming language. Some time ago, I heard about Dart, a new programming language created by Google to solve problems related to ...

15 30 50 per page