2
votes
1answer
225 views

Is it normal for a Software engineer to hate a technology? [on hold]

I am working in a web framework which shall remain nameless and I really hate it for the following reasons. -> It is very badly organized. -> It is built on a language that I really hate for my own ...
0
votes
0answers
36 views

Scale parts of image to fill bezier path with no wastage

I want to be able to take an image and stretch/contract each pixel row (or 5 rows for performance) to fit within a curved shape. I've been searching for this for the last few days and have turned up ...
-2
votes
0answers
69 views

Dealing with interview tests [on hold]

I have few years programming and right now I'm looking for new opportunities, today I made a programming test with 5 problems and I did really bad, I just did 2 and the others I just made them ...
0
votes
0answers
40 views

How to get values to output as a currency? [on hold]

I am working on calculating change, and investment rates with java. My code gives me the correct values, but does not display them how I'd like. For the first part, when I calculate the dollar amount ...
-2
votes
1answer
47 views

Is it bad to often switch to different learning path? [on hold]

I started developing applications using VB.NET and switched to Java because it is the language that our college teaches. I then switched to Android development after learning the data structures and ...
0
votes
1answer
70 views

How to split a Service class in two but still use them like one?

I've got a class: AuthenticationService findLoggedInUser() Checks session if User is logged in. If not, check client persistent user login cookie and log in. loginUser($email, $pw, $remember = ...
-1
votes
0answers
39 views

How to deal with timeouts even after setting a high timeout? [on hold]

I have started running into a timeout issue when scraping, I have the timeout on the request as high as 120000. This was my first time writing a scraper, so I am unsure of how to make the requests ...
0
votes
0answers
40 views

As a freelancer how do you quote/charge for a project [estimation] [migrated]

I am currently estimating effort, and therefore, the cost of a project for somebody who has asked "how much is it going to cost for X". After a discussion about functionality/scope I am providing a ...
0
votes
1answer
41 views

Runtime analysis of functions that call other functions

If you have a function being called in another function, do you figure out the runtime for the being called and then "add" that to function you wish to analyze the runtime for? Function to be ...
-1
votes
0answers
41 views

How to jump from intermediate projects to large one [on hold]

I've been developing projects for five years. Since then I gained some experience on project planning, oop programming principles and a lot. I also integrated other SDKs to my projects, but mostly in ...
22
votes
8answers
673 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 ...
-2
votes
0answers
31 views

How to change the alignement of contains in a JScrollPane [migrated]

I am working on a GUI to manage bank accounts. I use a JPanel in a JFrame to list all the account register as buttons, and a JScrollPane to extend the view. When I run the program, the scroll bar ...
35
votes
2answers
3k views

Why do some languages round to the nearest EVEN integer?

