-5
votes
0answers
31 views

On java with the .replace method [closed]

I am getting an error with .replace because i changed the fragments to fragmentactivity. The question is what is the equivalent of .replace for fragmentactivities or a method that can be used that ...
-5
votes
0answers
29 views

Project help and advice? [closed]

I am looking for advice and help if you kindly could. I need to find a ggod set up for my project. I am working on a project. I am at beginner level in python !! I want to learn Python and refine my ...
3
votes
1answer
117 views

Implicit Conversion Operators for Value Types in C#

I’ve come across this blog article: Implicit Conversion Operators are Bad. The article discourages the use of implicit conversion with reference types. The article describes problems caused by ...
-2
votes
0answers
55 views

What are some ways to make bugs incredibly obvious and easy to spot? [closed]

Besides using asserts and unit testing. What are some ways to make bugs incredibly easy to spot and find?
1
vote
1answer
198 views

Designing classes the right way [closed]

I am trying to design my classes in the optimal way for the following scenario. A city has metro lines covering a number of stations.There are 4 lines represented by 4 colors.The user has to enter ...
-3
votes
0answers
55 views

WPF Certification - worth it? [closed]

I am a C# developer with 9 years experience in investment banking. During that time I have worked largely on server side and some WinForms. Now that I am looking for a new job, I find that most C# ...
-3
votes
0answers
105 views

Why is recent os related software written in golang? [closed]

Emergence of operating system related libraries or software written in golang: https://github.com/coreos/etcd https://github.com/docker/docker But why is it written in golang? What kind of ...
1
vote
3answers
203 views

Decorator Pattern: can it solve issues arising from changes to underlying code?

I understand that decorators solve the problem of needing to mix and match behaviors, but it was suggested that I could use the decorator pattern to solve issues of brittleness that might arise due to ...
-1
votes
0answers
39 views

How can I convert HTML to Postscript and specify MediaType at a per page level [on hold]

I am having difficulty tracking down a library that will allow me to specify at a per page level the MediaType to use when printing. For example if I have a 5 page document, I would like to specify ...
2
votes
1answer
66 views

Is there a limitation when using the Bloch's Builder Pattern with mandatory fields?

Background I have a class TextDrawable which draws text on top of a shape. There are a number of properties that can be set while creating a TextDrawable object. Mandatory Properties: Text Shape ...
3
votes
1answer
61 views

Seeking Guidance on Thread Safe Scripting

I am trying to write a script that will take multiple paths to files on various servers, search them all simultaneously, and return a single list of results to a user. Initially, I was just using ...
0
votes
0answers
152 views

Why is there no “delta” or “gamma” testing of software releases? [closed]

Everyone is used to seeing Alpha, Beta, and Full releases (with perhaps a Release Candidate thrown-in before Full). Where do these limited terms of testing releases come from? Why don't we continue ...
4
votes
2answers
161 views

Decimal vs. Integer; Given a fixed range of values, which is preferable for accurate computation?

After getting into a "heated discussion" with someone, I figured I'd ask this question for the sake of posterity. I'm willing to be corrected if my assumption is incorrect but I'd like to hear a ...
0
votes
0answers
50 views

Code editor color scheme [migrated]

I was wondering if there are studies about the best settings for your eyes. When I am off for a small holiday of a week (minimum) and get back to work, I have irritated eyes. In my situation: I have a ...
1
vote
1answer
88 views

Best OOP pattern to use for creating a commandline SQL API for a proprietary json based company datastore

We need to create a SQL commandline tool for querying a proprietary json based datastore. I'll be using java. Any suggestions on the primary OOP design pattern I should use for building this API? ...
3
votes
2answers
119 views

How does whileTrue: works in Smalltalk?

I want to know how whileTrue: works. I searched the implementation that is in BlockClosure: whileTrue: aBlock ^ [self value] whileTrue: [aBlock value] And another implementation with no ...
0
votes
1answer
44 views

Where do you store vendor software images?

