instruction stringlengths 34 19.9k |
|---|
I have big dreams of writing the next Facebook (unrealistic I know) and I'm in the planning stages as we speak and I'm umming and ahing about using a php framework for this and how many development hours it would actually save me. If any? Also is it unrealistic for one person to hand code an entire social network solo?... |
The null-coalescing operator in c# allows you to shorten the code
if (_mywidget == null)
return new Widget();
else
return _mywidget;
Down to:
return _mywidget ?? new Widget();
I keep finding that a useful operator I'd like to have in C# would be one that allowed you to return a property of an object, ... |
I'm a novice programmer and often when I'm working on my own projects, I always get the feeling that the design of my code is not the best it could be, and I hate this feeling. I end up spending time looking things up, but then I become overwhelmed easily with many details, such as design patterns to choose from and wh... |
I'm always trying to hone my résumé to the bare-bones essentials -- no fluff.
I want to keep as many points as possible to a single line, and to this end I have used the term WinForms in several places. I wanted to check my capitalization against other examples, but this term is not used on the official http://www.wind... |
A pet peeve of mine is looking at so many software projects that have mountains of code for character set support. Don't get me wrong, I'm all for compatibility, and I'm happy that text editors let you open and save files in multiple character sets. What annoys me is how proliferation of non-universal character encod... |
An executive at my workplace asked me and my group of developers the question:
How many lines of code can a C#
developer produce per month?
An old system was to be ported to C# and he would like this measure as part of the project planning.
From some (apparently creditable) source he had the answer of "10 SLOC/mont... |
I often encounter this when I am helping out someone who is new to programming and learning it for the first time. I'm talking about really new newbies, still learning about OOness, constructing objects, method calls and stuff like that. Usually, they have the keyboard and I am just offering guidance.
On the one hand, ... |
I'm a undergraduate in my 3rd year of a Software Engineering degree. From this year on, my university has introduced a new course called 'Compiler Constructions', which teaches you the basics of the theory of building a compiler.
What would be the real world advantage for a Software Engineer of learning about compiler ... |
I was motivated by the Compiler Construction As A Subject question and thought I would ask this one.
I have heard from a few people that they have a good "compiler team" (don't ask where I heard it, I can't remember), so that led me to wonder, how does one get a job on such a team?
I know there are classes at in the Un... |
Recently I've been working on projects that heavily use threading. I think that I'm OK at designing them; use stateless design as much as possible, lock access to all resources that more than one thread needs, etc. My experience in functional programming has helped that immensely.
However, when reading other people's t... |
Any product or framework evolves. Mainly it's done to catch up the needs of it's users, leverage new computing powers and simply make it better. Sometimes the primary design goal also changes with the product. C# or .net framework is no exception. As we see, the present day 4th version is very much different comparing ... |
One of our senior developers has stated that we should be using a naming convention for stored procedures with an "objectVerb" style of naming such as ("MemberGetById") instead of a "verbObject" type of naming ("GetMemberByID"). The reasoning for this standard is that all related stored procedures would be grouped toge... |
Imagine to have this code:
class Foo:
def __init__(self, active):
self.active = active
def doAction(self):
if not self.active:
return
# do something
f=Foo(false)
f.doAction() # does nothing
This is a nice code; I actually have (not in Python) a global active variable called "dosomething" and a... |
Recently I heard of a company that, for interviews, asks potential employees to stand up and write out code on a whiteboard. Apparently that freaked alot of interviewees out.
This got me thinking and even though I consider myself a reasonable programmer, I would be hard pressed to write lengthy code out without referr... |
I had a meeting with a software vendor today about their recommended infrastructure for deploying a particular application. The application needs two servers: an app server for server web pages (.NET, Windows), and a database (SQL Server). The vendor claimed that these two servers had to have "bit parity". What they... |
I'm working on a normal Java/SWT desktop application I'm planning on distributing to the three primary PC platforms (Windows, OSX, Linux). Obviously, there are slight differences between them, mainly having to do with files.
What's the best way to keep those differences separate? I'm thinking three different SVN branc... |
I'm just about to start a project using Sencha Touch, and just done some minor testing on my HTC desire device. All tutorial videos at Vimeo seems to be using an iPhone emulator running on a Mac. Im not sure how fast this emulator is compared to a real iPhone device or even an real Android device, but from what i have ... |
I haven’t clearly understood the concept of side effect.
What is side effect in programming?
Is it programming language dependent?
Is there such a thing as external and internal side effects?
Please give some example of causes that create side effects.
|
In most of my applications, I have a singleton or static "config" object, in charge of reading various settings from disk. Almost all classes use it, for various purposes. Essentially it's just a hash table of name/value pairs. It's read-only, so I haven't been too concerned with the fact that I have so much global sta... |
For a project I am working I want to implement a small prototype to try things out, demonstrate some functionality to the client and learn some frameworks used in the project.
Do you have any suggestions or do you know of best practices for implementing such a prototype?
Some more details:
The application will be a co... |
Where did exceptions and exception handling come from?
I like how .NET uses it, I like how C++ supports it (but libraries unfortunately use return code or is written in C instead). I know its pretty much standard in all new languages, but who designed it first or where did it come from?
Is C++ the first language to use... |
There has been a lot of discussion lately about the problems with using (and overusing) Singletons. I've been one of those people earlier in my career too. I can see what the problem is now, and yet, there are still many cases where I can't see a nice alternative - and not many of the anti-Singleton discussions really ... |
I'm building a Model-View-Controller framework, and it has come time to decide how I will be creating and using view templates and layouts.
Some frameworks use special extensions for these files. CakePHP uses .ctp.
I have heard-of/seen .tpl files, though I've never used them myself.
There is the .inc extension, which ... |
Do you have any particular style of organizing projects?
For example, currently I'm creating a project for a couple of schools here in Bolivia, this is how I organized it:
TutoMentor (Solution)
TutoMentor.UI (Winforms project)
TutoMentor.Data (Class library project)
How exactly do you organize your project? Do you h... |
In their influential team leadership book, "Peopleware", DeMarco and Lister suggest that managers should provide "strategic but not tactical direction" for their IT teams.
This is intriguing, but they don't go on to explain exactly what they mean! Any thoughts on what this intriguing idea looks like in practice? Is it... |
I'm about to take on the task of reimplementing an already defined interface (a set of C++ header files) in a relatively large and old code base. Before doing this, I would like to have as complete test coverage as possible, so I can detect reimplementation errors as early and easily as possible. The problem is that th... |
What would be the reason one learn to make apps for Windows Phone 7 instead of Android phones? Is there any reason why Windows Phone 7 is the platform that a developer choose instead of Android?
Thanks heaps
|
Every now and then I see "closures" being mentioned, and I tried looking it up but Wiki doesn't give an explanation that I understand. Could someone help me out here?
|
There are three roles defined in Scrum: Team, Product Owner and Scrum Master. There is no project manager, instead the project manager job is spread across the three roles.
For instance:
The Scrum Master: Responsible for the process. Removes impediments.
The Product Owner: Manages and prioritizes the list of work to ... |
I've been freelancing for a local game development shop. Most of the projects we worked on were brought in by an external contractor. This guy now wants to do business directly with me for some new projects which have nothing to do with games, and thus wouldn't require the skills of my previous clients.
They heard abou... |
My goal is to define contracts between classes.
I like duck typing and all but I'd like also to define an interface between different layers of my application to clearly define which are the method to call from the external, and which are accessory methods that shouldn't be used by the other layer.
For example in Java ... |
We are using some open source libraries in our projects. Sometimes there are some issues found in some of them (most likely library bugs, but it may also be a wrong usage from our side, especially when sometimes documentation is not exactly 100 % complete). As the libraries are often quite complex, debugging them to pi... |
I have an application that has a back-end database (tables, procedures, database specific dlls) and front-end (application logic and UI) that separate people are working on. I was wondering what's the best way to organize it in my repository (I'm using GIT).
The options I see are:
all-in-one repository
submodules of ... |
I always come across people who like to bang on for ages over the smallest "technical things".
Don't get me wrong, I'm a geek programmer who loves what I do, but you know the type of conversation.
Mac is so much better than Windows
Don't use a For Each loop, use a While loop
Don't buy an Intel based PC, get an AMD bas... |
Advice on being a lead developer is welcome. Advice on being a lead developer of an Objective-C team more so. Unfortunately, I don't have experience in Objective-C (I suppose the first thing to do is to learn it). Also, I've never been a lead developer before. I do have about 6 years experience in developing applic... |
I simply cannot imagine writing software without a spec. No matter how sketchy or high level it is, spec is important to explain to the clueless programmers on what are the functionalities of the program.
But the problem with spec is that it is somewhat a second class citizen in the whole software development cycle; w... |
My boss recently went back to our international office in his home country to interview some potential new employees, and we have decided to hire a few as programmers. They are fresh out of college and have very limited experience (similar to me when I first started working here). I am told they are able to read Englis... |
Can I develop a BSD-licensed software that extends an Apache-licensed software (and vice-versa)?
|
I'm trying to edit a JSP for a project and I'm getting a NullPointerException somewhere in the JSP when it's requested from my server.
My web server (JBoss) is reporting the exception, but it's giving me a bogus line number. It's reporting that the exception happened on line 702, but my JSP is only 146 lines long, so I... |
Lots of programmers that I've met always says that "He is not a UI guy." The fact is that development nowadays, whether web, Windows, Linux, OSX, or any other type of development now comprises software with a good-looking UI. Why do so many developers seem to not like UI work?
|
I'm curious whether Mathematica could help me in software development or not. Do you use it for that, and for what? For instance, do you use it to analyze algorithms, or to do something else?
I will probably buy myself a (student) license, but I'm not completely sure (if it isn't good for software development, I might ... |
edit:
I should point out; My personal view was that I should be proactive. I know sometimes I have to bite my tongue, and I wanted to get the communities input(was this one of those times).
I couldn't find a more appropriate place to ask it in the SO family of sites.
Here is the scenario --
small org < 70 employees
n... |
It seems that even that developer tools has become more solid and robust, writing good code has become a challenge. Even that tools are more powerful, quality of code haven’t got better. I come up with two important factors, there is less time and the projects are more complex. Because tools we use today are more power... |
In development, what is the best way to manage delays? For example, you're doing a task, new requirements come in/something which further steepens the learning curve of something that must be learnt right there and then, and you need to communicate this to the PM/manager.
What is the most effective way of doing this?
|
I'm working on a project where our dev team gets the specifications from the business part of the company. Both the business management and the IT management require estimates and deadline projections, as they should.
The good thing is that estimates are mostly made by the actual developers who get to do the required f... |
While browsing my code in a weakly-typed language I was seeing that I've trained myself to use identity (===) where logical. Then I came across a greater (or less) than or equal to (>=), and it made me wonder... why is there no "greater than or identical to"? I suppose it would be >==. For example...
5 == 5 // true
... |
What is a good growth strategy for hash tables? If the number of elements exceeds the number of buckets, I increase the number of buckets with the following formula:
n = int(n * 1.618033988749895) | 1;
Does that sound sensible? (The | 1 part makes sure I get an odd number.)
|
I have a structure for storing item properties on SQL Server:
ItemId PropertyId Value
1 1 a
1 2 b
2 1 a
2 2 5
Currently there are over 130000 items and 10000 properties and the numbers are growing. Current row count is a little over 15M. If I created a pivot tabl... |
I love programming in languages that seem geared towards hardcore programmers. (My favorites are Python and D.) MATLAB is geared towards engineers and R is geared towards statisticians, and it seems like these languages were designed for people who aren't hardcore programmers and don't think like hardcore programmers... |
I am a teenage hobbyist in high school, and I mostly release my software as open source; therefore I have little experience actually selling software, let alone in a specific area -- Android phones.
Now, I have received requests from several users of one of my applications (basically, an advanced calculator) to create ... |
I know something about Pascal, Mathematica and Matlab, but I dont have any idea about C,C++,C# languages.
I want to learn one of the languages that they they are fast and exact to compute some arithmetic functions for large numbers(for example larger than $10^3000$). I asked somebody and he said he used C++ and he said... |
What is the platform independence really mean?
What are the criterion to call a language platform independent ?
Are cross-platform and 'platform independence' same?
(This may be a question for self study, but i would like to hear from experts from Stack overflow. There are lots of definitions and views regarding it o... |
At work now I had an argument with co-worker, because I made a page that he feels is too generic.
The page has 3 modes (simple, adv and special) - it has to work like this, because we don't choose how the specification is written. in each mode the page looks different(the changes are not big - it shows/hides 5 text fie... |
I have a situation where we on a regular basis need a freshly installed "virgin" Windows installation to do various work in isolation on, and building one from scratch every time in a vmware instance is getting tedious.
Perhaps there are cloud offerings providing a service allowing to request one or more Windows insta... |
In my opinion, when I looked at JavaScript, it looked like not my cup of tea. When I came across jQuery, I loved it. I sat and watched Nettuts+ 15 days of jQuery screencasts, 1 year later and now I'm fairly confident I wouldn't develop a website without including jQuery's library.
I have never felt this has held me bac... |
I have a WinXP based laptop with pretty basic hardware configuration by today's standards. I am planning to upgrade to a WinXP based laptop with a lot better hardware.
The problem: My current laptop has truck loads of software like cygwin, perl, ruby etc. Installing each software manually is going to be pretty cumberso... |
My company (small, about 40 people across 3 offices) occasionally does "developer workshops" online where one of the devs hosts a presentation about some tech topic. It's not necessarily about our work, but just to help everyone improve their skills and understanding.
I've been asked to host the next one, and the topic... |
This problem is a re-occuring one in my experiences. That of the ability to learn from other people's experiences, and being able to share what I have learned.
Part of the problem of this learning process, is the dependence on experience.
If for example, you've never had many jobs cleaning up other people's code for ea... |
What is the standard way of describing how software products are released and the proportionate order of magnitude to which the changes relative to the software product are conveyed?
Is
Release
Update
Patch
Bug Fix
redundant?
or Is
Update
Patch
too terse?
As an end user I'd think that all bug fixes are patches... |
I was listening to a dot net rocks the other day where they mentioned, almost in passing, a really intriguing tool for learning new languages -- I think they were specifically talking about F#.
It's a solution you open up and there are a bunch of broken unit tests. Fixing them walks you through the steps of learning th... |
I just joined a (relatively) small development team that's been working on a project for several months, if not a year. As with most developer joining a project, I spent my first couple of days reviewing the project's codebase.
The project (a medium- to large-sized ASP.NET WebForms internal line of business application... |
There are no shortage of vague "Scheme vs Common Lisp" questions on both StackOverflow and on this site, so I want to make this one more focused. The question is for people who have coded in both languages:
While coding in Scheme, what specific elements of your Common Lisp coding experience did you miss most? Or, inver... |
I had a user ask me this question. We know that cars break down, but that's because of something physical (unless software is involved!).
I tried to answer that software is a much younger industry, but the user countered with "didn't the automobile industry become much more stable than and reliable with less people?".
... |
An airplane, as opposed to, for example, a website, is a system where any failure in certain systems is completely unacceptable, since errors in e.g. flight monitoring can cause the autopilot to malfunction and do a dive. Obviously, this doesn't happen since the brilliant engineers at Boeing and Airbus have checks in t... |
Note: This question is not about the "obnoxious BSD advertising clause". The New BSD license does not contain that clause, and is compatible with the GPL.
I'm trying to pick between the New BSD license and the MIT license for my own projects. They are essentially identical, except the BSD license contains the followi... |
I know there are some questions already here that are closely related to this subject but none of them take Ubiquitous Language as the starting point so I think that justifies this question.
For those who don't know: Ubiquitous Language is the concept of defining a (both spoken and written) language that is equally use... |
I was thinking that if all the users of a website are required to have JavaScript enabled, Is it ok to use obtrusive JavaScript?
I'm all for progressive enhancement, but what's the point when an advanced web application bounces users at the door if they have an old browser or JavaScript disabled?
We have a very slim ta... |
My boss has offered me a 25% share, in exchange on more input from my side, of a website ( a crawling engine in php and a front end using ajax ) I developed for him. What are the things I should consider in writing the contract so that my share is future proof?
|
I work in a large company, but on a just two man team developing desktop LOB applications. I have been researching TDD for quite a while now, and although it is easy to realize its benefits for larger applications, I am having a hard time trying to justify the time to begin using TDD on the scale of our applications. ... |
I've always wondered how do you find undocumented / private API ?
Example the Apple undocumented / private API, Play Station, Windows Phone 7, Win32 Kernel, Windows API, hidden callback, etc...
What tools do hackers use to find out about private and undocumented functions?
Where can I read about peoples' experiences... |
I want to sell software online and I need an easy to implement payment processing system. What I'm actually going to be selling is an activation code (one per purchase) that would activate the trial version of a product. I was about to use this one but I just found out that people without a paid email account (not hotm... |
I'd like to advocate the use of issue-tracking software within an organisation that currently does not use it.
But there's one aspect of their situation for which I'm unsure of what to suggest: their projects frequently receive informal verbal feedback or casual comments in meetings or in passing from a wide group of i... |
My boss has always told me that a good programmer should be able to ensure that the code he or she changes is reliable, correct, and thoroughly self-verified; that you should completely understand all the results and impacts your changes will cause. I have tried my best to be this kind of programmer—by testing again an... |
I'm working on making my classes unit-testable, using dependency injection. But some of these classes have a lot of clients, and I'm not ready to refactor all of them to start passing in the dependencies yet. So I'm trying to do it gradually; keeping the default dependencies for now, but allowing them to be overridden ... |
There are several almost standard tags used in comments: FIXME, TODO, BUGBUG.
Which other tags do you use and for what?
Are there any standards on using them, i.e. format (supplementing with date and initials), revising procedures, etc?
|
Unicode has maybe 50 spaces
\u0009\u000A-\u000D\u0020\u0085\u00A0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000][\u0009\u000A-\u000D\u0020\u0085\u00A0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000
and 6 line breaks
not only CRLF, LF, CR, but also NEL (U+0085), PS (U+2029) and LS (U+2028).
Maybe I ... |
I have decided to take the time out after work to learn Python. Python appeals to me because at work (Web and eLearning Company), I have to follow out very repetitive tasks like delete all these tags, rename all these tasks and even more advanced repetive tasks. Additionally it would be good for me to get an understand... |
I am looking to learn how to properly use, and implement, HTTP headers. What is the best resource or set of guidelines that I can use? ( especially ranges to detect download managers, etc) ?
|
I've been developing applications in C# / VB.NET for about 3-4 years (.NET Framework v2.0, 3.5, 4). I have also developed some command-line applications or scripts in C, and Python under Linux.
Sometimes I need to develop my applications in another languages, like Python, but the problem thing is that lots of those app... |
I have been interested in design patterns for a while and started reading "Head First Design Patterns". I started with the first pattern called the 'Strategy' pattern. I went through the problem outlined in the images below and first tried to propose a solution myself so I could really grasp the importance of the patt... |
My question is whether I should test code that I know will be changed in a short time. I'm doing TDD in ruby, and I often meet with this question. I'm interested about best practices about this, pro and contra. Thanks.
Update
Clarification: My question is basically how do you compare the 'cost of writing a test' VS 't... |
Test-driven development (TDD) is big these days. I often see it recommended as a solution for a wide range of problems here in Programmers SE and other venues. I wonder why it works.
From an engineering point of view, it puzzles me for two reasons:
The "write test + refactor till pass" approach looks incredibly anti-e... |
What is the trend like for the usage of cross-platform GUI frameworks right now? Are more people starting to use cross-platform frameworks (such as GTK+, Qt and wxWidgets) or are there more who use more platform-tied frameworks (e.g. Cocoa or WPF)? Is it more or less stagnant? Is it like a rollercoaster? What do you th... |
Im really aware of some benefits of using Hudson as CI server. But, im facing the problem to convince my coworkers to install and use it.
To put some context, we are developing two different products (one is an enterprise search engine based on Apache Solr) and several enterprise search projects.
We are facing a lot o... |
I heard Google has a giant private (internal) repository of all of their code and their employees have access to it so that when they are developing things they don't have to reinvent the wheel. I'd like to know more about it!
Is there anyone here from Google that can describe it in a bit more detail, or do you know a ... |
Can this position (Developer Advocate) be considered as a Software Engineering position in terms of interview questions they will likely ask me?
Anyone else been interviewed for this position? I am just trying to gauge what they'll ask me for Developer Advocate position. Thanks.
EDIT: This is just the first phone inter... |
Like most people, I think of myself as being a bit above average in my field. I get paid well, I've gotten promotions, and I've never had a real problem getting good references or getting a job.
But I've been around enough to notice that many of the worst programmers I've worked with thought they were some of the best... |
In every industry there are two verticals Product Vertical and Service Vertical, so my question is:
How does design approach changes while designing Software for Product Vertical as compared to developing Software for Service Vertical ? What are the pros and cons for each case ?
Also, in case of Product Vertical,
H... |
I work as part of a team on an existing application that has no inline documentation, nor does it have technical documentation. As I've been working on various bug reports on the application, I've written a sort of breadcrumb trail for myself - bug numbers in various places so that the next developer can refer to that... |
Background:
I work at a start-up company, where one team uses Virtual Machines to connect to a remote server to do their development, and another team (the team I'm on) uses local IIS/SQL Server 2005/Visual Studio installations to conduct work.
Team VM is located about 1000 miles from Team Non-VM, and the servers the ... |
As we all know by now, XSS attacks are dangerous and really easy to pull off. Various frameworks make it easy to encode HTML, like ASP.NET MVC does:
<%= Html.Encode("string"); %>
But what happens when your client requires that they be able to upload their content directly from a Microsoft Word document?
Here's the s... |
If you were going to set up a Email Alerts for the customers of your website to subscribe to, what rules of etiquette ought to be followed?
I can think of a few off the top of my head:
Users can Opt-Out
Text Only (Or tasteful Remote Images)
Not sent out more than once a week
Clients have fine-grained control over what... |
I am a software engineer that's had positions programming in VBA (though I dare not consider that 'real' experience, as it was trial and error!), Perl w/ CGI, C#, and ASP.NET. The latter two are post-undergraduate, with my entrance into the 'real world'. I'm 2 years out of college, and have had 5 years of experience ... |
What is the current "standard" for setting up a development environment that supports remote collaboration as well as secure version control?
Considering a virtual dedicated solution with vm for a web layer and a data layer, using VPN for each programmer. We're a small start-up that do both Microsoft and open-source de... |
I'm developing a JavaScript application that uses several open source JavaScript projects. All their licenses have a phrase like "You must give any other recipients of the Work or Derivative Works a copy of this License". Does this mean I need to make a massive HTML comment at the top of my webpage with all the licence... |
I have a lot of MATLAB code that needs to get ported to C (execution speed is critical for this work) as part of a back-end process for a web application. When I attempt to outsource this code to a C developer, I assume (correct me if I'm wrong) few C developers also understand MATLAB code (things like indexing and mem... |
I've been working as a freelancer for about two years in vWorker. Any person can visit a coder's profile, and see in how many projects the coder has worked on, (if the coders allows) see how much the coder obtained in each project, ratings, feedbacks, etc.
Would be good to include a freelancer account in your Resume / ... |
Which is the most difficult CS subject/theory that you studied but important to the field? And the reason please?
|
I mean, there are really useful libs that can solve problems when you are stuck and do not know how to solve this or that with your knowledge of programming language you use... For example, Boost for C++ or JQuery for JavaScript or Spring for Java... They solve problems in seconds and you do not really care how they di... |
I'm developing a Driver Safety Monitoring System which is kind of small software which would be implemented inside a car with connections to few cameras.
What I want to know is to implement this software inside the vehicle what kind of computer can I use?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.