instruction stringlengths 34 19.9k |
|---|
The "canonical" idea is pervasive in software; patterns like Canonical Model, Canonical Schema, Canonical Data Model and so on, seem to come up again and again in development.
Like many developers, I've often followed, uncritically, the conventional wisdom that you need a canonical model, otherwise you'll face a combin... |
There are many security risks coming from having close contact to the hardware as opposed to using well-tested and proved APIs from high level programming languages. It is much easier to cause a buffer overflow in C than in a language such as Java.
What are the risks or vulnerabilities (e.g. buffer overflows) that ever... |
Where do we draw the line between delegation and encapsulation of business logic? It seems to me that the more we delegate, the more anemic we become. However, delegation also promotes reuse and the DRY principal. So what is appropriate to delegate and what should remain in our domain models?
Take the following concern... |
I've been using YADIF (yet another dependency injection framework) in a PHP/Zend app I'm working on to handle dependencies. This has achieved some notable benefits in terms of testing and decoupling classes.
However,one thing that strikes me is that despite the sleight of hand performed when using this technique, the ... |
We have developed several apps and published them on Android Market. We are now writing an app that another company will brand and sell through their own publisher account. The other company has no experience with Android Market or with Android development. I'd appreciate any insights from others who have faced similar... |
I heard recently an instructor mentinon that developing games was the best way to learn programming. Besides the fact that everything had to be created in code, he said you really get to fully experience and implement OOP into your programs. In other words everything you make in a game is a literal object both technica... |
Malware uses interesting techniques for hiding themselves from anti-malware software and more. They can "polymorph" themselves: practically change the code while it continuing to mean pretty much the same to the executing machine, making antivirus definitions invalid etc.
I wonder if there is anything (non-malicious) d... |
I have a webstore which sells components (it is a academic project) which looks like this. I have developed the same web application using following database methodologies:
MS Sql Server with Stored procedures and sql data reader
LINQ to Sql
DB4o using LINQ (Client/Server)
What features can I compare apart from the t... |
I graduated from college in Computer Science a year ago, and am now working at a small web development company (me and one other developer, plus managers, customer service and tester). Until just before I started, there was no source control system. We're now slowly starting to implement SVN, but the other (senior) d... |
I'm billed as the "Windows Expert" in my very small company, which consists of myself, a mechanical engineer working in a sales and training role, and the company's president, working in a design, development, and support role.
My role is equally as general, but primarily I design and implement whatever programming on ... |
I just finished reading the Ruby chapter of the book 7 Languages in 7 Weeks. Aside from some syntactic sugar here and there I can't really see anything which can't be done with C# with a similar syntax. I do understand both languages are inherently different, but my question relates to its usage rather than design.
Rel... |
I am heading into my senior year in computer engineering and have gotten a internship for this summer and fall. Since I will not be doing homework I would love to take this opportunity to get involved with an open source project of some sort. I am proficient with C, C++, Java, and Python. I am also reasonably familiar ... |
As the question says on the tin: Can I integrate software under Creative Common for commercial gain? I want to use Creative Common software (e.g., http://thrivingkings.com/apprise/) for some big clients.
|
What suggestions would you give to find networking opportunities or to network at user groups and other developer venues?
For instance, if you went to a code camp, would you try to network with other developers there? How would you go about doing it? Would you go up to someone you don't know at lunch and introduce yo... |
I've been in several projects using scrum now.
The length of the sprint review and/or retrospective has varied from client to client, from project to project.
Some of the reviews became too long (2 days).
Sometimes, I've lost focus while being in this long meetings and just wanted to go back to my safe and happy place ... |
Does anybody know the status of this C++ Inversion of Control Container?
Any alternative?
|
I am considering using the Delegate Pattern to get some data necessary for an operation. There are a few different pieces of data that the algorithm needs to run, but they all have default values that can be used if they aren't explicitly set.
If I were to use the delegate pattern, I would define an interface that defi... |
[Edit: Thanks S.Lott for the hints]
I'm developing a web service from scratch. The service could have potential of 10,000 requests a day. Actually, to be honest, requirements aren't that clear at this point of the project. What the management team wants is to build something and getting it working. However, it does hav... |
Here's my scenario with made-up names: A big company called Supersoft have announced that in about 3 months they're going to release an Android app called "Supersoft Metronome" (where Metronome is a fairly common noun). I want to call my new iPhone app (notice the other app is on Android) "Metronome" and I'm ready to r... |
I am currently working as a Web Application developer using .NET Technologies. I am interested in learning more about the technologies that I work with, but I am ALSO interested in a million other things... (including Systems programming, Networking, Game Development, Mobile Development, Computer Science topics, Math, ... |
When a project has reached end of life and is being retired, either because the technology is obsolete, a newer version of the program has been rewritten, or it no longer solves a problem that is needed to be solved, what should be done with the code? Should it be deleted, or kept for future reference?
This also appli... |
Hey guys I have this great idea for a web application, but I am unsure on how to develop it.
I know I need a team of people to make it, Developers and Designers, but where do I start?
Eventually I know I will need everyone, but for a startup, who are the people you need first, and who can you add on as time goes by.
So... |
I am learning C/C++/Oracle/Unix.
I am thinking of developing some application on my own, but I have no Idea what else is required.
If you take an example of C++. I have very basic knowledge of it (data types, OOP concepts, vectors, file handling, exception handling, etc). I am not an expert though. I have just read one... |
I have developed a small android app. I am planning to release it in Google Android market. What are the things I should be aware of before doing this?
|
The Boost Software Library is licensed under the BOOST License
Now, if you only use C++11, does this mean you're bound by the BOOST license terms if you use those parts of C++?
|
I work in a small IT department in a non tech company. My manager recently quit and they are looking for a replacement. I guess since I'm one of those "rare" developers with people skills, the director is encouraging me to apply
Part of me wants to apply but another part of me says no. The pay and ability to make a d... |
On some companies I've worked for, managers have spent quite a lot of money on it-security consultants. Primarily because they're afraid we're gonna get the source code stolen by a rival company.
However, as a programmer, I see it as a minor concern that a rival company would find the actual source code useful. After ... |
I think it would be a great idea if we had a regular expression search engine, but can it be done? It seems impossible since there's no feasible way of indexing such a huge amount of data properly and displaying results in the order of relevance from what I can think of.
I'm curious what the answer to this one would be... |
When people post code on forums they tend to change or blur out parts of their code. Probably because they want to protect certain parts that might be exploited if it ends up in the wrong hands, I guess?
But is it really necessary to do this?
Here are a couple of things I see a lot:
Renaming id's and class names i... |
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.