Some customization projects require vendor-provided "boxed" software to be installed as a platform. The custom development then consists of creating scripts or development of plug-ins. The required ...
-4
votes
0answers
44 views

Reading 3GB+ data written along a single line in a file with exception handling [closed]

I would like to ask that if there is a file which contains data of size in GB and that data is in a single line.I am going to read that data preferably in Java program. But the point is are there any ...
0
votes
0answers
20 views

Add new/modify existing callback to/in API

I am working on a common API for a user interface. My colleagues use this framework in all their projects, but the UI is not our main aspect here, so the knowledge of the UI framework is somewhat ...
-3
votes
1answer
72 views

Python simpliest UI solution [closed]

I make simple Python programs. For example my friend wants a program which can get all updated classifieds from one web page and put it into the excel file each week. I'm curious, whether is there a ...
2
votes
2answers
101 views

Is it wrong to make any form of business decision in a Controller?

I'm building a prototype web application using ASP.NET MVC 5. Part of the application is the display of a grid of records, each of which has a button action to 'Archive' that record. Another page ...
0
votes
1answer
85 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
22 views

CodeIgniter routing - end slash [migrated]

Is there a routing rule in codeigniter, to remove the end slash of a url ? I want my url look like this http://example.com not like this http://example.com/ For the moment my urls are accessible by ...
0
votes
1answer
57 views

Release management: Setting up a 'release centre' [on hold]

We develop a fair number of small applications for internal use at work. Some of these may go on to be released to clients. At the moment, we have a source control system, issue management and a ...
-3
votes
0answers
19 views

C code link edit error in Visual studio 2003 [migrated]

I have installed Visual Studio 2003 in my Windows 7 system and started compiling the C code by using the NMAKE functionality. I have compiled the code with out any issues, but during the linking ...
-1
votes
1answer
68 views

SQLDatabase: Read a lot of data at once and process in memory or read the data when I need it?

I'm not sure how to approach this problem. I require a big chunk of data records from the SQL server. This chunk is based on variables, so I don't know before what records I need. I need to do a large ...
0
votes
1answer
78 views

when would you wrap a service object with an interface? [duplicate]

I'm new to UT and some of the best practices and anti-patterns when writing testable code, made me think. I used to wrap any service object with interface. but I see many mocking frameworks can ...
0
votes
0answers
51 views

when would you write static method as it avoid a “seam” for testing [duplicate]

when would you write static method. I used to write it in utils classes where all the methods are static and work state-lessly on arguments only. But now I know it blocks from creating a seam in ...
-2
votes
0answers
95 views

How to convince my boss to accept using ReSharper [closed]

I'm a big fan of Re-Sharper :) I believe it help you to write a code in faster, better and nicer way. Anyway my new boos take a decision to not use any third party tools with Visual Studio IDE. When ...
-5
votes
1answer
84 views

Confused or afraid of the new challenges [closed]

Just came back from an interview and I could tell they liked me. However, I only have two years of programming experience and the person that might hire me has been coding for 15 years. I love to ...
-1
votes
0answers
41 views

eclipse - Is there any IP address, aside of PC IP address connecting to localhost in android? [migrated]

I got a problem while connecting to localhost in android, it always say, "Unfortunately, application has stopped". I don't know how to fixed it. Here's my sample of code, AllBooksActivity.java ...
0
votes
0answers
26 views

Can embedded Ruby in html effect the static html classes? [closed]

I have this simple Ruby code right here: #!/usr/local/bin/ruby -w string = "Hiya" puts string.length if string.length == 4 puts "yes" else puts "no" end now what if I replace that word ...
-5
votes
1answer
89 views

How can I start making a programming language? [duplicate]

my question is this; How do I start making a programming language? By this I mean not an interpreted language, but I want to know how do I start from the machine code and work up, like the first ...
-2
votes
0answers
29 views

Interop class instance method with optional parameters in C# [closed]

I have an instance of a COM-interop class that has a method with a signature like bool InteropClass.Method(params object[] Values) And I thought I could call it like ...
5
votes
5answers
341 views

Adding quirks from an old system to a new system because that's what people are used to - a term for this?

