1
vote
1answer
35 views

What exactly are Link Relation Values?

From REST in Practice: Hypermedia and Systems Architecture: For computer-to-computer interactions, we advertise protocol information by embedding links in representations, much as we do with ...
0
votes
1answer
36 views

Link relation values and REL attribute - edited

In REST, do we always use link relation values to convey semantics/role of a linked resource? I assume link relation value is always specified using rel attribute? Should rel attribute only be ...
1
vote
3answers
151 views

Is there a need to comment obvious parameters? [duplicate]

Most of the time, when I comment a method, I'll follow this structure. /** * Short description of what the method does * * @param {Type} name. Description of the variable. * * @return {Type}. ...
1
vote
1answer
50 views

Web-services REST security clarification

I'm newbie of web services programming and I have some problem to understand how to work authentication/security for REST WS pattern. I had read about OAuth but I haven't understand how it work in ...
1
vote
1answer
46 views

URLs with variable query strings and cache

I am developing a media server, the basic functionality is to serve an image, which is done the following way /media/:id where :id is the id of the image. You may want to ask for a specific size, ...
11
votes
6answers
6k views

Is there any reason to use varchar over text columns in a database?

Is varchar just a remnant from before text came around, or are there use cases where you would want to use a varchar? (Or char for that matter..) (I use Postgres and MySQL (MyISAM) daily, so those ...
3
votes
1answer
287 views

What is the point of link rel=“self” in a REST API?

I often see the following in HTML documents <link rel="self" href="http://example.com/something"> or like this in JSON link: { rel="self", href="http://example.com/something" } ...
0
votes
1answer
32 views

Does phpDocumentor tags order matter?

When we document our class, method and/or function with phpDocumentor, is there any specific order I should follow according to the standards? I know it doesn't matter for output the document. Since ...
1
vote
3answers
193 views

Designs for outputting to a spreadsheet

I'm working on a project where we are tasked to gather and output various data to a spreadsheet. We are having tons of problems with the file that holds the code to write the spreadsheet. The cell ...
19
votes
4answers
2k views

What is the best way to handle product versioning and branching of long term projects?

In a general sense, for long term projects that may have multiple releases during the products life cycle and require support of previous products, what is the best way to handle product versions and ...
-3
votes
0answers
26 views

how to analyze java application performance optimization in practical way [on hold]

Is there any specific tools to know our java application performance ?It means that to observer our source code directly in which module and where the performance might degrading...
1
vote
2answers
109 views

Why do IoC containers provide public Resolve method(s)?

In my opinion it just inverses the inversion and could make new users (including myself) make incorrect assumptions about using IoC containers. It can be used for the Service Locator (anti-)pattern ...
-4
votes
0answers
30 views

Dictionary - Find the key by entering the value [migrated]

i have a little code but i don't know how to find the key in a dictionary by using the value. Here i have my code and what i want to do: NAMES = ['Alice', 'Bob', 'Cathy', 'Dan', 'Ed', 'Frank', ...
1
vote
1answer
143 views

Java Desktop Application Requirement - Is sockets the preferred choice ?

I'm currently working on a requirement for a desktop application - using Java If for some reason the GUI crashes, it shouldn't affect the background process. Once the GUI is restarted - the ...
-2
votes
1answer
53 views

Is there a simple way to “scanf” multiline string? (or “parse-file-by-template”)"

I have a bunch of VERY similar files. Actually it is a "config" for switches. Currently I am generating it from some kind of template, like so: ! username {username} password 'password' ! snmp-server ...
1
vote
2answers
86 views

Given a number X, how do I find from an array of numbers, a unique combination that adds up to X and has the lowest sum of squares?

Given the number 15 and the array [1, 2, 3, 4, 5, 6] Possible combinations (sum=15) would be: [1, 2, 3, 4, 5] [2, 3, 4, 6] [1, 3, 5, 6] [4, 5, 6] Their respective sum of squares would be: 55, 65, 71 ...
-3
votes
0answers
47 views

Want to add Another loop in while Condition [on hold]

I am having difficulty in writing code public void Func(string[] Abc) { string value=GetValue(); While(any string in Abc[] contains value) { value=GetValue(); } } the ...
1
vote
1answer
82 views

Use Generic of Specific Function names for similar objects

Is there a school of thought on putting focus on using generic names for functions, opposed to naming functions based on the things they do? Example Say we have a Bill / Price Sheet object, that has ...
0
votes
1answer
65 views

How to responsibly handle license mistakes?

Say I push to a public repository an original file that I cover under a specific license. I later (or even immediately) find out that this license is incompatible with other licenses in the project. ...
-2
votes
0answers
24 views

Steps for Oracle Certification [on hold]

This is not a error question.I need some advice from yours in career path. Currently i am working as an Android Developer last 9 months.And now planing to move ahead in pure Java Development. I ...
2
votes
2answers
496 views

What is the difference between if('' == $variable) and if($variable == '') [duplicate]

While using an 'if' statement to check whether a variable is an empty string or not we can write it in two ways i.e. if('' == $variable) and if($variable == ''). I want to know what is the impact of ...
43
votes
11answers
9k views

Why is it good to split a program into multiple classes? [on hold]

I'm still a student in high school (entering 10th grade), and I have yet to take an actual computer course in school. Everything I've done so far is through books. Those books have taught me concepts ...
0
votes
0answers
24 views

Semaphore : one for each shared resource?

Normally semaphores are implemented as integer variables. The value of a semaphore represents initially the number of processes that are allowed to access the shared resource at the same time, which ...
34
votes
4answers
6k views

Is there a chart for helping me decide between open-source licenses? [on hold]

The Open Source Initiative lists 9 different licenses in their list of "License that are popular and widely used or with strong communities". I want to license my project as open-source. ...
-1
votes
2answers
145 views

Do I retain personal usage rights on my code if I use the framework to quick-start a project at a company? [on hold]

I have spent a year making a .NET MVC website (in my personal time). I have started a contract for a company 2 weeks ago and thought I'd be kind and used the framework/skeleton from my personal ...
-4
votes
0answers
37 views

Voice stream from one android devices to multiple devices? [on hold]

I am trying to build an android application that will capture an audio stream and transmit that audio stream to other devices. Much like in the picture. Here all the devices are connected to the ...
3
votes
1answer
65 views

Agile Story Pointing - Shared Resources

I'm running a team that takes care of 3 products that are distinct in language/product type so that 2 out of 6 developers I manage are only ever locked to coding on 2 of the products (thick client ...
0
votes
0answers
90 views

Do thin fluent builder method chains have any need to be “extensible”?

In an environment where refactoring is difficult extensibility can be a life saver. However, this is no excuse to over engineer code. Given that a thin fluent builder method chain is backed by well ...
0
votes
4answers
114 views

Security in an iOS game?

I'm part of a team building an iOS game which has multiplayer elements. A concern right now is how to make the game more secure, from user manipulation. I know there's a lot of multiplayer games out ...
0
votes
0answers
55 views

Handle null values within SQL IN clause [migrated]

I have following sql query in my hbm file. The SCHEMA, A and B are schema and two tables. select * from SCHEMA.A os inner join SCHEMA.B o ...
0
votes
0answers
107 views

how to use Sql query to search text in CSV file and avoid iteration

I have one A File and many input files ,All files have CSV format . I want to match text of one column of all input files with one of the column of A file . I have stored all column value of File A in ...
14
votes
16answers
1k views

Do else blocks increase code complexity? [closed]

Here is a very simplified example. This isn't necessarily a language-specific question, and I ask that you ignore the many other ways the function can be written, and changes that can be made to it.. ...
0
votes
0answers
4 views

error LNK2019: unresolved external symbol? [migrated]

Firstly, I am beginner in c++ and Visual C++ (but not OOP). I am now trying to import Excel data to my data structure. What I have done is creating the structure(as class) in dataStructures.cpp along ...
0
votes
0answers
4 views

Merge 2 images with specific top, left, width, height in GM Imagemagick Nodejs [migrated]

I have two single images, background.png and tree.png. I'd like to place the tree.png on top of my background.png at (150, 150 ) while resizing the tree.png to specific 100x300px. Here is what I've ...
1
vote
1answer
90 views

How to enable non technical users to use GitHub

We're currently storing two Dynamic CRM solutions in Github and have triggers to automatically deploy these solutions once a change has been pushed to the master branch. This works really well in ...
-1
votes
0answers
58 views

Starting a project, how to evaluate using existing knowledge vs learning? [on hold]

I'm starting a new website (personal project), which I hope to complete. I've searched stackoverflow, various blogs, and while I've found some similar questions, I haven't found this exact question ...
0
votes
0answers
21 views

Email service or simply abstract email out and call from?

Got a fairly large web application in asp.net using C#. Also have a mobile setup using a common api that we wrote to basically share data across both of our apps using web methods and common classes. ...
1
vote
1answer
50 views

Should I be writing feature or request specs?

I've been writing model specs for a while now and I'm gradually moving towards integration testing. Right now, I'm looking at the best way to test the output of my ActiveAdmin dashboard but I'm unsure ...
-2
votes
0answers
13 views

Looking for feature suggestion tracking and voting website or app [on hold]

I'm not sure if this belongs in this stack exchange, but it seemed the best place. I'm currently writing an extension that does a number of things and is used by a decent amount of people. I am ...
-2
votes
1answer
80 views

JAX-RS and application wide business logic/resources. My brick wall has be found

I think I'm definitely hitting a brick-wall in understanding how to implement this. I would very much appreciate any assistance in this. All my JAX-RS links, Oracle, IBM and Stack overflow links ...
-4
votes
0answers
17 views

Keyboard API with Visual Basic [on hold]

Im trying to make a simple program where while Z or X is pressed, W should be in the "up" position (not being pressed) and when none of them are pressed Q is in the "down" state. The problem is I need ...
-1
votes
1answer
35 views

API design: Giving the signin endpoint a noun name [on hold]

Nouns are good and verbs are bad. HTTP codes + the endpoint /user/123 can signify user create, read, update and delete operations. But what should the signin and signout endpoint be called? How can ...
6
votes
4answers
401 views

Undefined behavior, in principle

Whether in C or C++, I think that this illegal program, whose behavior according to the C or C++ standard is undefined, is interesting: #include <stdio.h> int foo() { int a; const int ...
1
vote
0answers
89 views

How do I convince management to do a reference implementation for a new format? [on hold]

I am trying to convince management to invest time into developing a reference implementation for a new international data exchange format. To avoid problems of interoperability that might arise due to ...
0
votes
0answers
34 views

Should there only be one controller per page within a JavaScript-based MVC architecture?

Let's say that I create a page in my marketplace web application where buyers can see a catalog of all products offered by some or all sellers or sellers can see just their own products in a preview ...
1
vote
4answers
65 views

How to measure (and improve) quality of bug-fixes? [on hold]

I have the suspicion that many bug-fixes carried out by our developers sooner or later cause another bug, simply because the product is too complex. I'd like to improve the quality of bug-fixes, ...
0
votes
1answer
38 views

What are the standards for having nested resources in REST API

I am designing a REST API and figured I'll just look at how others are naming their resources and choosing the routes. I look at Twitter's API and see that they have nested resources. For example: ...
24
votes
8answers
755 views

Is it okay to use exceptions as tools to “catch” errors early?

I use exceptions to catch problems early. For example: public int getAverageAge(Person p1, Person p2){ if(p1 == null || p2 == null) throw new IllegalArgumentException("One or more of ...
-1
votes
0answers
33 views

Most common use cases for task runners [on hold]

Often I see company job descriptions list task runners as a preferred skillset. Some of the companies that list this are sometimes seen using a framework like Rails which has its own asset pipeline, ...
-3
votes
2answers
121 views

Protecting application against piracy [on hold]

Can I somehow protect a source available (you can see the source, but you don't have rights to use it) application against piracy? Is it even theoretically possible? Not all of the application has to ...

15 30 50 per page