3
votes
4answers
1k views

What are effective ways to introduce the concept of code kata into the workplace?

In your experiences, what are some effective ways to introduce code kata practice into an organization or company? To be clear, I'm not concerned with the usefulness of code kata. I'm interested in ...
-2
votes
5answers
2k views

Programming Test [duplicate]

Possible Duplicate: Good interview programming projects We are looking to hire some more Java developers onto our team, and plan to test their coding abilities with a test. We currently use ...
1
vote
3answers
302 views

In C++, should I ever declare a local variable in the corresponding header?

So for example, I create a class with two functions: foo.h class foo { public: foo(); void bar(); void ey(); bool m_memberBool; bool localBool; // ??? Should I put this here? }; ...
24
votes
11answers
10k views

How do I design an arbitrary system in an interview? [on hold]

A common question in Tech Interview is to design a particular system, usually an existing product of the company. For example, "Design Google Docs". What is the expected answer for such a question? I ...
4
votes
0answers
39 views

Whether to abstract small repeating code segments in HTML templates?

(The framework used in question is AngularJS so the question can be translated as "Whether to introduce Directives for small repeating code segments in Views") As a developer who focuses on Java ...
-1
votes
0answers
32 views

Cygwin vs GOW feature comparison [on hold]

Im a heavy windows user who is now starting to look more closely at linux and managing linux systems. I have both Cygwin and Gow installed as my first step, as I start to ssh to linux systems as well ...
4
votes
3answers
194 views

Automatic builders/chain setters for Java?

Consider that code: FancyClass c = new FancyClass(); s.setParameter(value); s.setParameter2(value2); //a lot of parameters It is really naive, so we can use a builder pattern: FancyClass c = new ...
2
votes
1answer
282 views

Merge two different API calls into One

I have two different apps in my django project. One is "comment" and an other one is "files". A comment might save some file attached to it. The current way of creating a comment with attachments is ...
27
votes
10answers
3k views

Is template “metaprogramming” in Java a good idea?

There is a source file in a rather large project with several functions that are extremely performance-sensitive (called millions of times per second). In fact, the previous maintainer decided to ...
-4
votes
0answers
84 views

One minute programming task to show off skills [on hold]

I am going to make a one-minute long programming screencast. The purpose is to show off my skills and ability to get things done as well as working style like clean coding and productivity hacks. It ...
-3
votes
0answers
23 views

How to use Multiple class in javascript function for testmonial? [on hold]

I Have Two Div I want Use this Class For Testmonial Show Please Tellme How I use 2 class in one Function.
3
votes
1answer
450 views

Capturing mobile device system (output) audio

I'm trying to figure out a way to capture the system audio of an Android and/or Windows Phone. The idea is to provide a stream based on the music I'm currently playing on my phone. What I'm not sure ...
2
votes
3answers
524 views

can you have too many dto/bo - mapping method

I have a windows service, 2 web services and a web interface that need to follow the same path (data wise). So I came up with two ways of creating my solution. My concern is the fact that the ...
7
votes
4answers
478 views

I want to explain why the specification must not be changed during development period

I want to explain why the specification must not be changed during development period to the new planning department employee.
0
votes
0answers
38 views

How to detect marks on a custom form [on hold]

I've created a custom form on paper that will be scanned. The form looks very similar to this lottery ticket form. I think there are several ways to do this. One of the things I've tried using is ...
-3
votes
0answers
53 views

Professional conduct for code copying [on hold]

Note: I have already read the following similar questions, and still have a doubt Is it okay to not completely understand code functionality? How can I deal with the cargo-cult programming ...
2
votes
2answers
93 views

Creating entities with validated Addresses via REST API

I am building a REST service. This services enables the user to create an entity that has an Address. For simplification, let say this other entity is 'House', so 'A House has an Address'. The system ...
-4
votes
0answers
25 views

Arrays List and loops [on hold]

I'm not really sure how I could arrange these two in code to combine them together. I start off with five groups of some amount of cards which I believe that I can use an arrays list. But then I have ...
1
vote
0answers
32 views

Android, PHP session and JSON object retrieval

I am working on an app in android studio.. it currently has a login and registration system that are linked to a database and both work perfectly. I am now trying to carry over the user id value ...
-3
votes
0answers
20 views

Programming for NodeJS on Android - what toolset and equipments to use? [on hold]

I use a laptop to develop for NodeJS/browser environment (JavaScript apps and tooling, like gulp, for example), but I guess it's not too pratical or confortable to use it on the bus or the subway, so ...
-3
votes
0answers
21 views

Terminology: System available over the public internet [on hold]

This is a last minute emergency. What is the correct terminology for a system which is accessible via the internet? My system is available in a local environment, but through database replication is ...
3
votes
2answers
214 views

Are there any reasons not to cache an entire site permanently?

I am writing an uber simple blogging platform. The application reads a set of static files that are the articles in the blog, and serves them up. The only time any content on the site will change is ...
1
vote
0answers
47 views

Simple REST API calls using Spring?

Okay I'm having a simple REST API that is now running. I also got a mobile app (Android) that would be ready for some network communication. But here is the thing: I now got a fancy API created with ...
14
votes
8answers
7k views

Feature vs. Function [closed]

Often I hear PMs (Project Managers) talk about feature and function. And I'm just so puzzled to differentiate them. Sometimes I think of a feature to be equivalent to a user story. Something like "As ...
18
votes
5answers
2k views

If Scala runs on the JVM, how can Scala do things that Java seemingly cannot? [duplicate]

I just learned about Scala yesterday, and I'd like to learn more about it. One thing that came to mind, however, from reading the Scala website is that if Scala runs on the JVM, then how is it ...
4
votes
1answer
1k views

How should I structure modules in an Angular.js application?

I am fairly new to Angular.js, and one that confuses me is how to best use modules in an application. It seems to me that modules can contain any of the other common constructs in AngularJS ...
39
votes
3answers
3k views

When should I use event-based programming?

I have been passing callbacks or just triggering the functions from other function in my programs to make things happen once tasks complete. When something finishes, I trigger the function directly: ...
6
votes
2answers
490 views

Deploying Qt-based app on Mac OS X

I wrote a cross platform application and I distributed it successfully for Windows and Linux (and tested them on "clean" virtual systems, with no other additional software and/or libraries installed). ...
-5
votes
0answers
40 views

New generation programming languages [on hold]

I am going to choose one of my favorite topics to work on during my PhD studies. Just for your information, I have studied mathematics, and Software Engineering in B.Sc. and for the moment I am doing ...
1
vote
0answers
36 views

Ruby create a class from a specification file [migrated]

I have a specification file Spec.txt like this title :Test attribute :fieldOne, String attribute :fieldTwo, Fixnum constraint :fieldOne, 'fieldOne != nil' constraint :fieldTwo, 'fieldTwo ...
669
votes
9answers
221k views

Which hashing algorithm is best for uniqueness and speed?

Which hashing algorithm is best for uniqueness and speed? Example (good) uses include hash dictionaries. I know there are things like SHA-256 and such, but these algorithms are designed to be ...
1
vote
1answer
95 views

Are there real world examples demonstrating reasonable performance improvement by using move semantics?

(I've asked a similar question on SO but unfortunately it might not be proper, so I also put here; please kindly point out if you think it's a duplicate.) I've heard many words about the move ...
-4
votes
0answers
63 views

Should all programmers use a scripting language? [on hold]

I hope this question isnt to broad but should all programmer learn a scripting language to use along side there core language in a large personal project ? Details: Details for the project are ...
27
votes
8answers
5k views

What should web programmers know about cryptography? [on hold]

Should programmers who build websites/web applications understand cryptography? I have no idea how most crypographic algorithms work, and I really don't understand the differences between ...
3
votes
1answer
139 views

Is there any reason not to make a webapp be client-side only?

I recently started writing a path-finding algorithm simulation application in python. It takes user inputs, randomly generates a 2d graph, and shows displays the simulation via GUI. Now, what I ...
6
votes
2answers
98 views

Version controlling a database's contents

I'm working on a web project that involves user-editable content, and I'd like to be able to do version-tracking of the actual content, which lives in a database. Basically, I want to implement ...
-5
votes
0answers
24 views

How to do machine learning ensembling [on hold]

I want to know how machine-learning-ensemble is done. how can I ensemble out put of logistic regression and support vector machine.
3
votes
1answer
229 views

Efficient algorithm for Virtual Machine(VM) Consolidation in Cloud

PROBLEM: We have N physical machines(PMs) each with ram Ri, cpu Ci and a set of currently scheduled VMs each with ram requirement ri and ci respectively Moving(Migrating) any VM from one PM to ...
4
votes
0answers
92 views

What is the maximum number of steps to find a bug using bisecting?

Assume that a node A in the commit tree of a codebase contains a bug but some ancestor B of A is clean from that very bug. Given the topology of the commit tree [B,A] leading from B to A, can we ...
2
votes
1answer
169 views

Debugging xml and annotations

By now, most web containers have an annotation variant of their xml configurations for Java EE. I'm guessing this is because it's better to keep things in Java where they can be managed, coded with ...
0
votes
0answers
10 views

Computing theory: can a single node be a subgraph? [migrated]

Can a single node be considered a subgraph? For example, if I had this graph, G: X-----Y and I deleted Y, leaving me with the graph X is this a subgraph (induced) of G? What about the following ...
4
votes
1answer
137 views

Too many parameters to data processing class constructor

I have a conceptually simple application: data comes in as small encrypted packets, they decrypted and validated, some are stored in the database, some rules are applied, and a reply might be ...
-3
votes
0answers
22 views

Matrices Developing using Java [on hold]

Okay hey guys, So am asked to develop a matrices program using Java the program have a class called Matrix represents matrix of the fraction Number(another class) the quastion is How To :The class ...
2
votes
0answers
28 views

Seeking opinions on using device tree for I/O definition

I've been working ELLCC, a clang/LLVM based development tool chain targeting ARM, Mips, Microblaze, PowerPC, and x86 targets. The tool chain is pretty complete and runs on Linux, Windows, and Mac OS ...
3
votes
0answers
18 views

Partial Model Updates From View

I hope this is on-topic here since I'm a bit new to the whiteboard... I'm currently developing an application using ASP.NET MVC 5 (and WebAPI 2). One of my domain entities is huge, and is stored in ...
2
votes
1answer
175 views

When do I reuse or create a new Builder

I've implemented a Builder Pattern in a project I'm working. I'm using this design pattern to created Fields and Components (div, tables, panel (boostrap)). So I have a Director Component class. It ...
1
vote
1answer
44 views

What does “Stateful” means in Stateful ViewModel in MVVM

I was reading about some XAML patterns, and there was the Stateful ViewModel, according to what I read it has nothing different than what we as just the "ViewModel". Here's a description for example ...
2
votes
2answers
142 views

How/when to “build” a Singleton that stores configuration data

I am a junior developer (think "intern-level" experience) working at a small shop more or less alone on a project that consumes data from a database, processes it, and inserts the results into another ...
-1
votes
0answers
23 views

Comparing and adding (math) integers in an array [on hold]

Long time Front-End Dev, new-ish to core programming theories. I am trying to solve a problem, but mentorship to gain better language is needed to progress. Write a method to return the minimum # of ...
-4
votes
0answers
32 views

Foreign characters display like junk on the screen [on hold]

We want åäöÅÄÖ to work (for a custom cryptography) with Java. It seems that there is a problem whether åäöÅÄÖ are before Aa or after Zz. Which is it and which should it be? Am I mistaken that this has ...

15 30 50 per page