instruction
stringlengths
34
19.9k
This is pretty much a "software process" question: When your organization is split into two teams: software team and database engineering team (the organization is in ETL/BI/Data mining delivering terabyte sized reports and database dumps for research organization), What are the most common issues in coordination betw...
I've started working on my first open source project on Codeplex and came across some terrible code. (I did learn that C# still has the "goto" statement) I started adding features that the "owner" wanted and after exploring the code base and seeing what a mess it was (e.g using "goto") I wanted to clean it up a bit. Bu...
Have an Excel spreadsheet that summarizes various key metrics for the business. The source data for these metrics comes from various sources including other spreadsheets, and web/ERP systems. A suggestion was made to completely automate the whole data retrieval/population into the spreadsheet. For this type of tool (o...
I am considering making a smart phone app. Before I start, I want to see whether it is worthwhile at all. Unfortunatelly, I find it very hard to find any hard evidence on how much the developers of such apps actually earn either via application purchases, or in-app advertisement. The best research I have found so far s...
How does a Scrum team account for dev/infrastructure tasks in the planning meeting? At first glance, they do not seem like user stories since they do not deliver end user value. However, attaching them as tasks to a particular user story sometimes does not make sense either. For example, say the task is: "Setup Bamb...
I am a fairly novice programmer - 6 months into an internship. I have decided to sign up to an Open Source project to learn new skills, and I have been accepted onto one. It seems the project is quite early in its life. They accept beginner programmers and I have explained that I am one. Obviously as this is my first...
Alright, so I'm doing my first "real" C# project. I'm chugging along, enjoying myself, nice little language I've got here, fairly easy to use, la ti da. Then I get to the point that I realize there's no simple way of setting up friend classes for unit testing. Well. This is unfortunate. I dig around and find that ...
What are the things we need to take care for a web application to handle large number of requests(say 10000 simultaneous requests). Increasing the number of servers and distributing the load is one way , but are there other ways or configurations that can be done on application server ?
I am building software in PHP right now which will be released with a free version and several premium versions. I'd like a license which allows people to freely modify the code, but not to redistribute it, or include it in proprietary software or any other software without a license. Would the MIT license be best?
If the customer has problems which are not reproducible because of complexity of actions they took and can't remember step by step, then coders are missing a test case. Indeed, this issue is apparently authentic and critical, so do you think it is correct to turn away such bugs? What's wrong here? For me it looks as if...
Our team is thinking of doing a "Project In A Week" (bootcamp), and I'm interested to know if anyone else has experience of doing this or has any advice? The idea behind it is to get away from the distractions of the office, motivate each other, and build our bonds within the team, in order to come up with an innovativ...
So I've forked someone else's repository, made a few changes, submitted a pull request, and my changes made it into the product. Great! But...what should I do with my forked repository? Is there a compelling reason for me to keep my repository around, or should I go ahead and delete it? I don't plan on making any addit...
It seems like we still resort to C or C++ when we are going to do "serious" systems programming. We have some small languages which try to come up with new stuff inside systems programming such as Go and D (I have had a little experience with D and I like it a lot so far), but those aren't very widely used (Go is from ...
Do you remember when you were learning JavaScript? What was the moment that you suddenly "got it"? (For example, my CSS aha-moment was when I learnt about the box model...) The reason I´m asking is that I´m learning JS for 6 weeks, but I still find it quite confusing. Here´s a quote from something I read recently on SO...
I love programming. I've been messing around with code since I was a kid. I never went the professional route, but I have coded several in-house applications for various employers, including a project I got roped into where I built an internal transaction management/reporting system for a bank. I pick stuff up quickly,...
I searched for a standard format for using a date/time as part of a file name and was unable to come up with anything. My question is two parts: Is using time stamps to enforce unique in file names a poor practice? I could get the time from the creation date and serialize the file names (file0001.bak, file0002.bak, et...
I have been curious about this for a while. What exactly is meant by "production-ready" or its variants? Most recently I was looking for information about sqlite and found this thread, where many people suggest sqlite isn't ready for production. I know the difference between development/testing and production; my defin...
I'm trying to determine a way to distribute software updates for a hosted/on-site web application that may have weekly and/or monthly updates. I don't want the customers who use the on-site product to have to worry about updating it manually I just want it to download and install automatically ala Google Chrome. I'm pl...
Every time you are looking for a text editor, no matter what language you are using, vi and Emacs are hall-of-famers. However they are ancient, and we have better alternatives (at least I hope we do). Why are developers stuck on these two editors? Shouldn't we drop them and try to invent or look for something new? (...
I'm looking for suggestions on effective methods that I can use to document, remember and prioritize tasks at work. Many of the these tasks belong to a primary project, but they also exist for independent initiatives. The tasks themselves cover everything from development to documentation to discussions, with varying...
I would like a recommendation on choosing which light-bulb type (e.g. CFL) and color temperature is best for prolonged computer usage. I am also in a field where color consistency is important so if a specific lamp temperature is useful, I would like to know as well.
I have been struggling lately with the whole subject of documentation at my current position. I am at a point in my programming career in which I feel I have just been birthed into the whole world of proper and effective documentation. Currently there is very little to be found in any database or source code at the c...
I used to be an iPhone app developer. Now there are frequent enquires on cross-platform mobile app. So I look for a web based solution and find Sencha Touch. Are there more options? What's your experience and comment on these frameworks? Thanks!
(This question was closed on Stack Overflow due to being "too broad" and "not a real question" so maybe it's more appropriate here?) Inspired by this question. We know events are a language-level implementation of the Observer pattern. Are there other design patterns implemented as language features in C#? I want to ke...
I'll cut to the chase. I'm looking for advice on how an experienced developer would convince a prospective employer that they should be considered for a position that uses another language. This is with other non-language specific requirements being met (knowing version control, OO, degree, etc...). For example an expe...
I'm looking for good reference on patterns that apply to user security and ACLs for multi-user network applications. I'm re-writing a fairly large application from scratch. Now I'm looking at the user management and security. I'm not so interested in user meta data, but rather ACLs and security. Right now the applicati...
I'm just learning HTML, but some say XHTML is better. The W3C recommends XHTML, and I know W3C is more credible, right?
Let's say I'm planning to sell a .NET application in my website. If I need to use a library A (a reference to the compiled assembly, not the source code)... Under which license could be A so I can do this?
So I've worked in many different workplaces as a developer and my level of access to the database has been varied. I typically don't have production db access. Most of the time I have access to the test database, but it varies. Sometimes I can do and change database and data as I please, but usually there are other ar...
The UNIX Programming Environment (the classic text) states that the UNIX approach to programming is to build small, well-defined tools that can be combined to solve more complex problems. In learning C and the Bash shell, I've found this to be a powerful concept that can be used to deal with a wide range of programming...
I made an application in EXTJS, but my technical architect and project manager say we don't want big file, so removed the EXTJS and made in object oriented PHP and JavaScript code, mixing HTML with PHP. But I don't want to mix HTML and PHP because of bad coding structure and bad coding practice. What should i do?
Before Martin Fowler's book "Refactoring: Improving the Design of Existing Code" came out, we used to call major changes to code "rearchitecture" and minor changes "cleanup". IMO, refactoring techniques are all common sense / obvious things we've been doing forever. Do you think refactoring was ever anything new? Perh...
I'm currently refactoring my DLL and BLL and I need some advice on what is the best way to work with DAL and BLL. My current solution is like this: // DAL class only consists of SQL queries and returns SQL result class DAL { public function isBrandInList($brand) { $sql ="SELECT id FROM sl_label WHERE name = '...
As high level programming languages such as C#, Java, etc. are developing, many people claim that they will be an alternative to languages such as assembly language and C/C++, which gives you access and control to computer hardware, because programmers should focus on creating the program and solve problem, not wasting...
I've got a problem. I find really difficult to foresee the effect that my changes to the code will have over the whole application, either when I have to add new features or re-factor it. Very often it is not until testing time that I find out that I should have done things in a different way or that those changes prod...
My Dev team is entertaining the idea of taking on a summer intern or two. It's clear the benefits the intern gets out of such an engagement, but what benefits would the Dev team hosting the intern for a couple of months benefit? Does anyone have first hand insight into this?
I am sure that this question will piss off some people, but that is not my intent. We are all in the same boat - I will be subject to it one day as well. According to Milton Friedman's view, who was not a theoretician, discrimination in the work place can only go so far, for there will be employers out there willing to...
My company has been using Java (as a language and a platform) for many years. We have lots of products varying greatly in size, purpose and complexity. Whatever the requirements, the answer is always the same - Java. This stance obviously has advantages and disadvantages. On a plus side, there is no context switching b...
I've been studying a beginners guide to ASP.NET 4 for the past month and a half, and I'm at the end of the books. The next book will be one up (Professional guide). As yet I've only programmed exercise that are in the books, not my own code. When should I start developing my own code? After reading both books? Also I...
So, I am primarily a .Net developer who does some stuff in Java, Python and a few others from time to time. I have heard a lot of people praise Vim and Emacs for greatly increasing efficiency once the basics are nailed down. I can definitely see how many of the features could be very useful with sufficient practice, an...
In your ASP.NET MVC 3 applications that use a DataContext or DbContext, where do you instantiate your data access object? Here is a non-exhaustive list of where I've seen it done: Individually within each method of the controller In the controller's constructor As a property (lazy-initialized) of the controller In an ...
Making a project estimation with given a requirements set is one thing. But, what happens when the user suddenly starts changing them on the fly and starts adding new requirements to the already defined set? And even goes to an extent to be mad about why the project is not finished in the originally planned time frame...
Please explain in layman's terms.
I'm doing some prototyping locally that I would like to keep in source control (for backup and revert purposes) but I don't necessarily want to publish it as open-source or make available online for others to view. What source control system would you recommend for local development? Any setup or walk through for my s...
Well, does it? Is it considered bad practice? IMO, it is less readable. I hate having to scroll to the right, then back left, right, left, and so on. It makes coding more painful and confuses me sometimes. For example, anytime I am coding a long string, I will do the following... bigLongSqlStatement = "select * from so...
I often see code that include intentional misspellings of common words that for better or worse have become reserved words: klass or clazz for class: Class clazz = ThisClass.class kount for count in SQL: count(*) AS kount Personally I find this decreases readability. In my own practice I haven't found too many cases...
I am new to scrum, project management in general, and i am having problems deciding what to call a feature or a sub-feature (which are tasklists to creating that feature?) especially for the standard things we have in every web app. So i am looking for best practices on how people are creating product backlogs for a ty...
I have an ugly bit of code - essentially iteration over some data structures where the meat of the action was changing, but the iteration code stayed same. The iteration constituted the bulk of code, and there were at least four cases of code copying. So I refactored the code, putting each level of iteration into its o...
We use assertions to check for illegal behaviour which just shouldn't happen if everything is working as it should be, such as using NULL as argument when it clearly shouldn't. This is all very well when you write public functions since you can't trust that the programmer who will use them won't make a mistake. But wha...
In the following code: <a onclick="javascript:alert()"> how do you name the javascript: part? Protocol, pseudo-protocol, scheme, label, prefix? I am only trying to figure out a common name for it, not technically correct term based on what it actually is at the end. So when I say for example "javascript protocol" mo...
I don't know how to exactly search for this topic, so if there are a lot of answers to that, please just provide a link :) I'm getting a new laptop in a few weeks and am thinking about setting up a logical, easy-to-use and clean folder structure for coding from the beginning.(mixing everything coding related now) My q...
What are some of the biggest issues/pitfalls with using the Grails framework? I'm learning the framework now, and I really like it, but I need to know what major issues I may encounter when using it and how to avoid them.
I am thinking about how software like Microsoft Windows grows from small as MS-DOS to Windows 7, Adobe Photoshop from its first version to version CS5. What techniques were used to accomplish this? Did they extend their software from the existing software or redesign for the next version? Or have they already planned t...
DDD promotes rich domain models with behavior in it, POCO naked objects without any objects in it. Is it possible to have them both combined? I have a Multi Layer Solution Core - has POCO Entieties, interfaces for Repositories and Services Data - Repository implementations Service - Service Implementations Infra - Io...
I work at a Fortune 500 company as a Windows software developer in R&D. Corporate IT is currently gearing up for a company-wide Win7 deployment and as a part of it they are looking to completely lock down admin rights on all boxes (including our dev workstations). I've been tasked to work with them to make the transiti...
At my last interview(it was a phone interview) I was asked: "Which is the time period in which you can learn Java?". I've answered that I believe that in 2-3 month I'm able to write good code for non-fancy/regular applications. After that I observed that the employer took a long break and switched to other questions. N...
given Apple's bizarre geographical segregation I was wondering if, as an Italian, I am allowed to create an English application sold on the US app store for $0.99 (regardless of the current USD <=> EUR exchange rates). It seems a really stupid question and I really hope that I can but who knows, since I can't buy them ...
Interesting post by Seth Grodin by increasing productivity by specifying one device for work and one for everything else. Would you be more productive if you only programmed on one machine and forced yourself to surf, chat, email, and play games on another device or would it hinder productivity? If your boss saw you o...
I have programmed in Obj C and C, but until now found that I dont fully understand the steps in taking the software from source code to executable, I found this image kind of explaining it (sorry couldn't upload as I'm new but I still not get when the debugger, make, builder come into action, when it goes to asm and...
what do you think about this design? In this image i have reported the dependencies between packages. I would like to reduce the coupling between them, but do you have any idea about how to do this? I think it is impossible to reduce it more than this. The Preferences package is responsible to manage program options,...
What open source Java code would you suggest for me to study? EDIT: I'm interested in the design, simplicity(?), their programming style, logic. EDIT2: The first thing that came to my mind is JUnit source code. I started looking into it and I was impressed by how 'Money' is designed/represented. Similarly are there a...
Introduction to my situation I work for a small web development company. We have a team of four ASP.NET developers, including me. Almost all of our projects (> 98%) are one-person projects that take about 1-4 weeks to complete. We don't use source or version control. The only thing we have is a shared folder on a local...
I want to explain design patterns to my niece, but always struggle in doing so. It is largely due to my lack of clear understanding of design patterns. How do you suggest explaining patterns like MVC,Singleton,Factory,Repository etc in such simple terms that even kids of 10 years old can understand. I'm looking for exa...
Here are some arguments for properties and my counter-arguments: Easier to use than writing getter and setter methods Getter and setter method pairs are a code smell. Making it easier to write these is like making it easier to fail a math test by using a Scantron form and filling in all 'C's. Objects that contain only...
Since the early days of my college life I have been using Java and biggest problem that we have is absolutely being less productive than other interpreted languages. All people are sure that java is one of the best compiled language. However, neither Sun nor Oracle has put enough effort in to solve this problem. One of...
Looking for suggestions on finding code to review, or to be more clear, code on SE sites with excepted working code -- to suggest be posted to CodeReview.SE for optimization. The source of this question was another question I posted on CodeReview.SE.meta Growing Code Review, One Idea... :-) In which I got this reply: ...
Am Programmer cum Co-Founder of Start-up,Am a computer Science Graduate though am not good at Algorithms,I want to learn and sharp that side.Please suggest me some nice books for starters and Advance Level.
Not posting a question of my own per se, but I am a ".NET developer". I read the following article about one startup CEO's opinion of hiring .NET experienced developers. He has some comments on the blog but not much of a discussion format as what's possible here. I also know nothing about this man, or am promoting his ...
The name "Golden Master" evokes a level of martial arts proficiency or maybe even a final cut of a film. I think context clues provide adequate explanation of a Golden Master release. I would define it as the version of a software [product] that has been approved as the release version following a pre-determined phase...
I recently read Crockford's book "Javascript: The Good Parts" and one of the underlying premises was that programming languages can have bad sets of features which programmers should avoid. I'm a Rubyist and whilst I love the language there's always value in getting perspective. So, what do you see as the worst feature...
Just completed the first pass through Peter Siebel's Practical Common Lisp. I'm fairly comfortable with C#, Ruby, Java; The chapters that teach Lisp and the early 'practical' chapters were easy on my brain. However towards the end of the book, the practical chapters (on binary serialization, id3 parsing, web programmin...
I'm learning Python, and I wanted to advance my skills a bit further so I decided to learn django, then moved on to Flask before realizing that I was having difficulties understanding the very concept of web-frameworks. I don't have any ideas for a website yet so do you still advise me to continue learning a web framew...
I am looking for a good CI solution for a haskell project. Ideally something that will work with git. Really basic need (so far) build and run tests after each check in. Some basic reporting would be great too, but it does not need to be anything real fancy. It should also support running javascript tests in a browser....
Use of EL in JSP's is the proper way to code logic according to the Sun tutorials and samples, which also recommend against the use of Java scriptlets. Yet searching job listings for EL | "expression language" in the SF bay area on craigslist yields 0 hits (vs 144 for jsp, 8 for jstl and 678 for java. this is searching...
I've always heard that C is the language of choice to use for embedded systems, or anything that needs to run at maximum speed. I never developed a fondness for C, mostly because I don't like pointer arithmetic and the language is barely a rung above assembler. On the other hand, ML languages are functional, garbage c...
In the setting of an interview: What is the best way to reliably identify when somebody is an excellent programmer. By this I mean he is one of those that is 10-15 times more efficient / rapid / better than his peers towards the lower end of the spectrum. Many of us have heard of the FizzBuzz Problem as a way to weed...
Are there types of killer applications, classes of algorithmic problems, etc., where it is better, in the long run, to create my own language? PS: Just to be sure, I mean a new programming language and a compiler, not a new compiler for an existing language. EDIT: Thank you for the answers. Can you provide some example...
I have tried to learn C++ and Java before, but the syntax confused me. I definitely will be learning them after, but for now, where is the best place for a guy who has programmed before to learn python? Do you concur with me learning Python? Should I stick with Java or C++ before?
There's a workflow I'm working on. It's so far been web forms filling databases with occasional writing configuration scripts for analysis instruments instruments, and I've written it all, in Perl, Javascript, HTML, Javascript, MySQL. And right now, the task in front of me is generating a post-instrument analysis Bash...
I have a specific requirement. Lets say we have 3 items and a user has selected all 3 items to buy. I need to lock the 3 items (meaning the other people who want to buy the same items cannot view it) for around 10 minutes. How do I implement this? I am developing a Java web app using Hibernate and struts.
Follow up to this question So a lot has changed in the smartphone market in the last year (Specifically Androids market share, OS updates and marketplace updates). Given these changes I think it is appropriate to ask this question again. I would love to quit my job and write Android apps fulltime. :-) Is this yet feasi...
Not Counting the OS And the requirements to run the Development software. The storage space required. Strictly speaking from work perspective(company setup and not freelancers).A individual developer ( not considering a build system) unless into areas of video,audio processing( huge raw files) 3d/graphics development...
I am currently trying to organize a small workshop for several people to generate interest in android. I intend to conduct a hands-on workshop, taking everyone through various components and features by building an app. One way I can think to do this is to write an app before hand, share it with everyone and then try t...
In many companies there is a formal procedure of reviewing employees' work. For example, a salesperson can stay she'll sell one million units at the beginning of the year. When she comes up for review a year later, she says she's sold two million units. Thus, her manager decides to promote her. But what should develop...
I have a big table with 1,400,000 rows, and I need to insert 3000 rows daily in it. When I insert 3000 rows daily should I first insert to a temporary table than dump that temporary table to the main table. insert directly to the big table. Which approach is fast and why?
Which is the best Git library in Ruby to use? Git, Grit, Rugged, Other? Background: I'm the current maintainer of TicGit-ng which is a distributed offline ticket system built on git, and I've read and heard over and over again that Grit is the one I should use because it supersedes the Git gem, but there seems to be ...
I have a PHP project that I'm currently developing. I'm nearly finished and I was wondering what is the best practice when it comes to beta testing and deploying updates/changes to the production site? For example, in order to test out new features, I thought about creating a sub-domain called beta.mysite.com that uses...
I made an application in extjs, and it was rejected by my technical architect, project manager, and team leader because it was a big JavaScript file. It feels very bad when you develop an application and it is rejected by your seniors. I don't want to feel bad and I want to concentrate on my work. I would like to restr...
If I used a GPL-licensed Javascript library in a web application, would I then have to offer source code of the whole site to anyone who downloaded and executed the Javascript lib?
Are C or C++ regular languages? If not, under which category do we place the programming languages like C/C++, perl, Python?
In a response to another question, a poster suggested that under the GPL: ...you need to provide the human readable [code], not a whitespace stripped version... Readability would seem to me to be subjective and unlikely to be explicitly required by the GPL. Is it?
I am currently designing a API and have come to a slight design issue and was hoping for a few other opinions. My url structure for accessing basic data from the API is: /clientName/appName/methodName/. Basically each client may have a different set of methods for each application, so the base application class is ex...
The misunderstanding of floating point arithmetic and its short-comings is a major cause of surprise and confusion in programming (consider the number of questions on Stack Overflow pertaining to "numbers not adding correctly"). Considering many programmers have yet to understand its implications, it has the potential ...
I am interested in the architecture, methods and software used by your company to capture and store knowledge. Is the information easily searchable (especially by non-techies) ? Is it stored in a central repository or in several places ? Do you find the current implementation adequate ? What could be improved ?
I'm writing the Software Requirement Specification document for a piece of software that I am developing. A part of the SRS is the identification of the user class. Can somebody please give or refer me to definition of a user class as it relates to a software product?
I was curious about what cross-platform framework does the developers of high profiles applications such as Photoshop, Guitar Pro, etc; use. They all integrate seamlessly with the OS to the point where you can sometimes assume that the application was developed exclusively for that OS. I have been programming with Qt ...
I am wondering what phrases that would have the most impact when approaching a business, to inform them why they should test their software. Obviously you have easy ones; reduce costs/risk, improves stability/reliability/usability. But these are just words, how would you wrap them into something concrete that even peop...
Say you have this task in an application that consists of two parts: 1) Delivery of a file to an external system (not in your control) 2) A database transaction in our system, with information about said delivery (what was sent, when and by whom) If any of these two parts fail, our system's state will be inconsistent. ...
The only things that I know: An assessment day is much more than a simple interview. Actually 1 or more interviews are just a part of it. Both individual and group based programming activities are involved. Any ideas about what kind of programming activities to expect (preferably by people who have already participat...
I always supported the idea of having coding rules for developers in a company or a specific project. Especially if the company is size greater than 10. The bigger the company the bigger the need. I know a lot of people will disagree, but I have seen projects that don't have them and the code looks like total disaster....