instruction
stringlengths
34
36.1k
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 ...
I'm working on a project at the moment and I'm currently looking for some sources regarding creating GUI mockups. In my case, I'm creating basic diagrams with the intended layout of the design to ensure it will work correctly and consistently. What is this called? I've seen various names for it, including: GUI Prototy...
There's a lot of good idioms promoted in modern C++. These include RAII and elegant use of boost or STL or a std::algorithm to solve a given problem. Just like you can write C in any language, you can certainly write C in C++. However you can write really good modern C++ code with the right subset of features. When s...
I often hear co-workers saying to each other, "That's a horrible, horrible hack." What I can take away from that is that it's not good. When I asked them if it works they say "yes, but it's not good". Does that mean it's not a good solution? How is a solution bad if it works? Is it due to good practice? Or not maintain...
I have been working (alone) on an open-source project without using any sort of formal version control. I recently started using Git and GitHub for this project and am wondering if it is possible for me to build a code/commit history based off of the archived, older versions of the code that I have. Development thus fa...
For instance if I had only ASCII characters and then switched to Unicode now I have to consider special characters, and bigger strings or chars. What else along these lines should I be considering? I'm assuming a Unicode string contains special characters as well, but other than that, what am I missing?
I am starting to use the LOCAL scope in ColdFusion 9. I am trying to figure when to use it and when NOT to use it. Can you tell me the advantages/disadvantages of using the LOCAL scope either way? Should LOCAL be used on every page, or just in functions? WHICH SHOULD BE USED? <cfset ImageHeight = 36> <cfset ImageWid...
I'm familiar with architecture evaluation methods such as the technical Architecture Tradeoff Analysis Method (ATAM) and more business-oriented Cost Benefit Analysis Method (CBAM). However, these methods are fairly large scale: they prescribe several brainstorming sessions, presentations, development of a host of scena...
Here is a plugin I wish to redistribute: http://plugins.jquery.com/project/TextAreaResizer I've written a Jquery plugin that needs the text resizer as a prerequisite. The license type says: License type: Simplified BSD License/FreeBSD License I did a bit of googling and it said you have to retain all license info, bu...
I was asked this in an interview test. I did okay on the test but didn't know enough to answer this question. I am curious to know what data structures I can use to query the data quickly. Basically the idea is there would be road sections (lines, made up of points) stored in some kind of data structure. It should be q...
I've currently inherited an application at work and to my dismay, I have realized that the user passwords stored in the database are encrypted using an in house encryption function, which also includes the ability to decrypt. So all someone really needs to do is copy the user table and copy the encryption assembly (any...
Given the Sony data breach and other events recently, is there any actual laws or regulation regarding how to store passwords? I think there are with credit cards, you're not allowed to store the 3 digit key or something. Is it illegal to actually store plaintext passwords without warning the user? Or it there a level ...
I have been asked to create guidelines for review CSS, JS and HTML. I know there are coding guidelines for JS but I don't know any about HTML and CSS. To review JS I will certainly follow those guidelines and mention them. But what about CSS and HTML? Apart from logical errors and indentation issues, are there any spec...
What are some pros and cons to learning functional programming before other paradigms?
In our company we have 3 teams working on different software. The level they are working on is very diverse from 8/16 bit microcontroller in C , via 32bit arm on C++ under winCE to PC software developed with C# and windev. The tools and procedures we all use are roughly the same, although some teams use VSS and others ...
I was recently encouraged by a potential employer to go out and buy a book and begin learning ADA. I generally find that starting out with a good book, then supplementing that learning with continued research on-line with reference as needed to the book is the best way that I learn. What books would you recommend to ...
Every time I read about Oracle programmers etc, I get confused. I don't know what exactly they do. From my understanding, application programmers need to develop the core functionality. The libraries they use might help in GUI development or database connectivity but the functionality that makes that application that a...
There are lots of great books and resources out there about managing new software developments, but very little that I've seen about managing ongoing maintenance of software systems. I'm not talking about big enhancements, I'm talking about the little 1 or 2 day bug fixes and updates that quickly accumulate once a syst...
I am looking for (common / abstract) templates and examples for the (end user) documentation of software. I especially need something for an "Installation Guide", an "Operation Guide" (operation / service / administration of the software), "User Guide" and "training documents". I have googled around, haven't found usab...
I am trying build a social media site, but I need a hands on senior engineer/architect to guide and assist me in the server-side development since I am a rookie. Technology (which I am familliar with) to be used includes Java, JAX-RS, Spring and Hibernate. Unfortunately, I dont know what other technology skills an engi...
What is the best practice to develop a visual component in Flex Hero? I do it like this: I consider a component has 2 "parts", the declarative part (the visual sub-components) which I define in the skin (just mxml) and the code part (event handlers...) which I define in an action script class. I load the skin in the ct...
Is it true that platform independency is more of a myth today? Because programmers look for efficiency and power over portability which have to be compromised to some extent when achieving platform independency. On the other hand architecture neutrality is welcomed because it provides a very powerful way to make a soft...
I often have to deal with customers or users which are reporting errors in applications. Most of the time their content is something useless as ERROR!!! x does not work without much more information. For resolving the issue I have to request every single detail of them, which often is more time consuming than fixing...
I'm pretty new to code review, and I feel often overwhelmed by incoming changes. I mean when there are serious code changes, coming from several developers I tend to accept everything without reviewing the whole, especially when I have lots of stuff to finish up. What are the techniques to help in being efficient in th...
I have read the WCAG documentation and I am confused. Does compliance to WCAG 1 AA preclude the use of Javascript?
We have a small team (2-3) of programmers writing a program with a lot of forms and dialogs. We have a problem where we cannot keep good consistency in what we write, or how we write it. The latest issue I've noted is that we have lots of places where we have a date range, and we use all kinds of wording to indicate t...
I have just started a new job as a front end web developer, this is my second day and I have just been handed quite a big project that involves lots of javascript which I dont know, this is leaving me extremely stressed (last night I couldnt get to sleep with worry) basically I got the job from the boss of the company ...
Our team works with a large number of different APIs and services, and we also have our own internal tooling and services we maintain as well. Right now, we do not have a good centrally managed system to list which projects we used a certain API on, or to attach documentation for all of our utilities/apis. I beli...
Today I was browsing through a book on SQL Server optimization and it seemed that a certain amount of the ideas were based on a linear model of storage. As SSDs have a completely different storage model, do they in any way change the game in regards to how one thinks about database tuning or optimization?
I'm tasked to use an API on a small embedded linux device. The use of the API is rather simple, but there are a gazillion of (face it, not documented) parameters to control multiple aspects of the codec. These parameters seem to be undocumented because they are not the responsibility of the codec supplier but core comp...
I recently stumbled accross this article from a few years ago. It argues that significant differences in the culture surrounding VB and C#, not the actual differences in the language, contribute to C# coders being generally more talented than VB coders. Obviously, that caused a lot of flame wars and the question of whe...
We're a client that recently hired a contract programming company for some fairly focused work (essentially writing 'scripts' to extend the functionality of a third-party enterprise application). We're trying to evaluate their performance on and the value of some work they did for us, but we're a little new to using co...
I have written an app for the computer in java, but i don't want to give it out for free. I only want to charge somewhere between $0.99 - $2.99, is there a website that i can upload it to, to do this for me. I am looking for something like the apple app store, or the android market, but for the computer. Does this exis...
I have a application which will be available in 4 languages: French, German, Danish and English. All the text in the app will be translated, but should the EULA also be translated? What is the common way of handling this? The lawyer has accepted the english version of the EULA and I assume all the translated versions s...
I'm developing mobile applications for Windows Phone 7. This application calls some web services and occasionally sends responses out via web services. I recently started looking into MVVM and noticed that, although it is suggested when developing applications in WP7, alot of developers say only to use it if its necess...
What are the pros and cons of outsourcing development and testing to two different companies? EDIT: Why do you prefer outsourcing development and testing to different companies or to the same company?
I'm finishing up a personal project in which I've implemented a library that I expect others may want to use. Without going into too much detail, the library provides a cross-platform interface for parsing a particular type of file, where none had existed before (at least in this language). The project was fun and re...
I'm just looking for some advice/best practice for this situation: We have a solution with a couple of web sites in it (one is a web site project, the other is a web application project). We have both of these sites set up to use our installed IIS (v7), as we have other projects that we need to access these via localh...
As a software developer, one of my main tasks is to keep complexity under control. However, in some projects, there is a moment when the complexity level grows so high that it reaches some kind of "no return" point. Past this moment, you can never return the project to an acceptable level of complexity in less time tha...
This article about application architecture design mentions "User Process Components" as part of the presentation layer. User process components. Your user process components help synchronize and orchestrate user interactions. This way the process flow and state management logic is not hard-coded in the user interface...
I've recently acquired a laptop with an Intel i3 CPU and an AMD/ATI 6300 card, running Ubuntu 10.10. How do I proceed in setting up a development environment that allows me to program the GPU? I assume I'll have to use OpenCL (CUDA is NVIDIA-only), but since I'm a novice with GPU programming, I'm asking the advice from...
We are internally debating in our team if we should continue to run our production boxes with logs turned off completely and just log errors and exceptions with log rotations. I want to know how everyone else logs info in their production environment and any particular strategy/tool that has worked well for you. Thanks...
I have been working as a maintenance programmer for a couple of years and am wondering if there is such a thing as a raise for maintenance programmer? I ask because responsibilities don't get wider, you're still doing almost the same things, maybe a little faster as time passes. If it's possible, then what would be th...
I'm reading about Algebraic Data Types (thanks to Richard Minerich I found this excellent explanation of the concept). While I think I understand the notion of sum types and product types etc., what I'm not quite understanding is how Algebraic Data Types are useful beyond specifying pattern matching. What other things...
My company has a suite of mature (roots go back 15+ years), computationally intensive applications (simulations) which we use to do consulting work. I work on the simulation/consulting side of the house, not the software development side. I recently learned about a particular feature of the architecture which concern...
I had an interview with a well known company. After completing the first round of interview, I was confident that I would be short-listed for the second round. But little did I know that my second round would be a disaster. The second round started and the interviewer asked me to tell him about my profile. Once this wa...
I'm not too, too far (I hope) from finishing a site. I want to have it reviewed with an eye to its accessibility. The site's job is to display streaming, up-to-the-10-second-period stock-option data. Does anyone know of a group or forum where I can post a request for a review of the site's accessibility? Thanks!
Developing iOS or OSX based applications typically requires knowledge of Objective C, since XCode is highly tailored to this language. Android, on the other hand, has chosen Java as it's preferred language for app development. Now, I know other programming languages can be used to develop applications on either platfor...
Are there any gotchas in contributing public domain code to an open source project? My understanding is that the existence of a copyright gives a project the right to enforce its license. And public domain code is, by definition, non-copyrighted. What I'm specifically curious about: If an employee of the US governmen...
General OO teaches us to encapsulate and best practices teach us organization. So we end up with re-useable self-documenting code that relieves us of any details regarding implementation. So, if I need to invoke the windows command line I use my command line class. class CommandLine { CommandLine(){} Invoke(st...
What was the single point of failure encountered when your company decided to replace the current processes with SCRUM? Can you give me some examples of things that have gone really wrong when a company tried to introduce SCRUM? I'd like to hear your anecdotes, something you experienced yourself, the big fail that you ...
My application has 3 shipping methods, the cheapest of which is free. The free shipping option is only available for orders totaling over $100. As soon as I built it, I thought of a way a user could easily circumvent this. Add items to the cart totaling over $100, then select your free shipping, then edit your cart to...
We basicly have project that always turn around the same pattern. But, it sometime happens that we have project that go absolutly at the opposite of what we usualy do. It become now more difficult to bid and give this bidding to a potential client. In harder case, there's sometime things which look very difficult to do...
Right now, I use Python for my quick scripts and prototypes (e.g. algorithms, my pseudocode is very Python-like as well). The oher languages that I am familiar with include Java, C, x86 Assembly and Scheme, and Python is pretty much the best for this among these in my opinion. Perl gets a lot of rep for this over and o...
Lately, I've been working a lot in PHP and specifically within the WordPress framework. I'm noticing a lot of code in the form of: if ( 1 == $options['postlink'] ) Where I would have expected to see: if ( $options['postlink'] == 1 ) Is this a convention found in certain languages / frameworks? Is there any reason the...
My company just recently invested in the Mono for Android tools for Visual Studio as we have a lot of .NET developers and were impressed with how powerful the monodroid tools seemed. After reading the ZDNet Post I was saddened to see that this project may be dead. Is there anyone out there who might know anything more ...
I work for a large corporation and I want to keep my skills fresh. I think contributing to an open source project would help, especially if I ever want a job at a startup. I have heard that large companies often own any development employees do outside of work. Could I face legal consequences by contributing to an open...
I am looking for a tool to manage requirements or features for a software development project. It will be used by a small geographically diverse team of 5-10 people to raise, discuss and track requirements. Consequently it will need: Support for multiple users Web-based Support a hierarchy between requirements, e.g. p...
I'm a programmer, and I'm pretty good at programming. I can easily pick up most technical topics such as Linux, Systems Administration, Databases and of course, new programming languages. I even dabbled with 3d modelling and wasn't horrible at it. However, I am awful at Graphic Design. I have no skill there whatsoever...
I'm in the early stages of development for a web application that has three developers (myself included) working on it. The project is, at its core, a web-based database that will be used by around 5,000 people. Its primary purpose is to track information about game characters while enforcing a set of rules and securit...
Dijkstra writes here: Besides a mathematical inclination, an exceptionally good mastery of one's native tongue is the most vital asset of a competent programmer. I do not understand the latter part of this quote. Can you please explain or elaborate? P.S. I have grown up in India. I speak Bengali at home; I spea...
The question says it all really. I want to provide a service but I do not want to store any of the data myself in a database. With all the recent news of hacking etc it seems to me that it is nicer that clients have complete control over their data. The problem is that the data stored is potentially sensitive. What I w...
If there are 20 bit columns (non-null boolean), is it better to explicitly hold them in an integer type (int32)? Or, will the underlying database merge them in a single integer? I'm using PostgreSQL, though. Generally, is using bit-mask in SQL databases kind of anti-pattern? Backgrounds: The usage of these bit columns ...
So my teacher tells me that it is very important to not encapsulate the program code and the graphical interface code in the same classes, But to keep them completely independent. Im currently writing an iphone game with a grid in it. to me it makes much more sense to Create both the graphical grid and the technical co...
At the moment I'm 23 and working as a junior programmer at a software service provider. While I'm really happy with my job and my colleagues, I sometimes would love to have someone who could tell me what is bad about my code (architecture and so on), why it is bad AND what could I do to make it better. As we have no se...
Imagine that your current workplace is a Java shop. There is a lot of built-up knowledge about the Java language and there is a comprehensive build and deployment process in place to handle everything in a smooth and Agile manner. One day, a project comes along that just screams out to be written in, say, Ruby. Only t...
Surely two people sitting together doing countless other jobs you would see the same benefits. Why has programming been singled out for this practice?
I am looking at how to justify changes to those who control budgets. For example if we have Enterprise Library 4 on some systems and the latest version is 5, is it worth upgrading? How do you justify it? Is it best to continually try to keep frameworks that systems use up to date. Or is it better to do a major lift eve...
This is a long story but I will try to summarize it as best I can. We are a .NET shop that writes software for a variety of different types of funds. For example, we write health claims management software, pension management software, 401(k) software and some other financial-type things. Now we are entering a new real...
I'm an experienced developer which quite some experience in meta programming. I just found my way to Ruby and want to understand more of Rails (and related) project internals. Even if I understand the high level concepts, it's hard to get an overview of those projects. I wonder how other people approach that problem? H...
I have a huge program that I have been developing for almost 2 years. It will probably go commercial in about 6-9 months, but seeing as it is just me developing it, I'd had almost zero feedback about the code (efficiency, maintainability, proper use of best practices, etc.). I would really like to have someone or sever...
I've got to dive into a very large PHP site and have my first client meeting today. All they gave me so far was the URL. How do you guys go about gathering/structuring/documenting and preparing for a new project in a PHP environment? What things do you ask for up front? PS - I know there are other general questions ab...