5
votes
4answers
247 views
+100

Commenting regular expressions

Are there any common practises for commenting the regular expressions: inline comments referring different part of RegEx or general comment for all expression?
3
votes
3answers
604 views

Are there any standards for preparing a user manual of electronic device?

Are there any standards for preparing a user manual of electronic device? I am trying to prepare a manual for a device. However, I could not find any format. If I find, I will take this as guide for ...
-1
votes
0answers
27 views

For this situation, should I build a site or native application GUI (Mac/Windows)?

Situation Ideally I would like to just build this as a web service but some limitations are making me think it is NOT possible. Please correct me if it is. Let's call this app: FlyCheap. ...
0
votes
2answers
29 views

Relative encapsulation design

Let's say I am doing a 2D application with the following design: There is the Level object that manages the world, and there are world objects which are entities inside the Level object. A world ...
0
votes
1answer
35 views

Is there a point in using closures for non-fully functional programming languages?

Maybe I don't understand closures fully but take for example C#, why would I use closures when I can use classes? Am I missing something? Note that I read this one already but my question is specific ...
1
vote
3answers
39 views

“flexible” functions in SQL Server 2012?

I'm looking for a very exotic thing and have no idea if it exists at all in SQL Server 2012. (Please forgive me - my background is in T-SQL, but not yet the fine details of SQL 'programming'.) So, ...
5
votes
2answers
321 views

Does this implementation of the state pattern make sense?

I have the task to implement the state pattern in one of my classes. The assignment referenced a suggested implementation, and upon reviewing that implementation I was confused since I believed it to ...
0
votes
1answer
24 views

options for data analytics for time series store

I'm building an Internet of Things solution that has a number of real time feeds. I need to make a couple of design decisions with regards to the data store and reporting and looking for input. I ...
-8
votes
0answers
44 views

I want to move PHP to JAVA ,How will i do it? [on hold]

I am working on PHP Framework now.I am 23 old . I will have 2 years of experience by 2016.And Company Bond will be over ,and i will be able to leave the company. I worked on ...
4
votes
2answers
86 views

Strategy for generating unique and secure identifiers for use in a “sometimes offline” web app

I have a web based project that allows users to work both online and offline and I'm looking for a way to generate unique ids for records on the client side. I'd like an approach that works while a ...
-3
votes
0answers
22 views

Recommendation for on-site Software Design Classes [on hold]

My shop is looking to improve its software quality by having the Software Engineers attend a software design course. I'm looking for recommendations of companies that provide on-site training in ...
-5
votes
0answers
15 views

Closing MessageDialog windows with a timeout [on hold]

GTK - GTKMM In gtkmm messagedialog, How do I set a timeout handler to activate the OK button in the dialog window. I have a timer which counts down in seconds but when it reaches 0 it just hangs. The ...
78
votes
10answers
27k views

What is MVC, really? [closed]

As a serious programmer, how do you answer the question What is MVC? In my mind, MVC is sort of a nebulous topic — and because of that, if your audience is a learner, then you're free to ...
0
votes
2answers
268 views

Trying to understand annotations & static with Java EE 7 Tutorial (JAX-WS)

I'm trying to understand annotations and the use of static with Java. I´m reading Java EE 7 Tutorial about JAX-WS API and I tried to run this simple example ...
7
votes
3answers
52 views

Categorize tasks/bugs by risk of changes

The project I'm currently working on has an issue: bugs and tasks are often assigned to people who are too new or too inexperienced and their work ends up producing more bugs down the road. The ...
1
vote
2answers
27 views

Can the DDD repository modify entity in the DB without an entity object?

Say I have an aggregate root Entity with some flags which are represented by an encapsulated object EntityFlags: class Entity { /** @var EntityFlags */ private $flags; ... } I have a ...
11
votes
4answers
972 views

Functional Programming: right ideas about concurrency and state?

FP proponents have claimed that concurrency is easy because their paradigm avoids mutable state. I don't get it. Imagine we're creating a multiplayer dungeon crawl (a roguelike) using FP where we ...
0
votes
3answers
176 views

