1
vote
1answer
96 views

Could there be a use case for C# style auto-properties in Python

I've been doing a lot of work in C# recently (my primary language is Python) and I love that I can do something like public string MyProperty{ get; set; } Going back to Python I miss that sort of ...
2
votes
1answer
47 views

Xamarin/Mono LGPL Compliance

The LGPL seems to stipulate that I have to distribute my app in a way that the LGPLed code can be replaced. Xamarin keeps saying that to distribute a mac app in the store, I need to use Xamarin.Mac ...
0
votes
0answers
14 views

Field level permission checks for REST API - is this validation?

Let's say that we have some sort of "schema" for a rest resource, something like (pseudocode): ExampleResource: field1 = field(validate=is_string()) field2 = field(validate=is_int()) ...
79
votes
14answers
11k views

How to stop thinking in terms of code? [on hold]

I am a C++ developer at a fairly large organization which has a huge codebase. During the last 6 months since I joined, my mentor has always told me this every time we met for design reviews or ...
3
votes
2answers
199 views

Is it worth it to use a message-queue framework in this case?

We have these things called "executions" that are run at certain times. They have a delay property that basically says "execute me after delay microseconds`. Currently we are using Cassandra as a ...
1
vote
0answers
53 views

Search algorithm on sequential data model

For sequential data models like LinkedList, search algorithms like linear-search and binary-search are well known. Are their any other search algorithms apart from these two, that work on sequential ...
0
votes
1answer
53 views

In *nix, is there a practice for storing static libraries?

Lets say you are building an application that staticly links against libraries that you provide it. Where should you store these static libraries? Should you make a directory in the parent directory ...
-1
votes
0answers
33 views

How to organize a mid-size program with core functions and user-interface? [on hold]

many of my programs have a common style: I need to do e.g. some math calculations, like some statistics (so working with real numbers, array, matrices). Plus I need to create a graphical ...
2
votes
0answers
43 views

What are the essential differences between Tanenbaum's Modern Operating Systems book and Operating System Concepts (the “dinosaur book”)? [on hold]

Both are recommended a lot and I am wondering, if I am going to invest time into reading one, what differentiates their approaches.
2
votes
3answers
389 views

How to manage focus for a small set of simple widgets

I'm developing a set of simple widgets for a small (128x128) display. For example I'd like to have a main screen with an overlay menu which I can use to toggle visibilty of main screen elements. Each ...
0
votes
0answers
33 views

Is there a good pattern for building nested form objects with validations?

I'm using the form object pattern to handle data normalization and validation in my app. It's working well for simple cases, but some of my form objects are composites (or roll-ups) of multiple other ...
-3
votes
0answers
24 views

How can I transfer my own ipa--hello world— from itunes on Mac to iphone? [on hold]

I'm programming an IOS ipa --Hello World in xcode 6 swift without Apple Developer account. I've saved the app in itunes on my mac, and I want to transfer the app to my iphone6. But after I connect two ...
4
votes
1answer
106 views

Why does Java define BigInteger / BigDecimal values of 10?

Question perhaps slightly left of field - but I'm curious as to the logic behind why Java's BigInteger/BigDecimal classes feel the need to define a constant of TEN? Example taken from ...
0
votes
0answers
17 views

How would you integrate an ASP.NET MVC forum with an ASP.NET MVC mind-map? Use a CMS? [on hold]

I want to integrate a mind-map with a forum. I know some C# so I was thinking of possibly integrating MVC.Forum with Mindmeister since they are both ASP.NET MVC. I would like the end website to ...
13
votes
10answers
1k views

Does low latency code sometimes have to be “ugly”?

(This is mainly aimed at those who have specific knowledge of low latency systems, to avoid people just answering with unsubstantiated opinions). Do you feel there is a trade-off between writing ...
0
votes
1answer
63 views

How should I re-license the scaffold code for my new application? (it is licensed under MIT)

If you notice the following scaffold starter kit source code is licensed under MIT throughout the code base. Even the configuration file contain a header of MIT licensed by the creator. Assuming, I ...
0
votes
4answers
131 views

