I was reading this informative page on Green Thread (Wikipedia) and I wonder: what other programming systems rely on "green processes" beside Erlang?
Edit: " Green Thread != Green Process "
Green Process based
Erlang
Inferno
Green Thread based
Go
Native Process based
C, C++
Updated: Nobody answered the question directly and...
What are the differences between a "coroutine" and a "thread"?
...
I did some searching on the site for an answer to help guide me, but my efforts netted 0 results.
I need to write a system design document for a client that is bringing their entire operation in house. At the current moment they have outsourced all of their programming to offshore developers, and I fear that many of the issues with o...
I've built a RESTful service for the Data Access Layer (DAL) of my architecture:
POST http://example.com/data/User
GET|PUT|DELETE http://example.com/data/User/{UserId}
However, for the Business Logic Layer (BLL), a second non-RESTful service is used:
POST http://example.com/accountapi/register
POST http://example.com/accountapi/login...
Here's the current flow of my quiz app:
users/do_program
quiz_contents/view
quiz_questions/do_quiz
The checking if the user has to do another module after finishing the current ones are in the quiz_contents and quiz_questions controller which I think can be improved because of the duplicate code. So what would you guys suggest?
Some...
I want to create a class library for some standards. These standards are updated yearly (Not necessarily every year, may take 3-4 years also). I want to maintain older versions also. What is the best way to do it?
Currently I am thinking of following structure:
StandardName (namespace) --> Year(namespace) --> actual implementation of p...
After I've filled with data the query object, should there be an object that executes the query (filled query object as method parameter) or should the object execute the query by itself ?
...
I often catch myself doing the following (in non-critical components):
some_small_struct *ptr=(some_small_struct *) malloc(sizeof(some_small_struct));
ptr->some_member= ...;
In words, I allocate dynamically memory for a small structure and I use it directly without checking the malloc'ed pointer. I understand there is always a chance...
Hi,
I need to create a distributed application consisting of multiple clients that send files (plus info about files) to one server, also query that server.
Clients must access to that Web Server from inside the company for sending the files. But, occasionally some specific queries must run outside the company.
I think, given what I k...
Hi,
I am planning a new portal solution in ASP.NET MVC. I need to be able to have some parts of the site visible for everyone (public part) and a part where only registered users are allowed to visit. In traditional Web Forms the security was made on folder level, but how about ASP.NET MVC? Could someone please explain me how to do this ...
I have recently found myself in the position of explaining an (In-House) application I have written to two candidates my company likes to hire in order to assist in maintenance and adding minor features.
It is the first "production" application I have written, it has 45k LOCs and I spent almost two years of "solo" development on it. I a...
Hi, I am looking to write some webservices.
What defines one unit of "service". I note that as apart of one project you can have multiple .svc service files.
How do you normally segment your services? For example, a banking app:
Would you have one service (.svc) for?
Client
AddClient(Client newClient)
DeleteClient(Client client)
A...
Hi
I work on a big project in company. We collect data which we get via API methods of the CMS.
ex.
DataSet users = CMS.UserHelper.GetLoggedUser(); // returns dataset with users
Now on some pages we need many different data, not just users, also Nodes of the tree of the CMS or specific data of subtreee.
So we thought of write an ...
We are currently using the default folder structure for our MVC app, and were wondering if it is possible to instead put a Controller and its related views into the same folder.
For example, a subset of our current structure is:
Model folder
OrderViewModel.cs
Views folder
OrderView.aspx
OrderGrid.ascx
OrderHeader.ascx
...
hi
in page_load I fill a drop down with values from db.
by clicking a button I like to insert the selected value of the dropdown into my db.
but because of the page load the selected value is resetted and in my db there is always the default value.
hmmm how solve this?
thanks
...
I have a rails app that tracks membership cardholders, and needs to report on a cardholder's status. The status is defined - by business rule - as being either "in good standing," "in arrears," or "canceled," depending on whether the cardholder's most recent invoice has been paid.
Invoices are sent 30 days in advance, so a customer who...
Hi,
I have a set of struct definitions that are used by both C# managed components and unmanaged C/C++ components. Right now, the identical struct definitions exist separately in C/C++ and C# code - causing duplication and related chaos. What's the best way to maintain single definitions that can be used from both C# and C/C++?
Thanks!
...
I am getting confused between domain/application logic and User Interface logic. To illustrate what I am trying to nail down, I will describe an imaginary program below for illustration purposes:
(1)
Imagine a small application with a set of 3 cascading drop-downs. As you select one dropdown it triggers a jQuery Ajax GET which ends u...
Within my department we have around 20 or so applications which use direct JDBC to obtain similar sets of financial data from the same database. I'm looking at introducing a Service to expose this financial information and then migrate the various applications over to use the Service (rather than direct JDBC). The intent here is to have ...
Have the following entities in my domain:
Project
Task
User
Context
A user can have multiple projects, tasks and contexts. A project can have tasks and contexts and a task can have contexts.
I am a little unsure as how best to model Contexts as it will belong to multiple entities i.e. a user can add a list of contexts, these context...