4
votes
4answers
210 views
Returning a boolean when success or failure is the sole concern
I often find myself returning a boolean from a method, that's used in multiple locations, in order to contain all the logic around that method in a single place. All the (internal) calling method ...
2
votes
3answers
182 views
Is it possible to create a single tokenizer to parse this?
This extends off this other Q&A thread, but is going into details that are out of scope from the original question.
I am generating a parser that is to parse a context-sensitive grammar which can ...
1
vote
1answer
56 views
Who gets source code access with agpl
After reading for what seems days on the specifics of GPLv3 and more specifically AGPLv3, I have one question as far as distributing and to whom.
If I create a web app (server and client) for a ...
6
votes
2answers
153 views
Would Task-based programming in C++ require new language standard features?
So I saw this video on Youtube with all these C++ masters on GoingNative 2012 : Interactive panel where everybody could ask the questions.
This is the video I was talking about: GoingNative 2012 - ...
-2
votes
1answer
214 views
Is programming on different monitors bad for your eyes? [closed]
Are there any long term health risks for your eyes when using multiple monitor setups, where the manufacture of the monitors is different?
For example, if you were to use a dual monitor setup where ...
0
votes
1answer
43 views
Is it possible to import vb.net form to blend?
I have created a windows form using visual studio design, that is simply drag n drop component into the form from Toolbox.
Is it possible to import it into Blend and change its appearence using Blend?
...
6
votes
3answers
244 views
+50
simple 'defrag' logic that minimizes changes?
edit:
so clearly I didn't explain this well, so let me try again with examples. I have a 'pipe' of a given size with signals routed through it at given offsets. The pipe can get fragmented with ...
5
votes
1answer
139 views
Best github repository layout for snippets in multiple programming languages
I have to create a github-presence for an open-source organization. The aim is to distribute code snippets and reference implementations in different programming languages.
These contributions are ...
0
votes
1answer
97 views
Mono patent safety [duplicate]
Could you please share you thoughts about Mono patent safety? Is it risky to use Mono in production for commercial projects? In case of WEB application, for example the following technology stack: ...
1
vote
0answers
106 views
Which lower-level language is most similar to javascript? [closed]
When I say lower-level language, I'm talking about something that compiles to machine code as opposed to being interpreted or compiling to CIL/etc. Is there a lower-level language that bears ...
0
votes
1answer
32 views
Apache license in non-Apache licensed software; how to distinguish?
The Apache License states:
"You must give any other recipients of the Work or Derivative Works a copy of this License;"
So if you've copied a bunch of functions from some Apache-licensed code (so ...
-3
votes
0answers
108 views
How does an open source software make money? [duplicate]
I would like to know how an open source software make money when it is free.
Even for customer support third parties are willing to support, in that case how does the open source software make money?
6
votes
1answer
282 views
Are there any statistical information about what kinds of work programmers do?
I'm working as a java developer for a while now. I usually work on business applications and I recently realized that my work mainly consist of
writing an endless stream of facade classes
followed ...
1
vote
1answer
149 views
Why is it impossible for Google to port V8 along with Chrome's codebase in C/Obj-C on iOS?
Google has given a reason that All apps on iOS have to run in the sandbox environment except for special apps by apple that get to tap into some private APIs.
So Chrome on iOS uses whatever the ...
2
votes
2answers
95 views
Find common functionalities or functions between 2 programs
I've been facing a problem recently, in which I want to optimize two programs.
For that, I wanted to create some kind of "Common Interface" which I could reuse between my two programs.
However, the ...
-2
votes
0answers
28 views
Working with multiple same elements jQuery [closed]
I don't know if the title describes the problem correctly so the problem is as follows. If I have multiple elements with same classes or the elements are same like:
<a href="Link"><img ...
0
votes
0answers
80 views
What is the best way to communicate that certain functionality is currently unavailable in an application [migrated]
Let's say there is some feature in an application (accessed via a button) that only becomes available once a number of criteria are met.
Off the top of my head, there are 3 options here:
Hide the ...
2
votes
1answer
78 views
Client side authentication through signatures instead of passwords
I want to save some user-generated data with some signature of the user that generated it (let's say that the user has to fill some forms with some data and I want him to sign the written data).
The ...
2
votes
4answers
123 views
Initializing derived classes in the same way
I have a class Base that has several children, say A, B, C. For testing purposes I'd like to mock those derived classes by deriving from them. So MockA derives from A, MockB derives from B and so on.
...
8
votes
4answers
450 views
Is physical Agile board “always” better than electronic tool?
Whenever the question comes up on which Agile tool to use use there always some people that answer "don't use an electronic tool because you will lose the big-visible-board advantage which better ...
-3
votes
1answer
62 views
Refactoring methods with the same behavior [closed]
Imagine you have 2 methods :
GetConsolidation([...]);
GetReportOfConsolidation([...]);
These 2 methods use the same "behavior" (some local variables assigned with data) like :
var data = ...
-3
votes
0answers
168 views
C# Developer Interview in Quant Trading Firm [closed]
I have a senior developer interview coming up with a quantitative trading firm. It is a first interview after the pre-screening online test in C#.
Can someone guide as to what areas to prepare for?
1
vote
5answers
165 views
Is it a good practice to write a method that gets something and checks the value? [duplicate]
Occassinally I have to write methods like this:
string GetReportOutputDirectoryAndMakeSureExist()
{
string path = Path.Combine ( ... ) //whatever logic
if(!Directory.Exists(path)) ...
-3
votes
0answers
45 views
How to check if a line exists between 2 given points in matlab
I have a graph, and on that graph I have plotted 16 points.
Now by an algorithm I am connecting points. The graph is actually a 4 by 4 grid with total 16 points in it.
The points are:
a1, a2, ...
2
votes
5answers
258 views
Other than XML, what are some examples of “coding” a GUI design?
I've been trying to think outside of the box as to how desktop GUIs can be designed in code(not a graphical designer!). I've come across basically three ways this is done:
XML
Raw code (create a ...
1
vote
2answers
92 views
Private Repository Management for Potential Employers
I have some projects that I do not wish to be viewed publicly (some of them are school course work), but I want to show them to my potential employers. Ideally, I would be able to generate some ...
1
vote
1answer
156 views
Solving the last mile problem in software engineering [closed]
The more I write code the more I realize that writing the code is not the hard part. The hard part is making sure all the dependencies are in order, there are no hard coded paths, that I don't have ...
1
vote
1answer
102 views
Enterprise application with lots of SQL queries
Context:
I'm working on a fairly large Access database (which I inherited) that has its interface and tables separated. In order to make this work together, we have a lot of SQL queries (dozens). ...
-1
votes
0answers
44 views
f(n) output of universal program [migrated]
I have a question concerning an unicersal program (goto program). Well, let f(n) be the output of an universal goto program U with input (n,n), where the first n describes the encoding and the second ...
0
votes
0answers
4 views
Partial recursive function and Turing machine [migrated]
The wikipedia article http://en.wikipedia.org/wiki/Primitive_recursive_function states that "An equivalent definition states that a partial recursive function is one that can be computed by a Turing ...
-1
votes
2answers
223 views
What is the name of a grammar which can change it's tokenizer in mid parse?
I was creating a language and discovered that my language tokenizer would have to change depending where in the parse it is.
I.e. abc[1] would be parsed as 4 tokens (abc, [, 1, ]), where as { abc[1] ...
1
vote
4answers
143 views
Is XML, HTML/CSS, XSL analogous to Model, View, Controller?
For some time in personal projects I have been using XSL to convert my raw XML data into human-friendly HTML/CSS (in simple projects, I have no JavaScript, so let's leave that out of the equation for ...
1
vote
1answer
108 views
How do you sell the use of third-party libraries to your organisations? [closed]
I've never really had a problem integrating popular third-party libraries into my projects at work until quite recently.
I was moved onto a project team who had historically written code for embedded ...
0
votes
0answers
10 views
Is it possible to retrieve the directory structure of the zend framework 2 in hierarchy [migrated]
I have an idea to develop a module for zend framework 2 which will produce some files under the folders of controllers and models directory. I want to give an option to the end user that under which ...
-1
votes
1answer
66 views
Using Rails with a NoSQL database [closed]
I'm planning on creating a Rails site that is backed by a NoSQL database (DynamoDB). Admittedly, I'm no expert in Rails however this immediately seems to go against conventional Rails configurations ...
1
vote
3answers
111 views
How should test for a “for any different than x return false” requirement look like
I tried to find if there's a similar question but didn't even know what keywords should I use :)
I got a method in an interface accepting an other interface as a parameter:
bool CanDoIt(AnInterface ...
-1
votes
0answers
85 views
Benchmarks: How much faster are Adobe Air Android apps than webgl on Android in performance and how much slower it is from Native Apps [closed]
I need to know this before i find commit to one path. The question is exactly what i am looking for. I want to performance in terms of ability to render x number of triangles and at x frame rate per ...
1
vote
1answer
76 views
Is there a tool that will list all dependencies of a method in Java?
Say I'm looking at some code and I see:
MessageDigestPasswordEncoder encoder = new MessageDigestPasswordEncoder("SHA-512");
Now, in that file I also see:
import ...
28
votes
12answers
4k views
Why is 0 false?
This question may sound dumb, but why does 0 evaluates to false and any other [integer] value to true is most of programming languages?
String comparison
Since the question seems a little bit too ...
-3
votes
0answers
57 views
Programming related sites/blogs to follow [duplicate]
Thought this question was conceptual/pre-implementation enough for Programmers Exchange.
What Programming/er related sites / blogs / newsletters / forums do you regularly follow?
For example...
...
1
vote
1answer
49 views
Extracting domain logic from the forms to which they are coupled?
Many applications do nothing to separate the interface from domain logic. I’ve been programming for a couple decades and have worked at more than a dozen shops and none of them have taken any measure ...
0
votes
1answer
71 views
Introducing Fowler's Table Data Gateway to refactor poorly designed systems
I am developing an application, which currently has about 150,000 lines of code. The previous developer didn't really use any discipline when writing code. Application is in production but is ...
-1
votes
0answers
29 views
Benchmark different technologies
I was talking to a few friends about doing a project in Mono (an open source implementation of Microsoft's .NET). Someone said that if it were just for Windows, we should use .NET instead, for a ...
8
votes
1answer
159 views
Why is the use of constructors discouraged when creating prototypes?
Quick background: In JavaScript, the constructor function for each object type has a prototype property. The prototype refers to an object that each constructed object uses as the next step up in its ...
-3
votes
0answers
44 views
Need suggestions for web page with blueprint-based room content display for a college campus [closed]
StackOverflow! Rather than an specific error or issue, I am actually looking to draw on your collective knowledge for suggestions for a solution I need to implement for our campus IT website.
I have ...
-2
votes
0answers
38 views
Is there any third party analysis tools for SQL Server? [closed]
I don't know whether I am in the right forum. My requirement is as below:
Our application uses SQL server as the database. I need to give my client an option to analyse the tables in this database ...
1
vote
2answers
70 views
Javascript and web application data
I am pretty new to Web Application programming and so to OOP Javascript and the new Client-Server interactions.
I am encountering some trouble wondering about how much AJAX I should use or how much ...
5
votes
2answers
338 views
How do I survive in a Waterfall world? [duplicate]
I currently work in a company where the Waterfall model is deeply ingrained. We are pushing Agile principles but it's a long process. Meanwhile, I have to work in a Waterfall world with sequential ...
1
vote
6answers
195 views
Good practice -apply paradigm to a language that is not fit for it
For example, what happens if a coder tries to code in purely functional-style paradigm in OO-paradigm language(Java)? Will it work? Or the OO nature of Java will not let it happen?
Also, is applying ...
0
votes
0answers
37 views
BASE_DIR/URL with or without trailing slash?
When you have basedir/url constants or variables, do you put a trailing slash?
In theory I think ultimately one should, since /path/to/dir/ is a dir while with /path/to/dir if I'm not mistaken the ...