Programming languages like Scheme (R5RS) and Python (see this Question) round towards the nearest even integer when value is exactly between the surrounding integers (although exact is a matter of ...
-5
votes
0answers
26 views

Naming convention to be used in web development? [on hold]

Would you suggest best/most commonly used naming conventions to be followed for HTML ids,classes and names JavaScript functions PHP.
-2
votes
0answers
41 views

Auto generate project status reports thru email text analysis and summarization

I hate writing status reports for my boss. I usually spend an hour each Friday morning scanning emails trying to remember what the heck I did for the past week. A typical report looks something like ...
0
votes
1answer
62 views

Is it possible to create an arch that allows for an app to be downloaded and installed at the same time?

In theory, if I wanted to have a developer write some sort of computer architecture/OS, could I have him/her add the capability to download + install something at the same time. I'm thinking like ...
2
votes
0answers
40 views

Feasible to keep work to a minimum for distribution purposes?

I'm faced with image manipulation requirements for a mobile app I wish to develop that I could quite easily (or 'easier', at least) implement in C# or javascript, as it's what I'm most familiar with. ...
2
votes
1answer
73 views

Should this interpretation happen in the Controller or the Model?

Imagine an application where the user is allowed to create his/her own musical scales. The user selects notes from a list, arranges them to a group and presses a button to create the scale. In an MVC ...
-1
votes
0answers
28 views

Referencing Treenode Values? [on hold]

I have been scouring the internet for an answer and most likely passed it several time but I am trying to reference the value from Selected $treenode.tag. How would I find the value of the selected ...
-4
votes
0answers
34 views

payment platform which charges commission [on hold]

I'm desperately looking for a solution for this problem. I'm developing a website in which freelancers (programmers) offer their services and the client makes a payment. I want to charge a 10% ...
0
votes
0answers
4 views

Comparing Data In Text Boxes in Visual Studio 2013 [migrated]

So I mostly use Microsoft Excel for a lot of my work and the most "Programming" I do is writing basic logical functions in excel. I am setting up a windows form in Visual Studio 2013 and I want to ...
-2
votes
1answer
50 views

Effects of using visual basic dll in C# projects [on hold]

I have C# windows application that use Microsoft.VisualBasic.dll reference for the needed of use Interaction.InputBox is that have any negative effects on the project ?
0
votes
1answer
65 views

How are the tiles in WORDAMENT organized?

I'm trying to create a word game, just like WORDAMENT, in my spare time. In order to present a new round, I need to create a board with 16 letters organized in a 4*4 grid. Currently, I'm generating ...
3
votes
2answers
98 views

What is the extent of programming language localization dialects?

Apple's scripting language AppleScript was designed with localization in mind; allowing the language to be represented in multiple dialects resembling languages from around the world. In this way, ...
1
vote
2answers
333 views

c++ coding practice class vs. “free” functions

I am currently writing my first bigger project in c++. Its basic linear algebra. I am aware that boost libraries and others exist, but for various reasons I need to write my own. Purpose of the ...
0
votes
3answers
88 views

Does it make sense to have a separate init function?

I'm created an opaque type and I have two options for its management. The first looks like this: type_t *a = type_init(); int err; err = type_do(a, "foo", "bar", FLAGBIT1|FLAGBIT2, NULL); if (!err) ...
-2
votes
0answers
36 views

Example cases for each data structure? [on hold]

I've been looking all over the Internet for a page that lists cases for when to use each abstract data type. I expect that reading through a series of both surprising and obvious uses for each type ...
1
vote
2answers
90 views

how to upgrade software [on hold]

I am a beginner in computer programming with C/C++. I have previous experience in programming for the web. There is some confusion that I am having with the software development process in desktop ...
0
votes
0answers
51 views

Properly design program database to reflect organization structure

I'm having trouble setting up my program's database the 'right' way. I was hoping you guys could give me suggestions on doing it properly. I am creating a database+client for a non-profit organization ...
1
vote
4answers
375 views

Would comments increase the chance of being fired? [on hold]

I have had this burning question for a while. If I have a job and I comment my code well, to the point that anybody can now understand my hard work, would it make me less indispensable to the company? ...
0
votes
1answer
20 views

SPA Applications: AJAX to fetch templates or build from strings

I'm working on a large angular application and I'm currently using a factory class that builds HTML templates from strings. We don't have to worry about mobile support for the application and I'm ...
0
votes
0answers
56 views

What kind of design pattern for an “investment” system? [on hold]

I'm developing a browser game with Node.js. I'm trying to make an "invest" function, letting users invest according to their balance. For example: A user came and invested 20 dollar %40 of ...
-6
votes
0answers
58 views

Is binary recursion a type of exponential recursion? [on hold]

People in this thread state that fibonacci runs in exponential time. This professor on the other hand states that fibonacci sequence is binary recursion. I don't think either of them are wrong, which ...
0
votes
0answers
13 views

How can I run external code from Squeak environment? [migrated]

As far as I know, the Squeak environment is quite isolated from the rest of the operating system. However, I'm looking for a way to execute external code, which will be written in a different ...
-3
votes
0answers
34 views

How to test API's using Jmeter [on hold]

my question is...how to test API's,in particular restful API'S using Jmeter???I am kind of new in this field....and I was told that there are these test scripts which have to be written to check the ...
-6
votes
1answer
76 views

C program for Tree Traversal without Recursion [on hold]

I want to write a C function for Tree Traversal without Recursion. The program that involves recursion is too simple, I want to do the same thing without recursion. I know the algorithm but couldn't ...
-1
votes
0answers
43 views

Choosing between two very similar jobs [closed]

Right out of college, I joined a company A a couple of weeks back. They have a good product, and I get to work on it from the ground up. I have to work with PHP and get to experiment and implement ...
0
votes
1answer
51 views

Is there any reason to override Equals for an Entity?

An entity has identity, which implies there should only be one object (e.g. a particular customer) in memory. As such, reference equality (which is what the base version of object.equals checks for) ...
0
votes
0answers
8 views

How to delete .tmp file in fileupload struts2 [migrated]

I have used file-upload (common fileuplod) in strtus-2.3.15.3 . There is one Form in my .jsp with multiple field with many diff type(textfield,textarea,hidden,file) including FILE and obvious SUBMIT. ...
0
votes
3answers
123 views

What is more efficient, a single square root or multiple divisions?

Say I make a program that calculates all possible (integral) factors of a certain number that has been input. Is it theoretically more efficient to check with all integers up to the square root of ...
-5
votes
1answer
57 views

Preventing a Javascript object function called twice [on hold]

I am trying to reuse an object but my function is getting called twice. Here is what I have: var KEYBOARD = { template: 'keyboard', getkeyboard: function(){ console.log(this.template); } } ...
-3
votes
0answers
17 views

share button in custom listview doesn't work [on hold]

I'm following share a text with button in custom listview but it doesn't work . this is code for OnClick in ListViewAdapter.java : OnClickListener clickListener = new OnClickListener() { ...
-3
votes
0answers
33 views

how to work in team and organize tasks in web development [on hold]

My problem is that i used to work as a freelancer web developer. Now i work in a company and have a small team. I'm responsible for organizing this team to work in a project. I have no idea about ...
0
votes
1answer
114 views
+50

Data model for persisting queries to database

I have been asked to build what is essentially a query builder for a reporting application. The variety of objects to query, potential modifiers, number of conditions, and so forth to be reported on ...
2
votes
1answer
94 views

How do I avoid duplicating utility functions across modules?

I've seen this question but it doesn't help me because I'm writing functional code (Standard ML) and the answers there are heavily focused towards OOP (the OP is advised to use the Facade pattern, to ...
0
votes
0answers
47 views

Floating point number to binary

Which Algorithm does java uses to convert floating point number (Ex:0.15625) into binary(0.00101). Whether java uses normalized form or denormalized format ? If i type "float ab=0.15625" in java ...
-3
votes
0answers
27 views

Why wait and notify is declared in Object class instead of Thread [duplicate]

I need practical answer of this question Why wait and notify is declared in Object class instead of Thread ? answer with example will appreciated.
1
vote
1answer
45 views

The advantage of using __attribute__((aligned( )))

I found in more than one SIMD program the instruction __attribute__((aligned(16))) . When I looked for an explanation I found The keyword attribute allows you to specify special attributes of ...
0
votes
2answers
45 views

Should `setX(Object o)` methods perform deep or shallow copies of objects?

My particular situation is related to Java, but I believe this is a more general OOP question than just Java programming. The Question: Should "mutator" methods perform deep or shallow copies? An ...
-1
votes
0answers
35 views

I have this App idea, what technologies can I use/need to learn? [closed]

It's pretty straight forward: You have an object (let's say a car, or house, or clothes, or whatever), and all you want to do is to add different kind of textures to it (Let's say one can add 5-10 ...

15 30 50 per page