instruction stringlengths 34 19.9k |
|---|
I just started a new job and I'm currently at the process of trying to introduce a DVCS (mercurial, but the actual DVCS is not really a matter of discussion at this point, it could also be git) to the company (big, multinational). So far I've gotten nothing but positive attention, even at managerial and directive level... |
Possible Duplicate:
How to get a job with no experience?
So I've worked on a desktop software coding Swing GUI for past 2 years.
I feel that even having a live website selling my java desktop software (customers buy it occassionally) is not enough experience, contrary to opinions from this site, very little of my ex... |
The question Where should I put functions that are not related to a class has sparked some debate over whether it makes sense in C++ to combine utility functions in a class or just have them exist as free functions in a namespace.
I come from a C# background where the latter option does not exist and thus naturally tre... |
I'm going to write a class library for .NET which provide an implementation of arbitrary precision arithmetic for integer, rational and maybe complex numbers. What best known approaches should I become familiar with?
I tried to start with Knuth's TAOCP Vol.2 (Seminumerical Algorithms, Chapter 4 – Arithmetic) but it's t... |
I'm doing a school project which requires us to create a computer application and then write documentation; therefore I have to write testing documentation, I already have a of test plan (Validate all input and test all features) but how do I present the testing results in my project (e.g. table etc.)?
|
Possible Duplicate:
Is it OK to put a link to Q&A sites in a program's comments?
I'm creating a powershell / C# host and want to add the following comment
// This method cannot be called multiple times on a given pipeline. The state of the
// pipeline must be NotStarted when Invoke is called. When this method is ca... |
I work with ASP.NET MVC (and other web-based MVC implementations) quite often, but this is something I've never been sure of: Should controller and view communicate?
Of course the controller should be choosing which view to use, but what I mean is should the controller be passing data to the view? In my opinion, if the... |
A client asked us to estimate effort when selecting PHP as the implementation language for his next web-based application. We spent about a week exploring PHP, prototyping, testing etc., We are quite new to this language - may have hacked around it in the past but, let's go with PHP-noobs but application development ex... |
I am an experienced Java Programmer. 1 year back I started android programming and published 3 Apps into the market. But these all are my personal projects. Now I want get into the android job market. As my android experience is not corporate experience does the companies consider this? How to add these android project... |
High performance mysql book suggests that for sharding a blog application, one may want to put comments data across 2 shards: first, on the shard of a person posting comment, and on the shard where the post is stored.
So this raises the question how to reliably duplicate this data. Which of the following data duplicat... |
Backstory
I have an Messaging Server Application that is responsible for brokering/proxying calls made from an Application Tier to numerous external services. The purpose of this application is to abstract the technicalities of invoking these services away from the main Application Tier.
This works well as the Applica... |
Unfortunately, there are not currently any books on the subject of 'Learn Android Development with Scala', which would be the ideal solution. I'm guessing that I'll need to pick up at least 3 books here, one for each topic. However, I have no idea what order to read them in, whether to read them simultaneously, what pa... |
As I understand, top-down design is by refining the abstract high level concept into smaller concrete and comprehensible parts, until the smallest building block is defined. On the other hand, bottom up defines low level parts, then gradually build up higher level blocks until the whole system is formed.
In practice, i... |
Im currently developing a ASP MVC site.
Is there any book out there for ASP MVC SEO or just SEO in general?
|
What factors do I need to consider when choosing names for identifiers such as variables? I am concerned about space issues, i.e. extra memory consumption when choosing longer names.
As an example, take these two variables:
bool noExp = true;
bool willNotExpireEver = true;
Each one will take up memory the size of bool... |
I have been programming for a year so far and I know 2 languages: C and C++. I've covered the basics, I've written functional windows programs, and I've written complicated bits of code. When I was using Turbo C for learning the C language I noticed a library called "Graphics.h". I've looked it up and I received amazin... |
Trying to design small project in right way and have a trouble in it:\
about task: need to realize multiplication of big numbers, using fft
First, i have classes
class LargeNumber{};
class Field{}; -- abstract (maybe interface would be better)
class C_C:public virtual Field{};
class Z_p:public virtual Field{};
So, Lar... |
Sometimes in projects we need to spend time on tasks such as:
exploring alternate frameworks and tools
learning the framework and tools selected for the project
setting up the servers and project infrastructure (version control, build environments, databases, etc)
If we are using User Stories, where should all this ... |
I've come across a situation where I need to shard a database (Oracle, but that doesn't particularly matter).
The gist of the problem is I have written a large-scale system in a fairly standard TDD-style, with repositories and services hidden behind interfaces. Dependency injection is used to implement particular versi... |
Which is the most permissive open-source license available?
"Permissive" would be defined as "the minimal requirements about how the software can be redistributed".
|
I'm a web developer with 10 years of experience in the Microsoft stack. I was brought to the US by my company, but my contract has ended.
I want to continue pursuing a career in the US, but it seems there's a focus on networking while still in college. Due to my foreign education, my networking occurred elsewhere. Howe... |
I solve many problems, mostly from Top Coder. I will get answers for many, but most times I end up with an inefficient solution.
In real-world implementations - does it really matter that a solution to the problem is efficient? If so how I can improve it?
|
I am trying to add a couple of tests to a legacy C project. The project basically consists of a command line tool that prints something to stdout every time an event happens. Now, since writing unit tests would be pretty hard given the fact that the modules are pretty tight coupled, I am trying to write some functional... |
I'm interested in developing GUI-based Windows applications in C++, but I'm not sure how it's done in professional or large-scale settings. It seems it would take a lot of development time to describe all the elements (e.g., dimensions and such) within code.
Presumably it's not all done visually, right? How is it norma... |
I have a background script that is responsible for getting and setting data to a localStorage database. My content scripts must communicate with the background script to send and receive data.
Right now I send a JSON object that contains the command and the data to a function. So if I'm trying to add an object to the ... |
I developed an app a few years back: while it's outdated and useless compared to what's available today, it was helpful for people when it was first released.
I recently searched for my own name on Google, and came across a website that made the claim my app was malware that couldn't be uninstalled normally, and provid... |
Concurrent programming in Python is very colorful (and confusing too). There's just too many options with each having it's pros and cons...
Thread based (threading module)
Process based ( multiprocessing module)
Co-routines (greenlet, gevent, eventlet)
Async (Twisted, Tornado)
Inter-process communication (subprocess m... |
Is there a Java IDE written in Java?
I just got my year 9 DET laptop today at school, and there are all sorts of restrictions set in place. Somewhat annoyingly, you cannot run any executable other than the ones already installed on the system (for some reason they haven't disabled the use of Command Prompt, PowerShell,... |
I frequently see Simulation and Emulation in computer science. These two terms seem synonymous. Is there any difference between Simulation and Emulation?
|
We have a product that has a few different editions. The differences are minor: different strings here and there, very little additional logic in one, very little difference in logic in the other. When the software is being developed, most changes need to be added to each edition; however, there are a few that don't an... |
I am developing an application written in ASP.NET (C#) which heavily use on Master Page and Session.
As there will be enhancement in the same web application, and will be done by my teammate.
is there any good approach that can enable we to work on the same solution, and delivery the change to UAT / PDN separately?
the... |
Java makes a clear distinction between class and interface. (I believe C# does also, but I have no experience with it). When writing C++ however there is no language enforced distinction between class and interface.
Consequently I've always viewed interface as a workaround for the lack of multiple inheritance in Java. ... |
I program a data-analysis framework for my company (20000LOCs by now). There are 2 programmers who help writing individual module for interfaces I have predefined. So far I haven't used much planning or tools. I basically think of new classes in my head and write them down in Python+Eclipse. As Python is good for proto... |
I'm looking for a license (for a C library) which basically says:
"Redistributions in binary form must be accompanied by the source code of Larger Work (My code + Your code)"
i.e., L = M + Y, with '+' here meaning, for example, static linking / dynamic linking.
And there must be no more restrictions other than this. I... |
The code should remains as open as possible, but I'm planning to sell it on Windows and Mac, and make free rmp/deb.
Does the licence even matter? It feels like I'm just selling the service of compiling and distributing the software here.
|
I'm lost in a mass of licences - GPL, LGPL, Creative Commons, BSD, Apache, etc, and looking for a beginners guide.
When using a component under a popular licence like these, what are the restrictions for using them without paying in a commercial product?
E.g.
do I have to redistribute the source?
do I have to credit t... |
My current project takes 8 seconds to build one C++ file. Is this common? Other files take 12-15 seconds but most at the moment are about 8 seconds. I use Visual Studio to tell me the time.
I have gone into the headers and removed things I didn't need and used forward declaration. It did save me about 2 seconds per fil... |
I've seen multiple configurations for persisting information to the database. Generally, three types of designs seem common in my corner of the world:
Controller manages the persistence
Model manages the persistence
Third party library manages the persistence, usually requiring some sort of annotations on the model.
... |
I'm teaching myself J2EE technologies using Glassfish as my webserver and EJB container. I'm very interested in learning REST as well, and developing an application that is adherent to the rules of REST.
My first project is to write a chat client. The user will go to a webpage, download a webpage with the javascript to... |
I have to measure execution time for a blocks of code. I had implemented simple StopWatch class like http://www.goldb.org/stopwatchjava.html. If I will invoke methods of StopWatch class directly between business logic then my source code became unreadable and unclean.
What design pattern can be useful in my situation t... |
I'm a programmer. I have always worked by myself.
I usually do only back-end, but now I have a webproject that I want to hand the "View" part to a designer to make
it beautiful.
What I'm looking for are suggestions, best practices, recommended literature to make it easy and separate (easy to merge) for both parts.
I go... |
I'm trying to build a site which user can add their websites which should be monitored and can view a detailed report and statistics of it. And also it should be able to monitor local webservices (mainly),
1) is there any popular java library to use for monitoring a website? (in sense to ping a website and load some ... |
I want to write an ASP.NET 4.0 application with IBM DB2 Express-C as its back-end. One thing that worries me, is hosting this application on a remote server. I don't know any hosting provider who provides ASP.NET DB2 hosting in the same price range as of SQL Server.
I also want to allow the customer to select the datab... |
I am researching ways to classify words in text and I'm wondering what options there are and which are best suited to this job. I'm mostly interested in keywords which are most often nouns.
So far I know I could use a Bayes classifier, blacklist, or whitelist. However, I haven't had the best of luck with each of these ... |
This is a continuation of this Code Review question.
What was taken away from that post, and other aspect oriented design is it is hard to debug. To counter that, I implemented the ability to turn tracing of the design patterns on. Turning trace on works like:
//This can be added anywhere in the code
Run::setAdapterTra... |
I work with a few different web platforms, and my actual projects are typically quite small, and live within those platforms. The project files are scattered throughout the platform tree, which makes versioning a little awkward. I've been keeping one repository per platform, which gets out of hand quite fast...
The b... |
I used to think I knew what this was, until I really started thinking about it... "maintainable"... what exactly makes code maintainable?
To me, if code must be maintainable that means we can expect to revisit the code to make some sort of change to it in the future. Code is always "changeable" no matter what state it ... |
What are the internal structural differences between distributed (e.g Git & Mercurial) and non distributed (Subversion) version control?
The question came from a discussion group where a tool was interacting with CVS and it was argued whether it would be easily ported to other systems or not.
|
Working on a problem that uses the percent change formula:
percent change = 100 * [(new value - old value) / old value]
How would I explain the difference if new value or old value = NULL, rather than 0 to someone who might not be a programmer?
My boss is wondering why there is an empty string in the TextBox rather t... |
Recently I began a new project to re-implement a core part of automation. Since it is very important, I'm TDDing it so that I can tests various basic scenarios as well as things we know the old system doesn't do.
In doing this, I find myself creating a few "sandbox" tests, which exercise "candidate" algorithms in compl... |
At school we started learning C this year, despite the fact I'm way ahead of class, and I learned Java, C++ and C while the class is at the base of C. Anyhow, I've been documenting myself, reading books, articles, and I've asked my teacher why I should learn C, and she said it was the foundation of C++. When I first st... |
I have no previous experience on creating a project for a seller which will use barcode reader. I am trying to put together a small project but I cannot figure out how the pieces should glue together.
I will create a sample with Motorola Scanner SDK to read barcodes and from that point, I have couple of questions:
How... |
While some platform in some languages already address this issue, I would like to keep this semi-language agnostic and to focus on patterns associated with this issue.
I have a data model that contains FirstName, MiddleName, and LastName (to keep things simple). First and Last names are required and may have other rul... |
To debug my programs I mainly use the following methods:
Use printf (or equivalent in other languages) to check the value of a variable after a particular statement or to check whether the program enters a conditional statement or a loop.
Use watch/breakpoints when using IDEs.
I am able to solve the problems using th... |
I'm creating a sequence diagram for a simple program I'm working on for work. The diagram I'm currently working on is very high level - it defines the interface with lots of alt paths, but does not exemplify any specific use cases. I was wondering whether would it be more appropriate to instead make several diagrams wh... |
Is there a license "wizard" question system that asks you questions about how you would like to use the software, and then either allows you to compare it against one or more license types.
Background: In asking a question that requires the open source image recognition software to have a license commercial internal di... |
I am new to web development. While studying the Play framework and JSP, I noticed that they both give an option to place script (in jsp scriptlet) inside HTML, but in both books I am reading they both say it is bad practice and don't give an explanation as to when should I use scripts, only writing not to.
My question... |
I work using Reporting Services 2008 and I'm constantly creating ad-hoc reports. We'd like to use PowerPivot on Sharepoint but we're stuck on Sharepoint 2007. Using easy reporting software like Tableau Server would be fantastic but we can't afford it SSRS Report Builder hasn't proved to be very helpful, unfortunately.
... |
How to go about getting the number of combination ( C(5,4) ) without using recursion in C? Is there any other method or inbuilt library to do this?
|
Where I work, we have a lot of developers and an awful lot of code running our proprietary applications used by staff & customers alike.
We also have a lot of smart support staff that like to understand the inner workings of our systems to better support our customers, and perhaps even submit a patch from time to time.... |
Possible Duplicate:
How to promote an open-source project?
I've done quite a lot of work in my spare time on a project that was mostly for my own learning experience and I'm quite pleased with the results. I've used github as a source control management, so the code is already public in a sense. The code in question... |
What is the difference between
public delegate void SecondChangedHandler(Object clock, TimeInfoEventArgs ti);
public event SecondChangedHandler OnSecondChanged;
and
public event EventHandler<TimeInfoEventArgs> OnSecondChanged;
When should you use which and is there any best practice?
|
I've recently watched Integration Tests are a Scam by J. B. Rainsberger and am now looking for more material on the subject. I have to say, I'm shocked by how much we're doing wrong, (i.e. integration testing when we should unit test), intrigued by the concepts described by Rainsberger but also confused about how to ap... |
I seem to recall that there is a specific term for an accessor method that returns a Boolean value but it escapes me. For example: typical methods such as:
class Example {
bool isDirty();
bool hasChildren();
bool isValid(SomeType obj);
};
I will also settle for such a term as applied to a non-member functi... |
I have an AuthenticationManager.authenticate(username,password) method that gets called in someMethod of a SomeService under test. The AuthenticationManager is injected into SomeService:
@Component
public class SomeService {
@Inject
private AuthenticationManager authenticationManager;
public void someMetho... |
The place I'm working at is trying to establish some ground rules, and the debate we're having now is local libraries vs web services for code reuse. Web services seem to be the popular pick in most companies, and that's what most of the developers here are leaning toward.
I just can't see how you can effectively use w... |
Quite a lot of applications require records in their tables to have a status, such as 'complete', 'draft', 'cancelled'. What's the best way of storing these statuses? To illustrate what i'm getting at here is a *very short) example.
I have a simple Blog application and each post has a status one of: published, draft or... |
I have a system I've been working on this week where I'm having a hard time balancing separation of concerns with easy extensibility. I'm adding new types to the system, and it feels like shotgun surgery.
The basic idea is that data is collected (polled) from a remote system and then made available to a number of diff... |
I'm just now learning TDD. It's my understanding that private methods are untestable and shouldn't be worried about because the public API will provide enough information for verifying an object's integrity.
I've understood OOP for a while. It's my understanding that private methods make objects more encapsulated, thus... |
I am writing an system for the company to put their promotion material on the site, which is like some kinds of CMS. So, I need a database that store their data, but I am considering how to store their data.... First approach is use a single table to store their data, but use a column, like 'company_code' to distinguis... |
I'm a software developer. What do I need to know about software testing (apart from TDD, unit-testing and stuff) to make my software work as it should? For example, there are cases when TDD is not applicable. Therefore, I need to do simple smoke testing of my code every time it is deployed/changed. In order to prevent ... |
I've read many comments about GUI programming, in both, C# and C++. And I noticed that Microsoft's .NET framework is powerful for GUI programming. So is it possible to use C++ and .NET framework?
I think it will be a great combination since C++ is powerful language, and .NET framework is preferred for GUI programming ... |
I am developing an application which is based on the quiz contest for competetive exams. The user can give different categories of tests, which will contain different types of questions of following types:
Single select,
Multiple select,
Match making,
Comprehension (the quetion will be a paragraph and on the basis of ... |
I've got a catalog at work and I want to juke it up a bit because I'm tired of it being extremely slow. I'd like to support the modified preorder tree traversal storage method for the category tree of the catalog but i'd have to support dated versionning.
I've thought about creating versions of trees based on dates, so... |
Myself and another developer with the go ahead from our IT director have started a general purpose library in .NET with the intention that it will provide many common purpose classes that we use in our day to day development.
During discussions and design of the library we have come up with a set of standards that we w... |
Take a User class and the idea that a User is to be profiled. I see four ways to handle this:
Write the code for the profile into the User class. I am dismissing this right away.
Create a Profile class and make it a property of the User class.
Write a User class (with the boiler-plate name, address stuff), write a Pro... |
In a test I was asked:
What elements present in the general form of a rendezvous are not present in Ada language?
I was a bit stumbled as I thought Ada fully supported rendezvous. Now it seems it doesn't. Can anyone tell me what are those elements?
|
Is it ok to suggest pre-built scripts from a place like codecanyon to a programmer who is building a startup web app? Or is it more likely to offend?
I don't expect that a whole web app could be built from bits and bobs purchased from a site but I'm unsure of whether its the right thing to ask someone to do.
Also, I am... |
I am trying to get an entry-level developer job, but have no relevant experience. I am able to code C#, SQL, HTML, and CSS and understand principles of OOP and have completed a couple of applications both in WinForms and WebForms.
I've tried applying to graduate roles, but I get blocked by recruiters who don't like my ... |
I've been reading about selective mutual exclusion (SME). The idea I got is that if a process competes for its resources against a subset of all the other process instead of competing with all the other processes then I'm facing a SME problem.
1) Can you confirm my definition is right?
Now, the dining philosophers prob... |
We are an outsourcing company. We develop firmware and software for our client. They have a hardware engineer team with whom we, firmware developers, work.
Our client has a strictly defined process to release a firmware. A change in firmware version number has a big impact in that process. When we release a firmware to... |
I have a server which is returning very big JSON message and my client application is only dependent on part of this response. Client application needs to check if "xyz" property exist in JSON message and depending on the result run a specific usecase.
For this requirement converting the whole JSON message to object so... |
I have been recently studying more on the dynamic types in C#. With some examples I understood once the code is compiled, it does not need to be recompiled again but can be executed directly.
I feel the flexibility provided by the keyword to actually be able to change data type at will is a great advantage.
Question,... |
I understand that to measure a project or code, we can use The Joel Test, but is there any simple standard test (like The Joel Test) that is able to measure and filter how good a programmer is?
My plan is to have this test as a quick filter first before going to a more detail test.
|
So I have this issue. The Operations team where I work has taken over TFS because they are using MS Build to build and deploy code to production servers. As a result developers have lost A LOT of functionality from TFS (see earlier question.)
Essentially the operations team has taken owner ship of Trunk in order to m... |
Google developed a cross-compiler from Java to JavaScript. Why did they do this? Does this mean that JavaScript is not good enought for developing advanced web apps?
|
I have been learning writing test cases for BDD (Behavior Driven Development) using specflow. If I write comprehensive tests with BDD, is it necessary to write TDD (Test Driven Development) test separately? Is it necessary to write test cases for both TDD and BDD separately, or are they effectively the same thing?
It ... |
Currently for school we are working on a research project. The central question of this project is: Which architectural patterns can be detected using static code analysis? With architectural pattern is meant the architectural patterns from the book: Patterns of Enterprise Application Architecture written by Martin Fow... |
I am currently employed with a company for 2.5 years and I have been working with the .net stack for the entire duration mainly on the MVC framework. I believe I have some cool ideas for a startup but I am not sure if I should continue in this stack or switch to some other stack like Ruby on Rails.
The reason why I am ... |
I have been reading the advice on this question about how an exception should be dealt with as close to where it is raised as possible.
My dilemma on the best practice is whether one should use a try/catch/finally to return an enum (or an int that represents a value, 0 for error, 1 for ok, 2 for warning etc, depending ... |
I couldn't write a book on Agile. I have worked in several shops that call their process Agile. One of the main points of Agile development is regular client involvement. After a sprint, the work can be demo'd to the client to obtain their feedback. Rinse and repeat.
The problem I come across is that many clients d... |
I am starting a research project and need to nail down a programming language and 3D graphics API where I will be creating an environment in the field of molecular cell biology where I will be simulating a large range of experiments in silico. This will be an ongoing project which will keep expanding and growing in siz... |
We have about 3/4 different projects, each sharing a certain level of data. Some data is not shared, but all the data access has ended up in a single namespace that is included in every project.
Utility methods and other "shared functionality" is continually added to this root namespace, and is ultimately fairly organ... |
I've been trying to revise the structural design of the C#.NET-based system I'm currently working on. The new design involves a rather light-weight object-relational mapping framework (we're trying to stay away from ADO or linq2sql). Sorry, this came rather lengthy, but I cannot describe it shorter - it's a bit comple... |
There is a server that responds to requests on a socket. The client has functions to emit requests and functions to handle responses from the server.
The problem is that the request sending function and the response handling function are two unrelated functions. Given a server response X, how can I know whether it's a ... |
I was wondering whether it is possible to give any advice as the the maximum number of lines of code at which one should consider switching from say MATLAB to a more low level language?
Is it even the case that at a certain point it makes more sense to manage a certain degree of complexity of a given program in a prope... |
My company is looking to add Bluetooth functionality to our hardware, so that we can integrate connectivity to our products with various tablet devices.
To do this, we are looking to purchase an all-in-one chip that we can integrate into our boards.
Everyone within the development team is new to Bluetooth integration a... |
I've heard about software and apps going into Generation 1.2 or 2.6, is there an actual methodology behind this? or it's more of a marketing thing?
Currently we are using Scrum as our methodology in agile software development and it's based on sprints, but I haven't been able to find any information detailing what's ac... |
I am working on a program with two views, html and ajax (which will be html transmitted via json).
The HTML view is the standard, and by default the ajax should look the same. However, the ajax view is also meant to have options configurable on the client side for which components of the page should be displayed.
I'm h... |
Can a software program licensed GPL (version 2) rely upon libraries licensed under APLv2 without running afoul of the GPL? The language here suggests to me perhaps not.
In my specific case I'm looking at a daemon that uses some APLv2-licensed external libraries.
UPDATE
(In response to answers/comments.)
For the purpo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.