Handling DomainExceptions using REST endpoint

Suppose I'm doing some DDD. Now, I have a microservice reflecting a bounded context/a part of a bounded context. Now, suppose there is a REST endpoint: '/somedomainmodel/someaction' My API user is ...
3
votes
2answers
52 views

Handling exceptions in a loop without breaking the loop (try to process all members)

Scenario: I have a loop that iterates over an Array of COM objects and does some work using them. My fear, working with COM objects, is that some exception will creep up (possibly on another ...
9
votes
2answers
673 views

Is it ok to avoid testing base classes?

I have a base class with a fair amount of "meta programming" to give it the flexibility/abstraction it needs to be rather generic. I do have a lot of subclasses using the common methods in the base ...
1
vote
3answers
1k views

Using the optional 'self' reference in instance methods in Swift as a matter of style

Swift allows optional prefixing of method calls and property references to the current object instance via self. Removing these prefixes can declutter code but, depending on the length of the method ...
0
votes
1answer
57 views

The use of '#'-sign in haskell program text

What do those #-signs mean? For example, data Word = W# Word# deriving (Eq, Ord) I tried to google it but I found nothing.
0
votes
0answers
63 views

inserting into priority queue. MIT c programming opencourseware [migrated]

Iam currently trying an exercise from the "practical programming in C" from MIT opencourseware. the exercise is on huffman coding. it is lab2 part 2 where Iam having an Issue. Primarily the ...
0
votes
0answers
15 views

Adding browser automation test into NUnit continuous integration [on hold]

My question is about browser automation tools. I would like to be able to create an automation for a bug, then take the generated script for this automation (maybe if i need to change some items ...
2
votes
5answers
264 views

Securing ajax calls to rest api

I need for my app to consume a rest api service and since I will call it from javascript/jquery i need to expose it to the end user. In this case I would also need to expose credentials to the end ...
11
votes
8answers
1k views

Which statically typed languages support intersection types for function return values?

Initial note: This question got closed after several edits because I lacked the proper terminology to state accurately what I was looking for. Sam Tobin-Hochstadt then posted a comment which ...
1
vote
0answers
30 views

Recognizing a polygon from a drawn shape [on hold]

As the input, program would get a set of point (x,y), along with the time a certain point was drawn. (suppose on a tablet). Lets restrict ourselves to simple polygons. A human drawn picture of a ...
32
votes
9answers
5k views

How to work with programmer with different preference of indentation width? [on hold]

I personally prefer 4 spaces for each indentation level, but there are colleagues that prefer 2 and even 5 spaces. We can of course use the same spaces level, but is there a way we can uses different ...
1
vote
1answer
42 views

Combining simple and complex APIs in a web application?

We use C# MVC and Angularjs as the primary tools to develop our web applications. We've recently been discussing best practices, with an eye towards revising our development approaches into something ...
6
votes
1answer
74 views

Optional features: default method or separated interface

Dedicated interfaces seems to be a good way to expose the optional features in a domain-specific type hierarchy. However, they impede the use of decorator and composite patterns, which is also common ...
2
votes
1answer
36 views

Efficient algorithm for hierarchical traversing? JSON hydration, for example

I'm writing a small library that helps you hydrate JSON data into objects. Given this JSON example: { "date": "1970-01-01 00:00:00", "foobar": "baz", "user": { "name": "foobar", ...
0
votes
0answers
10 views

How to deal a card using F# [migrated]

I've been working on modeling a popular card game (Love Letter) using F# to learn more about functional programming. module Game = open Cards open Players type Deck = Card list let dealACard ...
-1
votes
0answers
28 views

Command for sharing same folder with multiple names [migrated]

I’m currently working on an improvement of our deployment process and I’d really like to automate one of the new steps. Through Windows UI I can share the same folder on the network under multiple ...
0
votes
1answer
84 views

How to define dependent function in node js?

I have a nodejs project in which a sample.js include two function function A depends on function B's callback . // smaple.js Both function are included in the same file function B ( ...
1
vote
0answers
22 views

How to keep track of all the goals of a large project? [migrated]

I have a very large library project in-progress involving French linguistics - (it will be) multi-faceted to work with the many aspects of language, including algorithmic inflections/conjugations, ...
0
votes
0answers
29 views

Emulating `tail` to stream log data via asp.net mvc

In similar fashion to this bit of node.js, I'm interested in streaming the ongoing output of a text log file via ASP.NET MVC. I'm having trouble even thinking how I would implement this using the ...
0
votes
0answers
40 views

Vertical Single Page App libs/patterns?

Lately I've noticed a trend amongst some website homepages to present information in a vertical fashion, forcing the user to scroll down to continue reading the content. As you scroll down, a state ...
0
votes
0answers
40 views

Accepted Patterns For Base Class with both Static And User-Defined Data Sources

I have a requirement to build a 'base' profile library (in C# - NET 4.5.2) for various different internal (technical) consumers. This profile consists of metadata fields that would be shared by a ...
0
votes
0answers
30 views

Is using synchronization in service layer a bad idea?

I need to implement a mailbox monitor system as a web service. I have follow classes: MailboxMonitor: Contains information such as username, password, pulling interval etc. MailboxMonitorRepository: ...
1
vote
2answers
36 views

Which style to use for features that are not directly driven by humans when using BDD Gherkin language?

Should they be written same way as human workflows, first person "I have entered..." style language etc.? Is the user effectively a gender-less "AI"?
1
vote
2answers
106 views

Could changing the return type from void to string introduce breaking changes?

This SDK have an interface like this: public interface Contract { void update(..); void action(..); void delete(..); } Now, we need to change it to something like this: public ...
-4
votes
0answers
29 views

Creating a web app that creates websites [on hold]

I am creating a web app like squarespace using sf2. I am using AWS as my server. Just like in squarespace, the user will choose a template edit them and if they are happy then they will start the ...
-1
votes
0answers
30 views

Windows 8.1 on Surface Pro 3 appearing as VM to licensing software [on hold]

I have at least two users running Win 8.1 Pro 64-bit on the Surface Pro 3 receive licensing errors because the LM-X license manager thinks they are running on a virtual machine. We do not have this ...
6
votes
3answers
191 views

Is there a Haskell idiom for trying several functions and stop as soon as one succeeds?

In Haskell, I can use the type a -> Maybe b to model a function that either returns a value of type b, or returns nothing (it fails). If I have types a1, ..., a(n+1) and functions f1, ..., fn, ...
-4
votes
1answer
82 views

Questions about a java developer job > semiconductor industry [on hold]

I am an experienced java ee developer and I got this job offer: A java developer for a company that produces software solutions for the semiconductor industry. I've got two questions: 1- ".. ...
0
votes
1answer
33 views

Should I try to read user input for logger data?

Our logger data has gotten a bit out of hand, so I am trying to find ways to trim out unnecessary log information. What I've found is that the programmer who implemented the logs (no longer working ...
2
votes
1answer
904 views

Separation of retrieving data and business objects between DAL and BLL Layers

I did some research before posting this question. Among other questions or post, one of those is provided below. I could not get a clear mind how to determine.. Business Objects within a Data Access ...
-6
votes
0answers
45 views

I need a program of factorial and then this [on hold]

Make a program that outputs a factorial of any number and then compute its running time and prove that that running time is an element of theta n^2
-1
votes
0answers
83 views

How to compare numbers in a file? [on hold]

What I would have to do to search a file (file.txt for example), and compare its values with the ones I'm asking the user to input. There will be numbers in the file already(production orders) and i ...
1
vote
1answer
5k views

Java desktop application using MVC + Hibernate

I'm developing a Java desktop application. I'm planning to use MVC architecture described at Oracle site: Java SE Application Design With MVC. I need to store data in database so I decide to use ...
-1
votes
0answers
15 views

Kodi addon with LXML is not parsing properly [on hold]

I'm writing a scraper for Kodi, that scrapes a video page, and I'm doing it with LXML, but sometimes(sometimes it works ok), when I call tree.xpath(xpath) it says 'NoneType' object is not callable. ...

15 30 50 per page