Is there a term for the above? When building a new system developers are sometimes instructed (that is a different issue) to "keep things as they are", regardless of how inefficient or unusable they ...
2
votes
4answers
113 views

Overwriting and returning the value of the argument used as conditional of an if statement, inside the same if statement

A simplified example: function logTheColor (color){ if(color == "red"){ color = "The color is red " } else if (color == "yellow") { color = "The color is yellow " } else { ...
0
votes
2answers
102 views

Java Multithreading and CPU cores [closed]

I have a simple question this time. If I write an java application with 4 Threads ( each thread does different work ), what will be the difference between single-core, dual core and quad core cpu ( ...
3
votes
3answers
293 views

Immutable objects [closed]

Looking at questions such as these If immutable objects are good, why do people keep creating mutable objects? What are the drawbacks of immutable types? At what point do immutable classes become a ...
0
votes
0answers
3 views

What is the reason behind this Eclipse behavior due to changing an Environment Variable? [migrated]

I have two versions of Eclipse that I use (Indigo for C++ and Helios for Java). I've used both for years without problems. Last week I needed to view Java Bytecode, so in my Environment Variables I ...
0
votes
1answer
91 views

Should I write a unit test to this?

Given the following pseudocode: List dohList = new List(); Foo foo = A.getFoo(); if ( foo != null ) { Bar bar = foo.getBar(); if ( bar != null ) { FooBar fb = bar.getFooBar(); ...
4
votes
2answers
253 views

Is it better to create thread safe subclasses or make the main class thread safe?

Say we have a class that is frequently used in a single-thread context: public class Foo { public List<Bar> Data; public virtual void ChangeData() { for(var i =0; i < ...
-4
votes
0answers
31 views

how to write an email sender in vb.net [closed]

I'm writing this VB program that sends email. I'm getting this message in the output window. The email doesn't get sent. (A first chance exception of type 'System.Net.Mail.SmtpException' occurred in ...
-1
votes
0answers
45 views

Benefits of using Unity vs. Native code for a mobile app [closed]

I have heard wide and varied opinions on constructing mobile apps in Unity vs. the native platform (iOS, Android, Windows). I have heard a few people who believe Unity is always the way to go (even ...
2
votes
0answers
68 views

How to efficiently implement this background processing chain?

I am working on an audio software that uses The EchoNest web service to identify and retrieve metadata about audio songs and I would like to have some advice on implementing a background processing ...
-2
votes
0answers
37 views

How to transfer data back and forth between a client and a server on a network [closed]

I have the mandate of transferring data (~3-10mb) back and forth between a client and a server. I ideally need this to work in Windows and Linux. (I would like to stick to c# but can easily ...
-1
votes
2answers
110 views

Does GCC optimize code to remove useless variable read operations? [closed]

I'm using GCC on ununtu 14.04. My program is written in c++ and in a case i need to check the amount of time the program needs to read a large integer array. what is the best way to do this without ...
-4
votes
0answers
51 views

Efficient Code Design For Pattern Search - Part 2 [closed]

As stated previously, I wish to build code for detecting patterns in streaming data. I wish to have clean code that is easily extensible, and easily maintainable. I have refactored my previous code ...
-1
votes
0answers
33 views

Should I use separate Mercurial repositories for artifacts? [duplicate]

We are developing a mobile app and want to set up an SCM. We have chosen Mercurial for that. However we are unsure how to "define" the repository. There are mainly three "artifacts" to be developed: ...
-2
votes
0answers
19 views

Is it possible to read a final destination longitude/latitude from google maps navigation, from my own app? [closed]

If a user is currently navigating somewhere with Google Maps, I was wondering if it is possible to read the final destination longitude/latitude from Google Maps Navigation from my own app. Obviously ...
0
votes
1answer
135 views

Ensure that a method of a class is called after every method call of the same class, how? [duplicate]

I have twenty small methods (m1, m2, m3, etc..) in a class quite different between each other, and after every method i would like to do some common actions, like increasing some counters and in the ...

15 30 50 per page