2
votes
2answers
173 views

What UML diagram should be used for modelling permissions/users/files in Linux?

If I am planning a structure for support testing in Linux, a structure that will contain packages, such files as shell and build scripts, app configurations, DBs, sources, tests and jars for to be ...
6
votes
2answers
226 views

Why shouldn't a method throw multiple types of checked exceptions?

We use SonarQube to analyse our Java code and it has this rule (set to critical): Public methods should throw at most one checked exception Using checked exceptions forces method callers to ...
-1
votes
0answers
15 views

I need help figuring out if computer programming is right for me

Basically I just turned 28 and decided that I really want to go to school and get a degree in Computer Science. Specifically to get into programming. But I do not have any computer experience at all. ...
0
votes
0answers
9 views

Query on Recursive composition

For the below relation between Container and Componentin java.awt class hierarchy, I see that, in addition to is-a relation, class Container has composite relation with class Component with below ...
0
votes
1answer
72 views

Long running task initiated in the web site

The plan is to develop generic solution for long running task initiated in web site by users such as: 1. upload large file and do some custom processing and then insert in the database. 2. export ...
1
vote
6answers
179 views

Why is python treated as a interpreted language when it has a compiling stage?

Why is that python is treated as only an interpreted language when there is in fact a compiling stage where the code we write gets converted into byte code(.pyc), which is later interpreted by the ...
0
votes
2answers
37 views

Unit testing the variables passed to the view from the controller

Let's say I want to test a controller that gets some value from a service and then pass some of all of those values to the view. Do you test that the view gets the result that the controller took ...
0
votes
0answers
16 views

Mobile App to Scan Barcode

I'd like to write an app to read a bardcode, IOW, to be a barcode scanner. The barcode is on a label at the back of our University books. It's how books are identified within our library management ...
4
votes
1answer
1k views

Does anyone have a good example/sample of “goto” spaghetti code? [closed]

I've read a lot about how GoTo was considered harmful and removed for other control structures that were more intuitive. Does anyone have a good example / sample of goto spaghetti code? Preferrably, ...
2
votes
2answers
551 views

Front-end structure of large scale Django project

Few days ago, I started to work in new company. Before me, all front-end and backend code was written by one man (oh my...). As you know, Django app contains two main directories for front-end: ...
115
votes
19answers
47k views

Is LISP still useful in today's world? Which version is most used?

I try to teach myself a new programming language in regular intervals of time. Recently, I've read how Lisp and its dialects are at the complete opposite end of the spectrum from languages like C/C++, ...
-2
votes
0answers
26 views

iOS Eye Tracking [on hold]

Long story short: My mom passed away from ALS when I was little, I've always wanted to develop something that might improve the lives of others (and potentially myself in the future) with ALS and ...
0
votes
1answer
85 views

Strategy for creating a websocket relay?

I own a Raspberry Pi and would like to use it as some sort of websocket relay, so that all people who visit a specific webpage would be able to communicate with each other. The key thing about this is ...
-3
votes
0answers
17 views

How would one go about writing code in C# that interfaces with STMicroelectronincs (CR95HF) NFC Reader

For a project from school I want to do something with NFC. I received an NFC reader from a teacher and said that I could borrow it. At this moment I have only experience with C#. How would one go ...
8
votes
1answer
59 views

What is the point of making a syntactic distinction between standard and user-defined types?

Although here I will refer specifically to C++ and Bjarne Stroustrup's naming conventions, in principle, I've seen that people use somewhat similar rules for other languages here and there. So, the ...
36
votes
15answers
3k views

What do I need to do to NOT steal “Hello World” code with a GPL license?

In the project, I found a file, math.c, with a big GPL header and ... //------------------------------------------------------------------------------ /// Returns the minimum value between two ...
2
votes
1answer
168 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 ...
27
votes
9answers
4k views

Should I accept empty collections in my methods that iterate over them?

I have a method where all logic is performed inside a foreach loop that iterates over the method's parameter: public IEnumerable<TransformedNode> TransformNodes(IEnumerable<Node> nodes) { ...
5
votes
4answers
887 views

Does one line of GPLed code make program a “derived work”?

I've recently run into some argument with a person that claims to be a lawyer (I have my suspicions about this not being completely true, though). As far as I know, copying even one line of code from ...
0
votes
0answers
38 views

How to avoid switches?

I use Laravel as a PHP framework, although the question is not exactly about laravel, more about structuring controller methods. I have a route to orders page. Depending on the user role I need to ...
0
votes
0answers
14 views

How to implement Power Query Feature in ASP.NET

We are planing to implement Adhoc Reporting in ASP.NET, we would like to provide feature to the user, where there are going to enter query in normal language like We have text box where user enter ...
-1
votes
0answers
13 views

User interactive kiosk application [on hold]

We developing user interactive application for large scale multi touch panel. It contains a 3D globe where user can rotate, zoom using multi touch gestures. Also on the globe there are several object ...
3
votes
2answers
218 views

Decision making and maintenance

I'm trying to find an elegant way to implement a decision making algorithm that allow easy maintenance because the conditions for the decision making might change often. I'm going to try and be more ...
1
vote
1answer
71 views

MPL: Can I safely build software that uses this license without having my hands tied legally?

I work for a very large company that would like to use RabbitMQ. RabbitMQ is licensed under the Mozilla Public License, v1.1 https://www.rabbitmq.com/mpl.html The problem scenario, as I understand ...
1
vote
2answers
143 views

It is safe to accept money for open source software that you've written?

I've written an open source library for iOS, and I've received an email from an overseas developer who wants to pay me for my work so that he doesn't have to attribute in his app. The code is ...
0
votes
1answer
59 views

