instruction
stringlengths
34
19.9k
I'm a maintenance programmer, and I work with a rather large list of technologies on a monthly if not daily basis. For example I'm competent (obviously not expert) in the following languages: Java (including J2EE) C# VB6 ASP Classic When I go to work on my resume, how many of the technologies should I list? It seems...
The closure feature is widely used in JavaScript and make it quite difficult for programmer who was used to program in a no-closure language. So what is the best practice about using closure and how to avoid shooting yourself in the foot.
For a small start-up with only one or two programmers, is it possible to implement agile methods like Scrum? If NO, what is the minimum team size required? I guess Scrum needs few programmers to be onsite as well? Edited ** I think the Agile methods are meant for team collaboration and improve workflow so a single ma...
Can you please explain neural networks in simple words with an example?
French is my native language and I just realized that the # in C# is the same character as for the diese music character that raises a note by a half tone. Also, As I made my music elementary class in french, I did not realized that the C was also a musical note, as in french we use do. With a little searching, I notic...
Unfortunately most of my work is internal -- I was toying with the idea of a small web demo to give the company better insight. What do you think?
I create three folders in the Project Explorer of any IDE that I use. I name them: App Layer, Business Layer and Data Layer. The App Layer holds all the UI stuff, the Business Layer holds all the classes dealing with business logic and the Data Layer holds the classes for DB connectivity and queries. I am new to MVC pa...
I have like 4 or 5 computers now, and I need a better system for syncing everything. I use git and github a lot to sync my files for programming projects, but then there are databases, .bash_profile files, bash scripts, etc. Sometimes, instead of syncing files, I just ssh in from one computer to another. But this is ge...
In the excellent http://artofunittesting.com/, i saw recommendation to keep logic out of unit tests. Does this hold true for functional/integration tests?
I've just been assigned a large project. The client has had multiple developers across different companies working on their (intended to be) large, MySQL driven eCommerce site. The DB schema is ...pretty good, naming is a bit rendundant but nothing real bad. The real issue is the code is in desperate need of "OOP-ifica...
This is just as much a db/programming question as an accounting/math question, so I'm actually posting to all relevant boards. I appreciate your patience in advance. Basically I'm having trouble wrapping my head around a payments ledger. My system has three tables: CHARGES, PAYMENTS and a PAYMENTS_TO_CHARGES. The i...
I know that engineering paper exists, but are there any companies that make programmer-specific notebooks for notes/pseudo-code/designs? Paper is my preferred way of outlining things, so the addition of a specialized pad to my list of tools would be greatly beneficial.
does Java have graphs as an intergrated data structure? How about Python? I was assigned to write a program, that solves the TSP (travelling salesman problem) via the GRASP (greedy randomized adaptive search procedure). I'm just familiarizing myself with GRASP, and I would like to have a good working data structure fo...
I don't know if this is a question, or a start of a conversation or even a completely irrelevant topic. Why isn't programming more standardised? Im really new to this and I find it hellish difficult to find the answer to even basic questions. Things like-- How do I add validation to multiple texboxes in asp.net c# wi...
Today our professor discussed with the class that what "class X or method X get deprecated" means? From what I understood, it means, for example, that we are not going to get that method or class in the Java API in the future so we better use another method or class instead of this class. Then comes another question, ...
I have been going back and forth in different approaches for designing the presentation layer for websites. Many people swear by one of the different CMS packages which is too constraining and inflexible. Many people suggest writing the HTML by hand which seems not to scale in the case of many pages. I have a new web ...
As a beginning Python programmer, is it a good idea to build and understand my own libraries before jumping to advanced 3rd-party libraries that contains the functionality I need? Some projects (e.g. web frameworks like Django) are probably too large for this approach. But other projects (e.g. Web Crawlers, graph libra...
I see that many managers or (even CEOs) running an IT company do not perform as well as those who have IT background. If I may take an example (without judging or pointing fingers), Microsoft's current CEO is one among many. I also see this in some smaller organizations. Should a manager (or CEO) in an IT company have...
In the making of a programming language, is it wrong to copy features and ideas from other programming languages? If it is not a problem, why not? Is it possible to license and copyright these things?
Say you're building an FSM for something like a game and you've got states like: MainMenu Options SinglePlayer MultiPlayer Your state diagram might look something like this: Now say you have a shared state, DevConsole, (shows the console when tilde is pressed and receives KB input etc. I'm sure you've seen it before...
Often people talk about cross-platform compatibility, but is it possible to write such "universal code" that would work both in browser, in desktop, on opengl, on webgl, and on html5 canvas-object? I'm thinking about writing a c-to-javascript compiler that would allow running desktop applications in browser. This utili...
For background, we are doing desktop engineering applications, with an AutoCAD like UI, something similar to etabs. One thing that really bugs me is, is there any need to hire the very best developers? For starters, we are experiencing great difficulties in recruitment; most resumes we see are either doing simple CRUD ...
It is really frustrating to find that every other open source project's source code and documentation etc., follows slightly or hugely different directory structure and naming conventions. How do I quickly orient my self to the directory/naming conventions? Get to the overall architecture of the app without going t...
I'm used to version control, in particular I currently use Mercurial. I have some doubts about how to make it work in large teams, where there is a good probability of having more people working on the same file. Let me make an example with Mercurial (but any decentralized system will be more or less the same). Say we ...
Imagine that there is a project to be completed. This project involves three parties: client, a development organisation (a one that you work for), and a design agency. The design agency is a subcontractor of the client. The role of the design agency are largely responsible for doing styling; however in the past these ...
I've a simple question about the terminology used in the Delegate pattern; Let's say I create an object that will be responsible to download something from the Net and when it is finished, will call me back with the result. I guess we can call the downloader object the "delegate", since he is doing work on the behalf o...
The question is based on this issue in Chromium. It is marked as Won't Fix. Do you see any reason to block a local html file from accessing another local html file located in the same folder?
I am curious; can Java be referred to as a managed language? I am mainly thinking about the Microsoft model when it comes to unmanaged versus managed code (say native vc++ to C#). With the similarities between C# and Java as high-level languages, is it correct to call Java a managed language as well?
There is a .NET application built using F# (the core part, as a DLL) and C# (the GUI part, using WPF). What is the best way to package it and to make an installer package and what are the most appropriate tools to use, commercial or free? It needs to include F# redistributable package in my application package and to c...
I am the only developer in my company. I do programming (in ASP.NET 4.0, jQuery and SQL Server 2008) and maintain the database and web server (win 2008 r2). I enjoy the freedom of implementing what I like at the same time I feel I could be doing everything in a bad way. I don’t use any SDLC diagrams not any kind of me...
I am starting a new project using Eclipse under Linux and I am looking for a UML 2.x modeling tool not just a diagramming tool. Do anyone has experience with UML plugin for Eclipse? Does it support all UML diagrams? Do you recommend another modeling tool? If you have been in a similar situation, what did you end up do...
I am about to graduate from college with a Masters in computer science. I have a couple of offers that I am considering and to me, the biggest difference between the two jobs comes down to one thing - how important is it for a recent grad to be part of a team of software engineers? Will it help me grow more in terms of...
I have read some related questions on this site, including: What language should I seek to learn if I would like to develop for Windows and How to start programming in Windows but feel that my situation is slightly different and I have a few other questions that I would like some opinions on. I'm a mature student doing...
In what situation should I use a Private Set on a property versus making it a ReadOnly property? Take into consideration the two very simplistic examples below. First example: Public Class Person Private _name As String Public Property Name As String Get Return _name End Get ...
I'm trying to figure out how to do roles/permissions in our application, and I am wondering if anyone knows of a good place to get a list of different permission-based authorization systems (preferably with code samples) and perhaps a list of pros/cons for each method. I've seen examples using simple dictionaries, cust...
Why is writing code when you encounter a tricky problem considered "bad" programming practice? And why is thinking a problem completely through on paper or in your head before you write code "good" ? From what I've been working with, I'm able to see problems in multiple different ways or special cases I didn't think of...
My employer is hiring a programmer - more specifically, I am interviewing and selecting the person who will fill the position. The best candidate right now is far more qualified than I am, older, and a lot more experienced. Other people I've talked to have said that hiring someone more qualified than myself is a really...
Our team of developers are going to start holding monthly meetings for the purposes of cross training and knowledge improvement. We're looking for ideas for topics to discuss. We've already made a list of some obvious ones, such as discussions/training on specific applications, proper usage of TFS for source control,...
Sorry for the very abstract and uncertain question, but I guess if I could ask it better I would have answered it myself. Here is the thing. I am getting more and more interested in FPGA. However, it is hard to tell where I should start off. What I want to do is to write a simple application that listens to UDP packets...
I have some experience in object oriented programming languages like c# or ruby. I know how to design a program in object oriented style, how to create classes and objects, and how to define relations between them. I also know some design patterns. How do people write functional programs? How do they start? Are there d...
Of course one big pro is the amount of syntactic sugar leading to shorter code in a lot of cases. On http://jashkenas.github.com/coffee-script/ there are impressive examples. On the other hand I have doubts that these examples represent code of complex real world applications. In my code for instance I never add functi...
What's the best way to programmatically create a header file for another project? Here's the specific use case: one program fingerprints the device for discrete information like version number, id string, etc, and then creates a header file populating static structs/program constants. This header file is then consumed ...
I always struggle in abbreviating variable names. Is there any standard for abbreviating variable names?
I recently got into home-based hours-based programming work and one of the problems I am having is that deadlines I say to my clients are not often met. Some factors come into play: I run into a coding problem that requires research time, which adds a couple of time to my specified deadline. There are times when my in...
I'm wondering what's the best way to add copyright/info into source for a client. Normally I do projects for myself and release them as GPL however I'm working with a client and not sure how to give them the source. Would something like this be correct? /* Package: Project Name File: filename.php Author: My nam...
I am preparing the creation of a dot net user group. One of the step is to have a website to : Exchange and discuss between members, using a forum (or just a mailing list?). Share a common calendar Have a survey ready for its opening (asking people what they are expecting) Present activities to visitors Be a showcase...
I joined the company currently I am working on as a fresher. Due to the limited number of skilled people in GIS software development, and since I was among one of them I was directly recruited as a Project Manager. I was quite conversant with Java and GIS, and I have done self motivated research on location based servi...
I am going through training at my new job to use good object-oriented design with a 3-tier programming style. My supervisor says I have a design problem with my code: class Program { public static void Main() { UserInputValidator Validater = new UserInputValidator(); int logSelected = -2; ...
I am asking about this git branching model or workflow. I really like this. It strikes me as very intuitive and productive, but what I am asking for is whether there are any flaws or negatives to this approach that are not yet clear to me (coming from another world where ClearCase ruled the day). (You don't need to ans...
In the company I currently work on, we've noticed that sometimes, some stories are bound to each other (as in too coupled). This might be that they belong to the same overall feature, or that they're different features but there are some of them that need to be finished first in order to continue with the next ones, et...
I'm having trouble working out the correct architecture for the following task. I have a GUI in Windows Forms that contains a ListBox, listing certain architectural layouts. One an item in this list is selected, a custom Control displays an interactive visualization of the selected layout. Drawing of this interactive d...
Scrum's definition says that it should be done one story at a time. But, if the team is big enough (say 6+), there are some times where taking just one story is kind of questionable, and it is even more if there are several small stories. So, sometimes in the team I'm currently working with, we might tackle two stories...
We have a very big project that includes several applications that acts as the base for different clients. Every client has its own personalization of the product, different milestones, different requirements and so on, and thus each project will evolve independently based upon its own needs. The core of the project, i...
I started to work freelance just a couple of months ago. My first client asked me to create a web app, to improve his business. I made a little specification about what i was able to do and also an approximation about how long it will take to prepare the application. We just have some no formal agreement where i told...
I'm writing some OS software just for funsies, and it's licensed using MS-PL (ie, do pretty much anything you want with it). It's a project from which I'm using many different sources (lots of personal reading/research going into it) and I'm crediting the original book/writer in the comment header(s) of the files as a...
I am a freelancer and I earn my bread and butter by helping others write better java-script code. I have good experience with most of the JavaScript frameworks around. I am wondering if it is worth for me to invest time in learning coffeescript. Who should learn it and who need not ?
I've an idea for a smartphone game app. I want to make sure nobody has made an app like this before; how can I check that? I don't want to remake something that already exists now.
I did some research on developers in my area. I was mainly interested in their products and the kind of tools they used in building them. I want to make this information public, but I was just wondering if it is a good idea. What I mean is, if the developer used Apache, MySQL and PHP and I made this public, does it mak...
This is a sister question to: Is it bad to use Unicode characters in variable names? As is my wont, I'm working on a language project. The thought came to me that allowing multi-token identifiers might improve both readability and writability: primary controller = new Data Interaction Controller(); # vs. primary_co...
I've written a PHP framework and a CMS on top of the framework. The CMS is dependent on the framework, but the framework exists as a self-contained folder within the CMS files. I'd like to maintain them as separate projects on GitHub, but I don't want to have the mess of updating the CMS project every time I update the...
Basically how do you find out which could be your worst or best case and any other "edge" cases you might have BEFORE having them and so, how do you prepare your code for them?
When I used IoC Container in my last project, I ended up with anemic entities and most of my business logic in Stateless Services. I have seen projects written by other developers that utilize "Inversion of Control" and they are always "Anemic". Since "Anemic Domain Model" is anti-pattern, is it possible to use IoC and...
Everybody knows that well-documented software development leads to success. However, it usually means that not only plain text but also binary content will be involved in the document, such as a UML diagram. And I've heard many people say that. The version control system is not the appropriate place for the binary file...
I've made two "complimenting" projects. These two projects are stand alone, but are almost designed to be used together. They are both fairly small projects as well. I'm wanting to host the code on GitHub, but I'm not sure if I should use two repositories or one for this. What do you think I should do?
All programmers have their style of programming. But some of the styles are let’s say... let’s not say. So you have code review to try to impose certain rules for good design and good programming techniques. But most of the programmers don’t like code review. They don’t like other people criticizing their work. Who do...
Is it appropriate to release incomplete open-source firmware, or in other words, to release only GPL software but not proprietary software source code? How are non-open-source programs, in compiled firmware for a router/embedded device, allowed with the open-source, Linux-based operating system and other GPL software? ...
If I take GPL code and modify it, does it have to still be under GPL?
I have a project that I created under GPL (I am copyright holder). The mistake I made is I deciding to go closed source, in doing that I removed the open source download access and removed the project from sourceforge. A third party came in and recreated the project on sourceforge (under the same name) with the last GP...
I don't have copyright licence from local government. How can I use GPL? As far as I know a step to apply GPL is to add the copyright notice: Copyright XXXX shabab haider... What shall I write in this section? Am I eligible to write such thing? Do I have to redirect the copyright to free software foundation or somethi...
I have read quite a bit about the Go language, and it seems promising. The last important bit of information I am missing before I decide on spending more effort on the language is: How much money/man power does Google or other companies invest in the development effort? If this information cannot be provided, do you h...
Often, many decent languages just won't get popular because of the chicken-and-egg problem where a language lacks resources (books, tutorials... other than for some basic language documentation), tools (IDE support, debuggers), libraries (other than for some kind of small standard library) and very few people have adop...
Go seems to be made for doing server side stuff for the web. What could I do if my boss suddenly dictated that he wants a Windows GUI for a Go application?
I see the terms "declaration," "prototype" and "symbol" thrown around interchangeably a lot when it comes to code like the following: void MyUndefinedFunction(); The same goes for "definition" and "implementation" for things like this: void MyClass::MyMethod() { // Actual code here. } Are there any distinctions b...
Since source code license is protected through the Copyright Law (Berne Convention to be precise), and all copyrighted material will be in public domain for certain number of years, depending on which country. Will a copyrighted source code, closed or open source, be in public domain once its copyright expires? For cl...
With all the web2.0 hype and webapps being all the rage, the only advantage from a corporate POV that I can think of webapps having is that it is easier to service your user base: upgrades become easier among several things. It's just that the browser is not a good platform. I've been mulling this over for a while now....
In the Q&A section of this talk, Douglas Crockford says that jQuery doesn't scale as well as some other popular libraries. What does he mean by that, and what is it about the other libraries that makes them more scalable?
Why will anyone even attempt to write a programming language? It seems to be a tedious task and the alternative (simply using an existing language) seems to make much more economical sense. Microsoft may hire people to write .NET because they have too much spare money to burn. But why will anyone else write a language ...
Does anyone have a suggestion for digitizing + OCR'ing a printed corpus with images? I have 1,200 pages of text sprinkled with essential photographs. Assuming I have perfect scans of the pages, what are my options for preserving the layout of the original text and allowing me to feed this to a program?
Seeing that so many of my friends are unemployed, some of my frinds and I are planning to create a small software company. What are the basic things we should know and do? Are there things specific to running a software company that we'd need to be aware of?
I have my ideas, but I always feel that I'm overly pessimistic. So I'd like to hear more opinions. How much time do you need to start coding using a new framework so that your code is production ready and not become a support nightmare later on for: Say large scale frameworks: ATL/MFC/STL/WTL/.NET/COM/BOOST And small ...
Another programmer wants to subcontract me to write, test, and document code. If anyone has nuggets of wisdom they could share regarding the business arrangement, I sure would appreciate the advice. My present plan is to go through specification and break it down into fixed-price deliverables, with the definition of ...
For a fresh graduate with quite a bit of development (mainly web) background - what is the easiest way to break into the security field? Are certifications a necessity? Is it possible to get intern jobs doing this kind of stuff? Thanks
After a few years writing good ol' straight, archaic, homely C/C++, I'm finally going to give in and learn .NET. I'm looking for the best way to become .NET-competent quickly. I use VS2005 C/C++ Express and I see there's a CLR choice in the "new project" wizard. I think that must be a way into the world of managed code...
I am wanting to re-write my login scripts for clients websites to make them more secure. I want to know what best practices I can implement into this. Password protected control panels are in their abundance, but very few seem to impliment best practices in terms of code writing, speed and security. I will be using PHP...
I am thinking through how I will use JavaScript for a project which is just in its beginning of coding. I am not an expert in JavaScript, but I recognize it as a very important part of the site so I have a few questions: I often see projects have 1 huge javascript file which handles everything. Is that for the purpos...
I see a lot of companies such has ekmpowershop, volusion, eshops, prostores and so on that give customers power to build and customise their website (in detail). On the other hand I see companies such as RedTechnology (http://www.redtechnology.com/) that build eCommerce applications for customers. I had a look at How t...
I'm currently designing a protocol for internal use, so it doesn't make a huge difference in this particular case, but it got me wondering: Is it better for a method to accept a single object of a specific type, or an array of objects, with the documentation specifying the type it will contain? Obviously the array allo...
Is something like DRY a design pattern, a methodology, or something in between? They do not have specific implementations that could neccessarily be demonstrated(even if you can easily demonstrate a case NOT using something like KISS... see The Daily WTF for a plethora of examples), nor do they fully explain a developm...
My Company is developing a web application, similar to GMail or Remember the Milk. We are on the verge of releasing the source code under AGPL. We are just afraid somebody will take the code and set up as a competitor. What can we do to prevent that? We were thinking to keep the code that powers our API closed, as it i...
In my answer of the question about what are the important points to consider when starting your own company, I mentioned the fact that when the customers pay per hour of work, there must be a way for them to be sure that you don't make them pay for more hours that you actually spent working on a project. But now that I...
I believe that I read somewhere that Google has a rule of thumb that an excellent developer is around 300 times more productive than an average one. Does anyone have any rules of thumb used by large companies or maybe there are even some empirical studies on this?
Hey, I'm a Junior Programmer working at a company. I just found out that they've been releasing a debug build of their product to clients for the past four years because the release version is broken (and has been for several years). My initial reaction was to be aghast, and I still am, but is this common? Is this not ...
I was talking with a friend about developing a mobile app (android/iphone) but I've never messed around with mobile app development code before. My friend flippantly told me that I don't "need to know mobile app code..." because "there are converters out there that convert your code to mobile app code." My question i...
I was wondering what are some really tough books on programming that would make me think. I'm talking about low level languages such as c etc and algorithms, points, functions etc. Thanks ALot.
We are looking to centralise our Integration in our company and I'm wondering what sort of solutions other have for this and what the best way to approach it would be. At the moment we have different types on integration running different lanuages, different frameworks on different servers so we are looking to move the...
Recently, Here at the company, more than one programmer was appointed in charge for a LightSwitch(C#) software development project and immediately there was a need of some sort of source control/sync. We have never used Team Foundation Server but we'd gladly use it if it's worth it. Is it the right tool to use for syn...
I'm currently in the process of redesigning parts of a large and complex application server to allow it to be distributed across multiple machines. I've been asked to provide a prototype of the redesign in a relatively short time period. I don't think it's possible to create a prototype of this; the changes are in exis...
I almost always choose the Microsoft stack over anything else because of Visual Studio, the available tools and how easily I can get started programming with a particular new framework. Please, that was only an example; it may be other stacks for other people. I am not building real time, mission critical apps where a ...
We must have all come across them - developers that have been around for ages and have a fantastic domain knowledge and yet they fail to share that knowledge with their team. The team desperately needs to share the knowledge, but they can't seem to pry it out of the hoarder. In what ways have teams successfully solved ...
We have a project here in my company of developing a new CRM. It's, basically, a big CRUD, with sub-CRUDS, with various details, such as, some users can do that, others don't. We will develop the system in PHP with Symfony. Developing is easy, but we're having some difficulties in the analysis part of the job. We have ...