C# - Typical instantiation of new object - is there a way to avoid repetitious syntax?

When learning C# (and OO concepts more generally at the same time) something I found very distracting is exemplified by the following line: ExampleClass exampleObject = new ExampleClass(); It's the ...
-2
votes
1answer
78 views

Advantages and Disadvantages of C CGI over PHP? [on hold]

I've developed a lot of websites with PHP but sometime after learning C programming I found out that it's possible to do the same thing using C CGI. But I still don't know if it will be worth ...
-3
votes
0answers
92 views

Would it be unreasonable to try to program server software from scratch to avoid server licenses [on hold]

I've wanted to make an app that will use a dedicated server, and I recently learned that there are some expensive licenses required for the software. Do you know anything about the complexity of such ...
0
votes
2answers
215 views

Is there a better way to organize my module tests that avoids an explosion of new source files?

I've got a neat (so I thought) way of having each of my modules produce a unit-test executable if compiled with the -DTESTMODULE flag. This flag guards a main() function that can access all static ...
111
votes
9answers
27k views

How has an increase in the complexity of systems affected successive generations of programmers?

As a "new" programmer (I first wrote a line of code in 2009), I've noticed it's relatively easy to create a program that exhibits quite complex elements today with things like .NET framework for ...
0
votes
0answers
34 views

How to design socks proxy server (OOP)

I'm working on a socks server application written in C#. But I don't really know how to design this in a nice way. I got this for Socks V4 and V4A: I'm not sure if it clears things up, but I think ...
2
votes
1answer
21 views

Best and safest API for a function which fills a buffer with variable-length data