Does class Availability makes programming as Object Oriented Language? [duplicate]

Does class Availability makes programming as Object Oriented Language ? Most of the people think that if there is Availability Class in a language, then that language becomes Object Oriented. Is it ...
-4
votes
0answers
11 views

Load data from database and bind to grid (inner join table) in foxpro [on hold]

How to select data from foxpro database and bind them to a grid? both case: one table and joined two table? Thankyou
1
vote
1answer
35 views

Who is responsible for stream positioning?

The samples in question are c#, but it applies to any language. If you have a function which reads content from a stream. Who should be responsible for ensuring that the stream position is correct ...
3
votes
0answers
55 views

Why there is a drop of interest in DBMSs? [on hold]

I was playing around with google trends explorer when I tried to compare three major DBMSs: MySQL, Oracle and MS SQL Server. As you can see there is a drop in the interest in these database ...
12
votes
2answers
6k views

What does it mean to say an algorithm is Sound and Complete?

I heard different interpretations of sound and complete. I understand that completeness means finding a solution if there is one. What does it mean to say an algorithm is sound. What does it mean ...
0
votes
0answers
61 views

Should I choose to become a java developer or web developer? [on hold]

I'm still in college and have developed interest towards both java development and web development. I have the desire to work as both, but I fathom that is not how the industry works. This brings me ...
1
vote
2answers
131 views

architecture of database heavy application

A program I'm currently designing is extremely database heavy, almost anything the user does will alter the database, or read from it. Now I have one interface which defines all these operations, and ...
1
vote
2answers
62 views

Exposition of Data Representation

I would like to know how the data representation is exposed in slide 7 of information hiding: Modifying an exposed data representation propagates to all code which directly accesses that ...
1
vote
1answer
70 views

NodeJs website webapp architecture

I would like some advice on how best to architect a website comprising the following: tool a landing page, open to the public, main marketing tool the main website/app, that people can access only ...
2
votes
1answer
61 views

Multiple websites and applications using one user database

I've got several applications and websites that will be built around one main application. In a perfect situation users will be able to register once and be able to log into the different applications ...
-1
votes
0answers
10 views

Multiple chat rooms with node, socketio [on hold]

I am new to programming and i wan't to create a webservice with multiple chat rooms. My question is how to model the chat rooms on server ?
6
votes
2answers
1k views

When is it appropriate to do calculations in front-end?

My team is developing a WEB based finance application and there was a bit of an argument with a colleague where to keep the calculations - purely in back-end or keep some in front-end too? Brief ...
0
votes
2answers
185 views

Hexagonal architecure - handle multiple returns from domain logic

I'm looking at using hexagonal/ports & adapters design in some code I'm working on and for the most part I'm happy but there is one part that I'm struggling with which how to handle the need for ...
-3
votes
0answers
24 views

Need help with PHP editing user details code [on hold]

This is my php code below and I need to write some code for editing the user details, I need to write code in $edit_user part but don't know how to,please help me
4
votes
1answer
235 views
+50

How to move php documentation closer to standards?

I have an large php project. I used to document it with NaturalDocs, but I didn't include the documentation generation in the build process for a long time ( years ). I recently started using ...
2
votes
3answers
135 views

What level/format of access should be given to a client to the issue tracking system?

So, I used to think that it would be a good idea to give the customer access to the issue tracking system, but now I've seen that it creates less than ideal situations, like: Customer judging ...
0
votes
6answers
186 views

Why 'String' objects are immutable with an explicit constructor in java?

It make sense to make class String objects immutable with following declarations, because they share the same storage in common pool. String str1 = "abc"; String str2 = "abc"; But, am not sure, if ...
1
vote
1answer
49 views

What are some best practices concerning separation of concerns and transactions?

I believe I know the answer to this but I'm looking for any holes or anything I may be missing. This is focused on Spring and Java but could really apply to any programming stack. Anyway, we have a ...
-1
votes
1answer
50 views

what is the meaning of the number inside the brackets in the manpage documentation of mac shell commands

I have been reading the man pages of osx documentation, for so long i have been wondering what are those numbers inside brackets pkgbuild(1) man(1) manpages(5) what does man(1) means ?
2
votes
0answers
69 views

moving around virtual keyboard

I'm creating virtual keyboard using javascript/html/css. And I can't find a good algorithm for moving from one button to another in different directions (top-bottom, left-right). Lets say I ...
0
votes
1answer
71 views

Starting Execution of Java Program

While reading about Java Programming I couldn't get why it states Java static main necessity reason is because "before you're program starts,there aren't any objects to send messages to" as said in ...
-1
votes
0answers
31 views

Freedom of pure code vs Frameworks and conventions [on hold]

The IT developer world has become huge. It space from C# syntax and framework fundamentals, to WF, WCF, WPF, Silverlight, Windows Form, JavaScript, ASP.NET WebForms and MVC, Xaml, XML, XSLT, JQuery, ...
-1
votes
0answers
20 views

What to choose for an academic project with 10 recursive predicates? [on hold]

I need to create a project with 10 recursive predicates for a Prolog course at my university. Could you help me choose a subject that would be feasible for someone who is just starting to learn ...
1
vote
2answers
252 views

When should I refactor a private class into a package-private class?

When I began implementing a class in my system (let's call it A), I realized I needed some kind of object that does something. So I needed a new class (let's call it B), but I made it a private static ...
0
votes
3answers
131 views

Should simple tasks be divided into separate functions? [duplicate]

If I have to write a simple program (25-35 lines), should I divide it even further, in functions which have a few lines and get executed max. 2 times, or to put it all im one? e.g. if I need to add ...

15 30 50 per page