instruction stringlengths 34 19.9k |
|---|
I am a hardware/infrastructure guy going back to school to get my degree (FINALLY...) and am taking some low level intro programming classes. On top of the JAVA I am working on at school, I am also tinkering around in some other languages. I work in a shop with some very talented developers and am attempting to learn... |
With Javascript appearing to be the ubiquitous programming language of the web over the next few years, new frameworks popping up every five minutes and event driven programming taking a lead both server and client side:
Do you as a Javascript developer consider the traditional Design Patterns as important or less impo... |
I was wondering if anyone has successfully used Windows Workflow Foundation for a BusinessRules/Validation engine, or if you know of some sample code or articles about this.
If you have used it before, what do you think of it? How is it compared to other BusinessRule/Validation systems?
I am thinking of rules like
if ... |
I've been asked to support a Java EE application. The data model was poorly-designed and will not support several necessary use cases; so I'm developing a new data model using EclipseLink (the old one was built on iBATIS). Mind you, I'm no EclipseLink guru, and still have many questions about the best ways to utilize i... |
We currently use Team Foundation Server to do our builds. I know we can tell TFS to keep our builds for a certain amount of time or keep them indefinitely. What if we want to keep some or all of our builds indefinitely in case we need to go back to them for some reason? Do any of you use source control to store your... |
I'm developing a web site in php in localhost and as modules of it gets completed, I upload it on the cloud so that my friends can alpha test it.
As I keep developing, I've lots of files and I lose track of which file I've edited or changed etc. I've heard of something as 'version control' to manage all those but am no... |
I'm currently working on a small library as a hobby project. I am the only one who actively codes for it, but a few of my friends have expressed interest in participating in the future.
When using the library for my own purposes, I usually just add the appropriate source files to my project using an IDE. (E.g., dragg... |
I've encountered bugs that are extremely difficult to reproduce reliably and/or explain definitively, but that appear to be solved. When this happens, how much time should I spend chasing it down?
Example: this SO question and this related jQuery forum post, which offer differing solutions. The issue was reproducible... |
I haven't done any serious web development stuff since last year because of family/time issues. I need to get back into it because it's my career choice and I'll be finished with my associates degree soon. I decided to revamp a previous website I helped the owner build. After deciding what to change, I couldn't make up... |
The one thing that I am having a hard time figuring out with developing an extensible application platform in ASP.NET MVC 3 is how to modularize everything into an easy to update and distributable form.
The ideal solution I think would be to be able to pack everything up is some compressed file like zip/rar/tar (but s... |
In mathematics, there are notations for asymptotic lower bounds, upper bounds, and tight (within-a-constant-factor) bounds. When describing the growth of functions in general, it makes sense that all three might be relevant to some function or other.
In algorithm analysis, asymptotic notation is usually used to describ... |
I'm a .NET developer who's eying up new jobs for a change of pace. My career so far has led me to become quite proficient with C#, WPF, WinForms, MSSQL, and all kinds of goodies in the .NET framework including Entities, Parallel Tasks, etc.
However one thing that I'm obviously lacking is ASP skills. Nearly every job in... |
I come from a scientific biology background where we also use Python a lot.
Now that I've begun to start with Web development, I've consistently found myself wondering just why it is that JavaScript is the primary client-side language on the Web.
Is JavaScript's predominance a historical accident or something else? ... |
When it comes to very small projects (just a few devs), how effective are distributed version-control systems (e.g., git) compared to systems with a central repository?
I like the idea of having a central repository because it seems much more elegant and organized. However, after watching Linus Torvalds's Google Talk,... |
Why has Ubuntu committed to a 6-month release cycle? Why should it have a fixed cycle at all?
Doesn't that go against the "if it ain't broken don't fix it" saying?
|
We know about the deferred execution or lazy evaluation features introduced in C#. But at times, people become confused with them. Because there is no significant difference. You can only know if you know the internals. Shouldn't there be a syntactical difference between them to remove confusion?
I think the keyword le... |
I've been working as part of my service company for a client (ClientA) for a year now on building a platform.
A few weeks ago another client (clientB) asked me for a quote for building a similar product. I said to clientB that we have been working on a similar product for a client and that we have a mature platform th... |
Is there are a widely accepted standard for formatting SQL queries? I've never been given any guidance as to the "typical" or "standard" way of doing it. I've seen three styles in the wild, and prefer the second:
All caps:
SELECT GROUP_NAME FROM GROUP_TABLE WHERE GROUP_CODE = 'GRP37X';
Reserved words in lower case... |
Do you think it's a good practice to implement a possibilty to allow an administrator user to login in as another user, by-passing password? This could by implemented by a master password or a function inside the user administration, "Login as this user".
Administrators are asking for a such function to be able to try... |
I like to write small GUI applications using Java and Swing, something like a client for the social website Tumblr
Should I use Eclipse RCP or the Netbeans platform?
And what benefits do I get from using either one over using plain swing/SWT?
Do RCP applications require more dependencies than those developed using Swin... |
I fairly understand that this Q+A site is programmers destination and questions on hosting are not permitted here, but anyone who has heard of Google's App. Engine is well aware that this question is suited for this site only.
Google App. Engine supports either Java or Python interpreter. I want to know what type of ap... |
I have reading about variety of frameworks for web applications like OpenRasta, Django, CodeIgniter etc. It is a passion of developers to dip their hands on any new technology, but from the job-seeker's point of view, what is the significance of these new buzzes. Is it better for a job-seeker to stick with the standard... |
From time to time, I find myself copying a bit of code and modifying the copied version. I know very well that having two copies of the same code is a very bad idea, but those pieces of code are small and have significant differences.
The problem is, when modifying the copy, I sometimes forget some piece of the origina... |
At my company I am trying to make a case for why we should be doing TDD. Currently most developers just do whatever they can to get the project done, then go add unit tests after the fact in order to meet manager metrics. Any examples from reputable companies doing TDD and seeing the benefits would be greatly appreciat... |
There are numerous questions on this site regarding questions to ask a potential employer during an interview. However, I was wondering if there were specific questions that should be asked when having an interview at a small start up?
Working at a new start-up is different from any employer I've had to date, and I wa... |
I am a Realtor in a large metro area. Our MLS provider is building the next generation of its MLS software on Flash. Many in the beta test group are against this, citing numerous reasons including lack of native iPad compatibility, buggy behavior, and the general assertion that Flash is simply the "wrong" platform upon... |
After reading through a few "job hopping" related threads recently, I've been thinking how the opposite of job hopping can also be a problem.
I've known many people (especially in large, relatively sluggish companies) who got comfortable in a cushy and unchallenging role and stayed around for a very long time - say 10... |
I've recently learnt regular expressions and I love writing / using them. I'm looking for ideas and more opportunities to use them, however I don't want to overuse them as an all purpose tool, as often warned by people.
What kind of things should I use regular expressions for, and where should I not use them? (Apart fr... |
Some company is selling software through Apple's App Store which uses portions of code that I released publicly under the GPL. The company is violating the licensing terms in two ways, by (1) not preserving my copyright statement, and not releasing their code under the GPL license and (2) by distributing my GPL-license... |
Possible Duplicate:
How to prepare yourself for programming interview questions?
I am going for c#-sql server job and I was looking for some link where I could download some questions and answers to have look at.Googling I have found many but because there is no download you have to click and navigate for each quest... |
I have seen some source code containing Copyright notice in the beginning of the file. Most of them are either GNU General Public License or Apache License. If I want to develop any open source software what are the steps should I follow? Do I need licensing my software by registering somewhere, or I just add the text ... |
hope I am in the right place to ask this. A client, for whom I developed a group management software (in Flex) is now asking me to develop a fully-fledged hotel management software (tailored to his specific needs, that's why he does not use an existing one).
However, he wants to access it on the Web and have a Desktop ... |
According to this answer to this question, a good reason for always starting with a failing test ("Red") is to make sure that the test is working and that the code that will be written is what makes the test passes. (my paraphrase)
Since it appears to me that the ability to write a test before any code has been written... |
A major objective of software development is to focus on delivery of features implemented in good quality code.
Knowledgeable developers are supposed to write software with good performance to the extent of their understanding (that is, in the software module they are working on). For example, they should be able to u... |
Unit testing consists of executable code which exercise a certain functionality and then assert some conditions. The results are either Pass or Fail.
The objective is always to have all tests passed.
Software performance profiling usually requires help from some automated test/profiling tool, but the results seem to ... |
If so, can you tell me how learning a new paradigm changed your approach for solving programming problems even if the problem is in another paradigm/language/technology?
I will really appreciated If you can tell me in a specific manner, how your X (ie: JAVA/C#/C++) programming skills improved by learning Y (ie: Scheme/... |
What should I consider when taking an application (web) from a few users to hundreds or thousands? Basically, what should I be considering when thinking about escalating?
|
Read first: For a definition of the two terms ("profiling" and "benchmarking") and the need for distinguishing them, please read this answer to a previous question.
I have to admit that until I saw Winston Ewert's answer, I have never thought of the need to distinguish the two techniques. I simply think that "profiling... |
I want to explore the contentions between the two hot topics: Clean code vs. Good performance.
(In progress ... please post comments to help me flush out the details of this question. Thanks.)
Examples which may help me define the question:
Windows GDI+ is known to perform work on separate threads, which would have ha... |
This is an offshoot question from this answer to a previous question, where http://speed.pypy.org is highlighted as an example having a good presentation.
(However, it appears to me that the project doesn't separate the components of execution/tracking/report-generation/web-service, which makes it harder for other peo... |
If it is relatively easy to get good code coverage from profiling (because profiling tells you which functions are/aren't called, how many times, and with what parameters), how do I get good performance scenario coverage when doing performance benchmarks?
How do I even know that there isn't some "performance blackholes... |
I heard Javascript is a full language just like c++. Is this true? What else is it good for programming besides web stuff?
|
I am a recent (as of yesterday) college grad - BS in Computer Science. I've been a huge fan of version control ever since I got mad at an assignment I was working on and just started from scratch, wiping out a few hours worth of actually good work. Whoops!
Since then, I've used Bazaar and Git (and SVN when I had to for... |
I heard some people complain that APSL 2.0 ( http://www.opensource.apple.com/license/apsl/ ) has too many limitations. What's the limitation of it compared to BSD or MIT?
|
What lessons did you learn from a project which nearly/actually failed due to bad multithreading?
Sometimes, the framework imposes a certain threading model that makes things an order of magnitude more difficult to get right.
As for me, I have yet to recover from the last failure and I feel that it is better for me not... |
Sometimes software performance tricks are found from a methodological and thorough search. Sometimes it requires divergent thinking and courage to try crazy ideas. Sometimes an idea is just the beginning that needs to be followed with a lot of hard work.
How to foster a time period where everyone can try different idea... |
So I am designing a webpage which will be used for global users, includes users from Canada, US, India, UK etc. I need to apply validations for this phone number field, but I'm not sure the best way to go about this.
Some of the valid formats I can think of are:
1800123456 (India)
use of "-" in US phone numbers
I am ... |
I need to learn COM for my current project. I am a noob and I haven't been able to find good starting points for COM. I have been looking into MSDN and googling... I did find some interesting articles on codeproject.com, but I am not satisfied. Why do we use COM ? Why does it exist ? In what places does it exist ? ....... |
Implicit parallelism^ can take a big burden away from many programmers, placing it on the computer. So... why is it is not more widespread at present?
^ Implicit parallelism is to make a computer be able to figure out itself how to do more than one thing at a time, instead of a programmer needing to do this job using ... |
I just stumbled upon a question at SO about PAC and got interested in the pattern. I'm wondering why it's not as widely used as MVC? What is the MVC benefits compared to PAC?
|
I'm trying to understand whether cloud computing is meant for small to medium sized companies OR also for large companies. Imagine a website with a very large user base. The storage and bandwidth demands as well as the number of database transactions are incredibly high. The website might be hosting videos, music, imag... |
I'm new to version control (currently using SVN), but I don't understand how this helps developers. What does version control do that makes it useful in a development environment?
|
Just read a presentation about using Python for Scientific Computing. I am currently using MATLAB (student license FTW, which will expire when I graduate soon).
So I was wondering how matured SciPy and NumPy are with respect to relying on them for all the Scientific Computing I need to do. The advantage is that it's fr... |
We are a small team that is about to start developing a localized version of a successful US web app in Korea, using RoR.
Our question is: What process would you recommend we use to go about developing the app?
Should we start with the data models? The views in HTML and then code them? Take a single feature, develop it... |
My company is considering consolidating all their tier-1 (i.e. top end production) applications and sites into one all-encompassing code base.
The theory is that their permissions, design and overall functionality can be homogenised and centrally managed.
I have no end of concerns about this approach since the data str... |
The dynamically typed languages I know never let the developers specify the types of variables, or at least have a very limited support for that.
JavaScript, for example, doesn't provide any mechanism to enforce types of variables when it is convenient to do so. PHP let you specify some types of method arguments, but t... |
I'm a developer who mostly does web stuff in ruby and C#.
I'd like to start tinkering with iOS and Mac development.
Over the last few month i've been trying to get fluent in one set of key bindings (vi / vim because it just feels right).
I have the awesome ViEmu installed for visual studio on windows which gives me a t... |
The last couple of years I've been observing an exponential growth in the news related IT companies and individuals taking their cases to court, on one side, and the questions concerning legal matters everywhere on the web, on the other side.
I very much doubt people and companies have suddenly started stealing each ot... |
Why issue tracker systems usually have distinct "Opened" and "Reopened" statuses?
|
I am wondering if there is any research on the lifespan of cookies on users computers?
For a website I'm building we are looking at giving the users some personalization based on a previous selection when they come back at a later point. However, our users mostly will come back a few months or even a year later.
Of cou... |
Learning to manage stress is vital to staying healthy while working at any job. A necessary subtask is learning to recognize and limit the sources of stress.
But, in the midst of the daily grind, it can be difficult to recognize sources of stress (especially for an intense, focused persona such as a programmer).
What t... |
I'm sure everyone has experienced something like this. You go into a meeting with a client who has a project. They have no/few requirements in mind and the vaguest understanding of what they want/need. At this point, there seem to be two options:
1) Tell the users, "Ok, so I can't build something for you if you cannot ... |
We're a bunch(4-5) of 3nd year college students about to begin our 3 months summer vacation and we would like to get going on a project. We want to make a game with XNA, it doesn't have to be big or something but we have 3 months so I'm not sure how big it can get.
I plan on being the "team leader" because I have the m... |
See UML colors here.
Here is the example, I have following entity classes:
User(name)
MailBox(owner: User, label)
Mail(from: User, to: User, subject, body, composeTime)
MailCopy(type, from: User, to: User, subject, body)
MailDelivery(mailCopy, mailBox)
Use case: Every users have three mailboxes by default: MailBox... |
There are a two main codebase structures that I have seen when it comes to MVC frameworks. The problem is that they both seem to have an organisational bug that goes with them.
Standard MVC
/controller
/model
/view
Problem: No separation of related components (forum, blog, user, etc..)
Modular MVC
/blog
/controlle... |
Here's my question: What are the weaknesses with different types of NoSQL databases? Specifically, what're the weaknesses of key-value stores, graph data stores and document stores?
I've had an easy time finding strengths, but documents on weaknesses seem to be scarcer.
Edit: In comparison to each other, and to relati... |
I'm new to programming. I know a little python and a little objective c, and I've been going through tutorials for each. Then it occurred to me, I need to know which language is more flexible (python, obj c, something else) for screen scraping a website for content.
What do I mean by "flexible"?
Well, ideally, I need s... |
In the Ruby on Rails tutorial, I read something that suggested that experienced developers do not use scaffolding since they tend to like to just write the code to connect the MVC on their own.
In a different place I read that it is a good idea to use scaffolding because it helps you stick to convention so others who l... |
If this has already been asked, feel free to redirect me and I'll close this.
I gave my current employer notice to quit my job a few months ago, and they haven't been able to find anyone to replace me. I'm able to leave the job in another month, and the company has started to ask me if I'd be willing to continue workin... |
I often see in C and C++ code the following convention:
some_type val;
val = something;
some_type *ptr = NULL;
ptr = &something_else;
instead of
some_type val = something;
some_type *ptr = &something_else;
I initially assumed that this was a habit left over from the days when you had to declare all local variables ... |
I've just read this page http://weblogs.asp.net/scottgu/archive/2010/06/10/jquery-globalization-plugin-from-microsoft.aspx
One of the things they did was to convert the arabic date to the arabic calendar. I'm wondering if it is a good idea at all to do so. Will it actually be annoying/confusing for the user (even if th... |
So I am in the middle of making (and maintaining) my own code library with quick snippets to make life easier.
I'm assuming a lot of other people do this to help.
My question is, what sort of things do you store in this so called library
Also, Do you use any tools to organise this library?
|
I was reading the article here: http://www.paulgraham.com/avg.html and the part about the "blub paradox" was particularly interesting. As someone who mainly codes in c++ but has exposure to other languages (mostly Haskell) I'm aware of a few useful things in these languages that are hard to replicate in c++. The questi... |
I'm a coder and have experience with both native and managed code.
I started out with Pascal and C, then moved into C++ and eventually into C#.
Over the last year or so, I've been coding almost exclusively in C# and have lost a lot of what used to come naturally when I was a C++ coder.
A few weeks ago when I sat down t... |
I provide a web service using a site and recently I got a proposal for franchising that service to another company.
The problems come when they want all my code to run in their servers. I understand their reasons, but I want to take measures that the core of my PHP code remains hidden and unchanged. I want to take meas... |
There are a lot of android resources types: layouts, strings, drawables and so on. I understand that readability of it's names is important but can not create a table of rules how to name them in the best way.
Are there any best practices on that?
|
C# (and the .NET platform in general) is looking like it's becoming a good option form multi-targeting applications:
official Microsoft .NET framework: full-blow Windows development, ASP.NET development, Windows Phone development, etc.
Mono and all its derivatives: MonoTouch, MonoDroid: the rest of the world. These t... |
We are having a discussion about design. Keep into account this is fortran, so we can't be too smart. We have the following classes: Application, System, Calculator, CalculatorSimple, CalculatorPeriodic, Result.
Application is an application object which handles System objects. In order to compute information on the Sy... |
Jame Gosling said
“You should avoid implementation inheritance whenever possible.”
and instead, use interface inheritance.
But why? How can we avoid inheriting the structure of an object using the keyword "extends", and at the same time make our code Object Oriented?
Could someone please give an Object Oriented exam... |
I'm looking into Lab Management right now for our test environment for manual and automated testing. I'm just getting started on the process of putting together various servers to host/support it and then I'll be making some dummy projects and working through the process.
Currently, we are using System Center Virtual M... |
When I first started programming, I assumed that I would one day get to the point where I would start a project by sitting down and sketching a UML diagram of all the classes, then pretty much stick to that. I have now been programming for a couple years and it is not turning out that way. As I go through a project, I ... |
I was recently made the team leader of a database (95% MS SQL Server, 5% misc-Oracle, Sybase, Access) development team that manages and develops a large number of databases in a corporate environment. I'm looking for resources (checklists, utilities, best practices, procedures, websites, books, etc) that will help me ... |
In OOP there is the Open/Closed principle that states that
"software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification".
Taking in consideration that in Ruby it is to possible to reopen a class, don't you think that this breaks the Open/Closed principle?
When do ... |
A common question in Tech Interview is to design a particular system, usually an existing product of the company. For example, "Design Google Docs".
What is the expected answer for such a question? I mean, such systems surely have a complex design which is beyond the scope of any interview. What are the interviewers ex... |
This is more a web design / user experience question, but since programmers.stackexchange.com is more opinion based, I posted this here -
Does it make sense to have a single tab in a web app? I don't see any reason to have a tab if you can't tab to it from some other tab. My PM is demanding a single tab. I honestly ... |
Tools and frameworks make complex tasks simple. This seems like something that would be supported by KISS(keep it simple stupid). Tools and frameworks also have the potential to introduce leaky layers of abstraction, where the complexity of the issues are far more problematic than anything you would have written yourse... |
In order to produce a plug in and incorporate it (merge) easily with Visual Studio 2010.
I was wondering which language was used by Microsoft to create it?
In order to offer our product to Microsoft, we must know which language is better to integrate with Visual Studio.
Was it pure C++? A friend of mine told me it was... |
I've heard a lot of buzz about the Iron languages..
I mostly write line of business applications in c# and I'm not really enjoying c# these days.
Is IronRuby mature and fast enough to be used in silverlight right now?
As in am I gonna get a call in the middle of the night from an angry customer cause the silverlight ap... |
I will soon begin the process of applying for entry level programming positions. As of now I have no professional coding experience, so all I have to show is some personal projects and code samples to show what I am capable of. How do I present such things as code samples, my specific work on collaborative projects, pe... |
Not sure if the title really fits with the question, but figured it was the closest to give an overview of my question..
I'm working on a web application that (fairly heavily) employs the use of browser-specific CSS functions such as -moz-transform) and I'm curious as to what approach those with more experience develop... |
Many questions and answers on the C/C++ pages, specifically or indirectly discuss micro performance issues (such is the overhead of an indirect vs direct vs inline function), or using an O(N2) vs O(NlogN) algorithm on a 100 item list.
I always code with no concern about micro performance, and little concern about macro... |
I worked in Linux environment before and I have to work in windows XP for my current project. In linux, I enjoyed using script files for automating tasks(even smaller ones), and it did save me a lot of time.
I see windows command prompt is severely handicapped in terms of power and the number of commands available.
I ... |
I work in a shop that lives by its CI process. We have traditionally used SVN and are considering moving to git (want to leverage its ease of branching, stashing, etc). Thinking in terms that a distributed source control system, by its very nature, seems to put the need for a central repository as a secondary concern... |
I have a number of user stories where the same feature needs to be shared by multiple roles. I have started writing these stories like this:
As a Role-A or a Role-B When I perform Action-X Event-Y should occure.
Is this the correct way to represent that concept in user stories, or should I break it up into one stor... |
I'm coding a new site. İt's like StackExchange, a social site and a blog. I try to create a multi-language site, however I can't decide how to do it.
I have to use modules, so I must use OOP, while having multilanguage interface. How can I do that?
There are two language options (Turkish and English), used continuousl... |
Suppose I release some source code under the new BSD license. Is it allowed for someone else to take this code, make modifications to it and distribute it under the terms of the GPL? From Wikipedia:
Many of the most common free software
licenses, such as the original MIT/X
license, BSD licenses (in the current
2... |
I have 1 year and 6 months of experience on Android. All of my experience has been into application development. Recently I have got offers from two companies. One is offering me a profile to work on application layer and other is offering a profile on Android middleware.
Can you guide me which would be better? Is mid... |
Let preface this by saying that I understand that any advice I may receive is not to be taken as 100% correct, I am just looking for what people's understand of what this license is.
I have been looking for a library that allow be to deal with archived compressed files (like zip files) and so far the best one I have fo... |
I have a Django model called Entity. Different types of Entity have different attributes (e.g. some have a currency associated with them, others don't). I'd rather not have to create a new subclass for every permutation of attributes.
Question: Is it a bad design decision to create a CharField or TextField called "attr... |
I was looking at some certifications that can potentially enhance my knowledge and market value as a Software Engineer. IEEE's Certified Software Development Professional (CSDP) caught my attention. When I looked on the net for any user experiences with it I couldn't find anything substantial. Doesn't seem too popular.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.