instruction stringlengths 34 19.9k |
|---|
I started with ActionScript 2.0 and then went on with Java. I have learned, or at least used, a bunch of languages since then, including Python (probably my favorite).
I'm afraid that my style of object oriented programming is very unpythonic though, and more like Java OOP with Python syntax. What makes Java like and P... |
I'm preparing questions for job interviews for a senior development position. The job would include object oriented design, and the existing software uses design patterns, so I'd like to ask the candidates to explain a few design patterns they know, they've used, how they've used them, why they've used them and so on. ... |
I'm working on a website where we expect many of our users to be under 18. Our lawyer told us that anyone under 18 will need their parents to agree to the Terms of Service, since they aren't legally able to do it themselves.
So my question is, how thoroughly do we need to verify a user's age? Is it enough to just a... |
Recently at work we've been having some differences of opinion with regard to Parameterized testing. Normally we use a TDD-style (or at least try to) so I understand the benefits of that approac. However, I'm struggling to see the gain parameterized tests bring. For reference, we work on a service and it's libraries wh... |
What is better for performance to write the loop as linear e.g. for , while or
write it as recursion ?
|
I've been a freelance developer for many years and am setting up a system designed to attract clients through one of my developer websites.
If successful, these would be clients I do not know, and some jobs may be very small. When working with clients I know on larger projects, I'm accustomed to doing the work before I... |
At my work, typically the developers here all work separately, we may share projects but often only do so when another isn't working on it (for reference, we're a consulting company. So someone may work on project A one month, then three months late, I may too).
What methodologies can we use to improve the quality of t... |
At work, we use a bug tracker called Pivotal Tracker (www.pivotaltracker.com) that allows engineers to file features and bugs. If a feature or bug fix is delivered, it is QA's job to accept or reject it accordingly.
If an engineer implements a new feature that has a bug in it, should QA accept that feature and file the... |
I'll try to keep this simple.
Small C# app, dialog based, one has a DataGridView.
I've got an UpdateTable function in the form that accepts a DataSet and passes it to the DataGridView.DataSource. The DataGridView has columns defined already.
I've never used DataGridView and whatnot, so I was doing a bit of testing ... |
What open source projects would you recommend for people to study to learn how the pros write Scala?
Some of the attributes that I'm looking for - though they don't all have to be present in every exemplary project:
Idiomatic use of the language and libraries
Functional programming techniques
Concurrency (using Actors... |
Is there a way to play the role of Javascript with any other language like C#? One way came up in my head is, having silverlight installed, using C# instead of Javascript for all the client side scripting (Though C# is not a scripting language). Is it possible?
I am not talking about something like GWT(Java) or Script#... |
Ever heard of a company awarding bounty points for bugfixes? Making team members work to do the most, as some bonus money will be dependent on it? Having them split, or pay bounties to others to test, so they don't 'lose' points when it reaches a UAT environment?
I heard this from management for the first time today.... |
We are deploying and upkeeping web-sites to different customers. Normally we wait for newest changes to stabilize, then tag subversion version as release, and install than version to customer. Then we receive support requests, and sometimes are forced to make quick bugfixes between releases. I find it troublesome to up... |
I graduated 8 years ago and did a discrete mathematics course in my 2nd year, but I've been told that I'll likely be asked discrete maths questions in an upcoming interview.
Is there a simple webpage/document that I can use to refresh my memory? I understood the concepts when I took the course 10 odd years ago, but my ... |
We're going to do a complete review of a Java/JEE based application. This includes an architecture review, code review and platform hardware review.
While we're a bit aware of code review techniques, I'm wondering if there is a template or reference model for doing an architecture review for Java/JEE systems.
Currently... |
How much of your code do you unit test? Do you try to get 100% coverage of everything or do you skip some classes?
Background
We've made a lightweight ORM layer which we have written plenty of tests for. On top of that we use Code Contracts to specify what each method in every interface should accept and return.
Classe... |
I have a set of single purpose functions that I need in two separate controllers. Right now I just have duplicate code and I want to get rid of it. This code is part of the controller and doesn't belong in my service layer. Where would you put it?
|
I'm thinking of things like:
designating a developer having say 6 hours out of their normal 7.5 hour day dedicated to the project, the rest for other work/company related activity (meetings, emails, calls etc), maybe a senior dev is less.
building in 20% contingency time to estimates.
What are the best ways to produc... |
I consider myself a high level software developer. I enjoy reading a lot, and it's helped me over the course of my career. I think I am doing well.
Right now, I spend a lot of time learning new things. I don't suck when it comes to writing code right now, but I'm about to start a family, and I regularly see many senior... |
Hi
I am learning design patterns from a book . How to figure out the actual production code where it is implemented .
For example , if I am learning strategy pattern , it might be implemented in Spring framework . But how to go and search there and see it .
Do you guys have any easy ways of finding such stuff ?
|
I'm looking to start a new application and I want to use Dependency Injection. I have a lot of "Microsoft is the only way to go guys" in our shop so of course Unity is the way they wanted to go. However I am leaning more towards Autfac because of its speed and its Module feature. I found the speed results on this page.... |
In my less experienced days I added a lot of business logic in the code behind of my .aspx. Now I'm revisiting it I would like to refactor the mess and get it all sorted out.
How do I go about this? If I am to move my logic, where do I put it? Do I have a seperate class for each page?
|
I've read a blog(in Chinese only) in which the author had jeered at Java programmers who know little about C and system programming.
The author illustrated how he had found the deep reason of a Java NIO Selector exception using his knownledge of C and Windows/Linux system API. The IOException is thrown with message "Un... |
I'm looking for a good analogy or metaphor that could illustrate the problems of copy-paste programming to non-programmers. I occasionally do code/system reviews for potential clients, and one of the common problems I see are vast amounts of copy-paste code all over their code bases. It's something I routinely call out... |
I have worked with a client for two weeks who knows nothing about the complexity of programming a CMS. After two weeks, our relationship has gone from mildly discomforting to the point where I have said "forget this, I quit if you are going to act like this".
Problem is we have two week's worth of code developed (on my... |
Today I noticed that I basically never use protected methods in C++ code, because I rarely feel the need to call non-public methods of a parent. I do use protected in Java in the template method pattern, but since you can override private methods in C++, I don't need protected there, either.
So what are some real-world... |
I have a software problem that fits the functional approach to programming, but the target market will be on the Android OS. I ask because there are functional languages that compile to Java's VM, but Dalvik bytecode != Java bytecode.
Alternatively, do you know if the dx utility can intelligently convert the .class fi... |
I have a friend that works for a company. They use a software product that is aged, and written in Delphi. There are concerns at this company about the life of the software company that provides the software (which they pay a monthly license to use). It's quite specific software.
My friend has spoken to his boss and... |
Projects that increase online anonymity, such as Tor and bitcoin, allow personal freedom from government oppression but also allow crimes to go unpunished.
As a developer, should I contribute to such projects?
Is there a way to enforce that those technologies will not be used for money laundering and child pornography?... |
A 'bad code' interview is one where the interviewee is shown a snippet of 'bad code' and asked to correct it or point out things that are wrong with it. I have trouble with these interviews because it takes me some time to read the code, figure out what its doing, and point out the flaws. In a situation where there's t... |
I am developing a web application written in Clojure using the Compojure framework. My question is, should I deploy to Amazon EC2 or Google App Engine?
I've read this article on running Clojure code on GAE, but I am still a bit concerned about the limitations on GAE. I am going to be running sandboxed Clojure code, w... |
In a perfect world, we tell the client we follow an agile methodology where we allow the scope to increase/decrease as the requirements change and we bill per hour for each iteration.
In reality, estimates need to be delivered before the project starts, and there is always pressure to hit that estimate number while bei... |
My 2 friends and I are preparing our senior project idea for next year. I need some of different ideas while deciding the base environment of the project, especially from software developers/engineers who worked in huge software product developments.
We have limited human resources (just us, 3 students), limited time ... |
The Einstellung Effect refers to "a person's predisposition to solve a given problem in a specific manner even though there are "better" or more appropriate methods of solving the problem."
As a programmer with a decent amount of experience, how can one combat this tendency to always approach problem solving from "tri... |
I've recently gotten into learning about functional programming. I've been coding in Scala most of this past year and am just now starting to fully grasp the power of a functional language.
I want to build a data-driven website from scratch using functional techniques. I'm having trouble wrapping my head around how to ... |
I have an idea that I would like to develop as an app. I have no programming skills though.
-Can someone point to some resources on how I can hire a reputable company to do the job for me.
What are important factors I should consider when choosing?
Any warning signs or red flags that I should be aware of when choosing... |
I've met a student from the computer science department and I discovered that they only teach java and aspx. I asked him why they didn't teach php since it is the top one programming language on the net. He says that it was a "easy" (or hobbyist's) programming language. I'm not sure what that means.
What's your opinion... |
In the real world , why do we need to implement method level security ?
We either have a web application or a desktop application , where the user accesses the user interface (and therefore directly cannot access the method) .
So where does accessing methods directly come into picture here ?
edit : I ask this question... |
I've been thinking a bit on how dependency injection could be better integrated directly into a C# like language. I've come up with a potential solution I'd like to hear your opinion on. I haven't used many dependency injection frameworks so there might be something I'm overlooking
Anyways, the idea is to be able to d... |
Sorry, it is NOT duplicated question, just read it please,
I'm totally new to Java world, I'm a .NET developer, and I have a good exprience in ASP.NET.
Now I have a task to make a demo for JasperReport, I need QUICK start to Java and Java web application on Apache and then I will figure out how to use JasperReport.
Tha... |
Both cloud computing (specifically SaaS) and SOA promote the idea of services for transforming software to a commodity.
However, most SaaS providers focus mainly on providing the service to the end user, but the products aren't well suited for back-end integration.
Most providers provide only an API access to their ser... |
I'm trying to understand a constant 0x9e3779b9.
What kind of data is this? It's not binary, not decimal, what is this?
It's a constant used on the TEA algorithm.
It says it's derived from the golden number,
but the golden number is 1.618?
|
I am an email person, but found that at my new job, co-workers use IM a lot. I have to admit that I have been largely ignoring the IM/SMS as a way of communication by thinking it is only for teenagers...
The IM-style of communication is quite different from emailing. The sentences are shorter and there is less time f... |
Aside from the technical specifics, what should be on your checklist for when you go live with a program? Are there last minute things you can do to make a piece of software go into production smoothly? (assuming you used sound principles in development and tested the average amount) More testing? Discussion with the c... |
Title says it all. If the CSV's system delimiter was " (as opposed to a comma or pipe or other common alternatives), how would anything deal with it?
The crux of the matter is of course that by definition, CSV will surround any values containing the delimiter with quotation marks, and will convert all quotation marks t... |
I work in a small software development company. I just received a NDA and IP contract to sign, but it doesn't have an expiry date.
Does this mean that it's a lifetime agreement with the corporation?
Lacking an explicit expiry date, is there an implicit date at which the contract expires?
If/when I leave the company, d... |
The current tendency to ship even the smallest applications (like simple games, tools, etc.) as a Windows Installer (.msi) or even with .exe that can do virtually anything is very annoying. After the application is installed it is run as standard user, but it is useless if during installation it can do what it wants.
F... |
What Enterprise Service Bus would you use and why?
|
I never understood why C and C++ compilers try to recover from errors and continue parsing. Almost always, the first error generates a stream of bogus errors that will disappear as soon as the first one is fixed. After several years of experience, I simply stopped looking at any error except the first one of every file... |
I'm working on a commercial application that requires .NET 4.0 Client Profile, but I need to make a call to HttpUtility.ParseQueryString, which is not included in the Client Profile but it is in the normal one.
So I just figured out that I can use Reflector to get the whole method and all the other required methods fo... |
I wrote a small multiplatform app and I am considering publishing the osx version in apple store. I've licensed the app under a GPLv3 license.
I sort of like the GPLv3 license but I also like the easiness of apple store. I'm worried about the GPL's "freedom to distribute a copy" requirement - which seems to be incompa... |
I'm looking for a comprehensive (or as close as possible) list of all the prototype-programming style javascript work done to date. Does anyone know of such a list somewhere, or have the knowledge to compile it somewhere and then reference it here?
|
I realize that the "header comment" format varies from programmer to programmer, but what would be an example of a "good" header comment?
|
I'm in a position where we've got some brittle code that constructs SQL-like queries via text concatenation with parameters for inputs. The data source that it queries is fast and scalable but lacking tool support. Over time, addition entities and properties have been added to the data source that need changing or have... |
We had a security audit and it was brilliant. Are there companies that do web usability audit?
|
In what way(s) is LLVM (Low Level Virtual Machine) Low Level? (At the time of writing, I did not find this expansion of the abbreviation "LLVM" on its web site, but on Wikipedia.)
Is it called "Low Level" in what is it designed for (a compiler infrastructure) or because it is works on a "lower level" than other tools?
... |
As someone who has very little experience in it, I would like to know what makes you think that Joomla can fulfill all you requirements?. What makes you choose it over development from scratch (or using a framework like Yii or Kohana).
What are the most common or crucial problem that you are facing when using Joomla? S... |
When developing an iOS application (freelance) for a customer, how do you handle the iOS Developer Subscription?
On the one hand, I have no problem submitting the app using my own subscription.
On the other hand, the subscription is per year which means the customer would be dependent on me actually renewing my subscri... |
Python 3 was released in December 2008. A lot of time has passed since then but still today many developers hesitate to use Python 3. Even popular frameworks like Django are not compatible with Python 3 yet but still rely on Python 2.
Sure, Python 3 has some incompatibilities with Python 2 and some people need to rely ... |
I am learning new technologies and doing some small projects to practice these technologies alone. And I want to learn the agile methodolgy along the way but don't know if it's a good or bad idea to learn it alone and how far I can go with it.
Another thing what good resources to learn it (books/articles)?
|
I'm taking a software design class where I should choose an open source software to analyze from the Software Design point of view.
It has to be a big project: not less then 100,000 lines of code.
I would really like to choose a software that is very well designed and architected to have good insights on good software ... |
The question about default values in general - default return function values, default parameter values, default logic for when something is missing, default logic for handling exceptions, default logic for handling the edge conditions etc.
For a long time I considered default values to be a "pure evil" thing, somethin... |
In my work I have started development of a website/webapp that will be viewed primarily on smartphones and tablet.
I have now been given the task of buying the necessary hardware for testing the webapp. As I'm not really a mobile-nerd, I'm not really up to date with the latest and greatest on the mobile market. So I ne... |
Is it conceptually feasible to have on a Postgresql Cluster a transactional database and at the same time a datawarehouse that would get feeded by the transactional database ?
|
I'm using the Repository pattern in my application right now. It is a console-based batch processing tool. Essentially I need the repository to be able to randomly access the data. The trouble I am having is that my data needs to be:
read in once (from flat-file)
accessed randomly from the repository
written out on... |
Have you had problems managing information and found ways to effectively manage information? When I say "manage" I'm talking about storing, grouping, tagging, prioritizing, searching, sharing, etc. When I say information I'm talking about website links, feeds, videos, emails, documents, your thoughts, tasks, appointmen... |
In game development there is a lot of C/C++, in business applications C#. I have seen C/C++ devs express concern over how a single line of code translates to assembly. In .NET some go into IL, rarely.
In C#, "micro-optimizing" is frowned upon, rare and usually a waste of time. This does not appear to be the case i... |
In web development, you often hear the terms "element" and "control". The term "element" is often associated with HTML, and you hear the term "control" most often in Asp.NET development... but the w3c refers to controls in the Forms in HTML documents recommendation, blurring the lines a little.
What is a control and wh... |
Today I posted a question asking about which language C# or Java would be better for me to study. I had some great answers. One thing that came up was that perhaps Java is now rather behind C# with new features. I saw some web links and most pointed out what C# had and what java did not have.
So my question to you all... |
In recent years, I have only written small components for people in larger projects or small tools. I have never written a unit test and it always seems like learning how to write them and actually making one takes a lot longer than simply firing up the program and testing for real.
I am just about to start a fairly la... |
My company just bought new computers to replace old 2GB Windows XP machines. Someone on my team noticed that they came with hyperthreading disabled, and told everyone to reboot and turn it on. Is there a benefit to programming on a machine with hyperthreading disabled?
|
I see the mantra of "profiling before optimization" repeated again and again here, on SO, and elsewhere. Although I certainly use profiling tools, I'm only occasionally surprised by the results. It seems like, as often as not, the profiler is just giving the same information that you could reasonably deduce by knowing ... |
As a primarily web-based programmer, a lot of my projects involve significant amounts of text content.
In my previous job, I frequently worked with a project manager notorious for his unwillingness to proof-read, or to even use basic spell-check software. I regularly corrected the text content he provided for grammar,... |
Recently I was asked to show "a page with code" for a job interview. Being mainly a back-end programmer, and that's the position I applied for, I first said to the person I was talking to exactly that: PHP is executed at the server and therefore not visible by just giving a "page".
However, following their desire, I ... |
As a programmer, I enjoy embarking on small personal projects and I have a load of open source scripts that I host on github. I am very much a programmer and not a designer. However, it is inevitable that sometimes I am forced to design. These are usually cases where there is no point in paying for a designer, but i... |
I'm trying to learn cloud-computing, especially the idea of distributed operations (Grid Computing?) for a project I'm working on. We'll need to perform distributed fault-tolerant operations over a very large data set, which we will also be responsible for storing and maintaining in an optimized way.
If I'm trying to ... |
I always find myself wrestling with this... trying to find the right balance between try/catching and the code not becoming this obscene mess of tabs, brackets, and exceptions being thrown back up the call stack like a hot potato. For example, I have an app I'm developing right now that uses SQLite. I have a Databas... |
I have a data layer that strictly interacts with the database and returns the result into a model. I have an asynchronous connection with the DB so sometimes I have to chain results where I have to do many queries.
I have about 1000 lines of code in a single class and It's getting hard to manage.
My question is, how... |
I'm having a debate with a colleague over the correct usage (if any) of trigger_error in the context of magic methods. Firstly, I think that trigger_error should be avoided except for this one case.
Say we have a class with one method foo()
class A {
public function foo() {
echo 'bar';
}
}
Now say we w... |
I am taking over management and development of a website developed in Java using Hibernate and Postgres, running on Apache/Tomcat. I am an experienced Java developer, and have experience in Ruby on Rails, and am expert in Oracle SQL. What is the best documentation for me to read?
|
I'm adding functionality to our website which performs long-running processes asynchronously using MSMQ. Doing this ansynch, however means we need to notify users when their requests are completed. Using the command pattern, I created an interface* called INotify and composed that into the message class, so the message... |
I've been a software engineer in .NET for the past 3.5 years, and did my own integration and unit testing, but nothing too extensive. Now I'm being interviewed for an entry level QA job, and I wanted to know what concepts I should become familiar with.
|
I am a programming intern at a company in Australia. Is it normal for a programmer to be given a project that has to be completed within a week?
For example, I have been given a task to create a Facebook app for one of the companies we have, I have 2 years experience at University in a Bachelor of Computer Science & my... |
How would you distinguish the man from the machine?
|
I'm currently evaluating Hibernate Envers 3.6.2.Final; an auditing module part of Hibernate.
As far as I am in my evaluation, I feel a little disappointed by Envers. I would expect much more from it :
More clear documentation
The documentation is sparse or unclear; lack of small drawings in the document
More activi... |
If I want to bundle fonts and images with an application released under the GPL, are there specific requirements for the license of these assets?
|
I was hoping to brainstorm a little bit on the subject of storing n-gram data.
In my project, I am trying to solve linguistic problems where I know all (n-1) data items and want to statistically guess my n using linear interpolation over all applicable n-grams. (Yes, there is a tagger that assigns tags to known words a... |
I am always hearing people talk about how Java does not support first class functions, that it is an advantage you get from functional languages, the only way to simulate it in Java is through the use of anonymous inner classes etc..
However, from what I can see Java does support first functions through the use of its... |
Our shop is attempting to move towards a more "distributed" architecture. I didn't want to use the term "SOA" because I'm not really sure if that's appropriate in our situation.
For each new feature that is developed, a new service (WCF in our case) is created specifically for that feature. A feature is defined as new ... |
Say you have tests for two methods of a class. The first method gathers data from another tier and puts it into some sort of storage independent of the runtime (such as a SQL table), so all of the data handled by this test is hardcoded into the test. The second method is responsible for taking data from where the first... |
Unit tests are never perfect at capturing functionality, particularly in certain parts of an application (such as the GUI), so everyone needs some measure of black box testing. Does TDD have anything to say regarding black box testing? If it does not say much, could it be true that while writing unit tests is the devel... |
Assume that I know zero about freelancing, but I am a good .NET programmer.
I want to start freelancing.
How would I get started?
|
...One of the most important features a new employee should have is compatibility with the spirit of the people who already work there.
{...}
I am convinced that gaining insight into the developer's real personality is just as important as checking for professional competence, because one bad fit can destroy an en... |
Can having too many senior programmers in one team turn out to be a bad thing?
Having like say, 4-5 senior programmers in a team of 6-7 people.
What is the optimal number/ratio in these kind of situations?
Can this lead to too much philosophy and arguments about ideas?
Has anyone had such an experience, that can share... |
IBM's Watson has a lot of book information encoded into a 'database' that Watson searches in real time. Does anyone know how that information is coded? It seems hard to imagine how humans could type in all of those rules.
|
I'm working on a project where we're adding automated testing to an existing project. We're starting with a central component, and setting up both unit tests at the code module level, and tests that run on the whole component, albeit in the developer environment. The intent is that this test suite must pass before co... |
It seems alot of times on stackoverflow, that people (programmers especially) tend to over complicate a solution to a problem to where the solution is vastly much more complicated then the original problem? Im not an expert by any means, but alot of times I try to go with the simplest solution that works (and obviously... |
I'm working on an ERP Project where two Members(Freshers) in my team are not performing well (for small tasks). Their work is littered with bugs and other issues. As I'm a Team Lead in this Project, I end up having to write their code/tasks. This may be creating a heavy burden for me as I have to speed up things everyd... |
I work in an organization that does extensive Java development. Our group is small with a short-lived project, agile development charter. We will leverage existing QA resources of other groups, and potentially contribute code to customers and partners.
The primary arguments against Scala development have been:
QA wi... |
Whenever I find myself writing the same logic more than once, I usually stick it in a function so there is only one place in my application I have to maintain that logic. A side effect is that I sometimes end up with one or two line functions such as:
function conditionMet(){
return x == condition;
}
OR
function ru... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.