I have a function which receives a buffer and returns some data in the buffer. The data can be smaller than the buffer capacity. Which is the best and safest API for this? int fn(void *buffer, ...
0
votes
1answer
38 views

Application behavior in different screen sizes

My company is developing a .NET application that needs to work with 17 inch and 24 inch monitors using the same resolution on both. My question is whether I should expect any different behavior or ...
10
votes
3answers
780 views

Would using a hash table in garbage collection solve the stop the world problem of mark and sweep?

In mark-sweep-compact garbage collection algorithm you have to stop-the-world when relocating objects because reference graph becomes inconsistent and you have to replace values of all references ...
3
votes
1answer
181 views

How to get JMS to front end

I currently have a web application and I would like to add a messaging feature to it. In order to do that, I use JMS(actually OpenMQ, the implementation provided with Glassfish 3). The problem is that ...
6
votes
3answers
2k views

Behavior Driven Development and Unit Testing in Python

We might be interested in starting to incorporate a unit test suite to our project, which is coded in Python (and it uses Redis, PostgreSQL and some third-party libraries, if that bears into the ...
1
vote
0answers
23 views

how to process document state transition?

Imagine there is an application (ASP.NET MVC) that processes some documents. The document must be revised several times by different group of users. state/role rules: simple user can only publish ...
-4
votes
0answers
20 views

Saving an array to a binary file in C? [migrated]

Suppose I create an m by n matrix in the following manner: double (*myArr)[n] = malloc(m * sizeof(*myArr)); How would I then save that to a binary file? I've tried using fwrite, but I haven't ...
2
votes
2answers
79 views

MVC: “User” model gets big and crowded. Should methods that do CRUD operations on one-to-many relationship data be in different models?

In most MVC web projects there is a User class. Many times a user has something else in a one-to-many relationship, i.e. orders. If we have a user class that has many orders, should methods that add, ...
5
votes
7answers
845 views

Priority list of tasks stored in a database

I am trying to think of the best way to do the following: I have a list of tasks stored in the database. A task has a priority assigned to it. You can change the priority of a task to reorder the ...
-1
votes
0answers
21 views

How to use python sockets with proxies [on hold]

I am looking for a way to connect to my local Minecraft Classic Server using Python, but thru proxy. Are there any Python modules to do so? P. S. Right now I am trying SocksiPy. Hope it will work.
6
votes
4answers
515 views

Which one of these answers regarding functions is incorrect?

So while I've been doing some lengthy compiles I decided to take the C++ general test on ODesk and came across this question. If I'm not mistaken, given the wording (or lack thereof) all of these ...
25
votes
14answers
2k views

How to learn to make better estimates?

I suck at estimates. When someone asks me how long something will take, I don't even dare to make a guess since I will be completely off the mark. Usually I'm way too optimistic, and should probably ...
-2
votes
0answers
24 views

Capturing client request headers (complete) along with IP address information? [on hold]

I want to write client request to a file with two things/information headers ip address The code I'm testing on free hosting service.Code is <? $headers= apache_request_headers(); foreach ...
3
votes
1answer
68 views

Adding field to the class at runtime - design pattern

Imagine your customer want's to have a possibility to add new property (e.g. color) to product in their eshop in their CMS. Instead of having properties as fields: class Car extends Product { ...
9
votes
5answers
5k views

Moving to Python (SciPy and NumPy) for Scientific Computing [duplicate]

Just read a presentation about using Python for Scientific Computing. I am currently using MATLAB (student license FTW, which will expire when I graduate soon). So I was wondering how matured SciPy ...
0
votes
1answer
141 views

How to make C# methods work like javascript functions?

I'll keep it simple, I want to make C#'s methods work like javascript's functions. Mainly so I can convert this - function makeVariable(terp) { var me = {value: 0}; return function () { ...
0
votes
1answer
44 views

Delegate method privately called from delegate itself?

One has established design patterns so ingrained in their brain, that when sometimes somebody does something unexpected, it is a revelation. My colleague in an iOS project did call the delegate ...
0
votes
0answers
46 views

Designing a scripting/programming language - translation - Javascript to C# [on hold]

So I'm making a small scripting language. I am following a tutorial online, it explains them. Now it has gotten to a part about closures, but I do not know how to do this in C# nor how I would set ...
-1
votes
0answers
8 views

php export data to cvs [migrated]

I need a help exporting search query by clicking on export button. I am able to get data from database to the browser. However, when I click on export button, it refreshes the page, and doesnt do ...
-1
votes
0answers
38 views

Problema al volver a instalar android en mi aclipse [on hold]

lo que sucede es por alguna razón tuve que formatear mi laptop, descarge nuevamente el eclispse, le instale el plugin, descargue el sdk y descargue algunas apis, la api 4.4 me la descargo ...
-1
votes
0answers
24 views

First web development private contract [on hold]

I work at a fortune 50 company in website management, deployment, and some development as a salaried employee. I usually manage vendors to build SharePoint sites. I have personal web development ...
2
votes
1answer
59 views

equivalence in callback and non-callback javascript

I'm pretty sure that the following two snippets are equivalent but I wanted to double check: CALLBACK STYLE function foo(input, callback) { // do stuff with input callback(); } function ...
78
votes
18answers
5k views

How do you learn Regular Expressions?

I'm not asking where to learn. I've found lots of good resources online, and books etc. But how the heck do I tackle them. Where is the start of it, the end? When does the regexp processor advance on ...
-3
votes
0answers
29 views

Do I need a business license to sell android apps in Texas? [on hold]

I know that I don't need to open a company in the US in order to sell android apps, but do I need a business license to sell android apps in Texas?
-5
votes
0answers
36 views

What language is this? [on hold]

import bz2,struct,os,stat from cStringIO import StringIO sfai=file('dfdata.sfai','rb') h=struct.unpack('128L',sfai.read(0x200)) assert h[0]==0x49414653 # "SFAI" start=h[6] size=h[7] print "INDEX: ...
5
votes
1answer
204 views

Unit testing - External vs Internal dependencies

Unit tests should be isolated, automated ( ie we don't need to do any prior-configuration for all tests to run at the click of a button ) and consistent in their results. For these reasons we should ...
-1
votes
2answers
93 views

Using a program to migrate users data from a competitors saas application [on hold]

So, here's the conundrum. I have a saas app in a niche legal market. My competitor makes it very difficult for it's users to migrate their data off their servers which consist of mostly legal ...

15 30 50 per page