instruction stringlengths 34 36.1k |
|---|
I'm a .NET developer and mostly builds GUI's but of course also pure C# due to architecture and database level needs.
To me, developers of games in discussions often being simply referred to as "gaming developers". I find that a little too shallow and I'm curious what a "gaming developer" really stands for.
What wou... |
I'm currently in the process of developing a REST service that will be consumed by an iPhone app. Basically, the service wraps existing business logic. This business logic is written in c# and I'm writing the service in c#. From a purely curious point of view (not this project) my questions are:
What other languages a... |
We have a multilingual website in which a bug was discovered some days ago. It was displaying other language data in other language and also the mixture of data like English language was selected but it was displaying other language data as well in the page and vice-versa. It is doing it infrequently but is present in ... |
How useful are compile time functions? Personally I haven't worked in any language that supports them but they seem nifty in some cases.
For those who don't what I mean, a compile-time function is evaluated at compilation rather than at runtime,
so if you have for instance in your code
int i = Pow(4,34);
you could ... |
We are trying to develop a website that automate an organisation process. This company, let's called it Acme Limited, usually ask their clients to submit paper form and have the clerks to manually enter those form into the internal system. At the moment they have 60 clients across the state.
Now, Acme Ltd wants their c... |
When you begin a new project/function/object you mostly have an idea of the model you want to build. It can be based on the clients' wish, on your ideas for the app or whatever. In the middle you often realise that your model will not work. There may be new requirements, you didn't think of something etc. Then you have... |
If a prospective employer told you they "outsourced bug fixing because developers hate fixing bugs", What would you think? What might be your concerns?
|
Note: this is from the spring of 2008, thus ancient in rails land.
(The title for this probably isn't as good as it should be, I cannot think of a better one)
I am about to revisit a startup idea and my platform of choice is Ruby on Rails. I've also recently started re-reading the book "Enterprise Rails" which sugges... |
How should I keep up to date with the ever-changing Rails community? I have been trying to learn Rails off and on for a year now and the brick wall I keep running into is the fact that I'm trying to balance learning most of the Rails' community best practices and they keep changing direction.
For example, I obviously ... |
I have a bug in my application that I'm building. I asked a question on S.O. and one of the users asked me to post or send all the code to him so he could look at it.
I totally understand the request. It is valid and understandable. However, I'm having doubts on if I should. Obviously, I give him/her the keys to th... |
Historically I've been able to get away with making small changes to an in-house helpdesk system riding on a LAMP stack and just making a backup prior to editing.
This has no user acceptance / testing phase and I work on the live .php files directly.
However now the requirement has arisen that will require a bit more c... |
I was looking at Project Euler Problem 48:
The series, 11 + 22 + 33 + ... + 1010 = 10405071317.
Find the last ten digits of the series, 11 + 22 + 33 + ... + 10001000.
In Python I can do this with a single line :
sum((x**x for x in xrange(1,1001))
But the assembly equivalent of this would be 100 lines and a real chal... |
I wonder how many .NET developers have a working knowledge of CIL and where it has been useful to them.
In case you are missing my meaning, here is a simple CIL example to add two locations together:
ldloc.0
ldloc.1
add
stloc.0 // a = a + b or a += b;
|
My company asked me to set up a personal goal of improving time management. This means keeping up with time reporting, revising estimates and being responsive to email inquiries.
Of course, I have read books on the topic and have tried numerous systems. I just get absorbed in coding to the exclusion of administrative ... |
When drawing out quick class diagrams, I'm often at a loss how to represent classes that are used just to pass data around between various parts of the program. I've been putting them out in the middle of nowhere, so that other people can see what the class in the parameters/returns is. Is this the correct way to do it... |
I've done a google search on both of them, can't find much information.
I was wondering what is a logical subsystem and physical subsystem (in an object-oriented system)?
Also why would it be useful to keep the two separated?
|
I have heard of security firms who consult on the security of a clients systems. All of the people I know in this field are network engineers, but I know programmers get involved in security as well. What do security programmers who perform audits/consulting actually do? Do they literally go through the codebase looki... |
Possible Duplicates:
I still can't figure out how to program?
I'm graduating with a Computer Science degree but I don't feel like I know how to program
I don't known if you guys have super brains specifically for programming but I would like to know how you do manage to learn, understand and apply Java programming. I... |
There is a feature that has already passed acceptance testing, both internally and by the customer. It is a fully working feature. However, there is now a request to exclude this feature from an upcoming release. According to the customer, this feature should be removed because the users have not been trained on how to... |
Should you use "internal abbreviations/slang" inside comments, that is, abbreviations and slang people outside the project could have trouble understanding, for instance, using something like //NYI instead of //Not Yet Implemented?
There are advantages of this, such as there is less "code" to type (though you could use... |
I'm wondering if there is any benchmarks which can help to understand real-time characteristics (response time) of non-real-time software. For instance C# application on Windows or MSSQL Server.
I know that Windows is not real-time OS, however it does not prevent us to use it in Real-time system if there some addition... |
I have an application built in WPF and VB.net. It works on several Windows XP computers that I've tested it on, however, my animator's computer doesn't seem to like it.
At first, the program would work up to a certain point, where the program would play a video. However, as she was missing the codec to play the video, ... |
I started a project repo on codeplex and haven't publicly published it yet. I realized that the name I gave to it is not appropriate and would like to change the name of the project before publicly releasing it (they have a 30 day deadline). The name of the directory that hg clone needs, i.e., dirname in https://hg01.c... |
Consider a somewhat contrived model that goes something like:
class Player
{
public int Health;
public int Ammo;
public Weapon CurrentWeapon;
public PhysicalState State
{
get
{
if (this.speed <= 0.1)
return PhysicalSpeed.Standing;
/* and so-on ... |
I have a situation where I have three requirements:
Lazy initialization - don't create the collection until asked for it
Caching - keep the collection in memory on the object
Reinitialization - be able to reinitialize the collection when desired, instead of simply getting the existing results.
This is simply an optim... |
Let us say that person "A" mentioned an idea for a software project on the web (ie. in a forum). Person "B" sees this idea and implements it. Can person "A" claim ownership of the idea? Has person "B" done something illegal by implementing the idea that person "A" posted?
|
I'm a software engineer in an software development team. The last 3 years we worked for an internal customer on a new product. Now this product is finished we're going to work on major new features for existing products. For a particular feature, product management have guessed it takes 150 hours to develop. Together w... |
We are reviewing our JEE web application for some planned refactoring and one of the suggestions is to replace log4j with logback or slf4j
The team is not clear on whether we should do this - because currently we want to follow if it ain't broke, don't fix in this area.
Edit: I'm not asking for a comparison of the logg... |
I'm developing an ipad app for managing HR attendance,
so the idea is that the staff come to the center, choose their name from a table, and write down their personal id, for the time they come and the time they leave,
still evaluating for the requirements if they want the time automatically saved or the staff write t... |
As many of you know WordPress uses "secret key" like thing for every AJAX request. Making each request unique and also 'somewhat' secure (just a step ahead than nothing). How would I implement the same using PageMethods (webservice methods inside aspx page) in asp.net application. Some things I have already taken care ... |
What is the best development methodology for nurturing personal creativity? Why do you think it's better than others?
The methodologies can be agile, traditional or whatever.
|
We have the following setup
Current Solution:
Business Logic (Class Library)
Data Layer (Class Library containing EF,Web Services wrappers
etc)
WebProject1
BUT we now want to write another Web Project (Web Project2) which would be almost identical to WebProject1 except for the fact that it would alter properties ... |
I have recently heard people talk about code being "lambda". I have never heard of this phrase before. What does it mean?
|
I have a desktop instrumentation application in MVC. Currently I had 2 versions of the application, thus 2 views and 2 controllers, each having common code in a base class. The views react directly to events sent by the model, and the controller has a message queue for linking user actions to the model. Notably the mes... |
This all may come across very newbish, but I'm trying to wrap my head around designing a website that is thoroughly RESTful. I understand applying RESTful design to things like Users, Photos, Blog Posts, etc. because I think of them like "objects".
But, what about an "about us" page. What kind of resource is that? Is ... |
I am writing an MVC framework. I have a folder full of library classes, each are self contained, and could be ripped out of the framework and used by themselves. The only problem is that a few of these libraries (benchmarking, unit testing) display HTML to report results.
I am wondering, do I display this HTML in a vie... |
I've recently switched jobs. At my previous job, everyone wrote tests and we were all in a happy place. In my new role, I've been asked to setup CI and testing.
I'm experiencing some resistance to testing from some developers and wondered if anyone had experienced this and had strategies for dealing with resistance?
|
I've migrated several of my projects over to the git flow work flow, and I'm loving it. However, I haven't found a best practice that keeps things flowing as smoothly when working with a project in which more than one major version is maintained at a time.
Specifically, I'm not maintaining a "free version" and a "paid... |
I am starting a new role running engineering in a young startup. The stuff they have is in SQL Server / Windows. I get the feeling we should think about moving to an OSS architecture, main reasons being cost, the ability to test new tools on the fly as they come out, and integrate with leading technologies like RoR and... |
It is a way to take inventory of many cgi scripts and web applications in a Software Service environment. It will be a way of creating changelogs and to keep track of which customers have which programs and will use diff and cksum to notice, compare and identify versions.
It "takes inventory", but we actually have inve... |
I have only heard the term "design pattern" being used for object oriented code, and the GoF patterns include only OOP design patterns, but design patterns are elegant solutions for commonly occuring programming problems, right? There is nothing in there saying that they must be limited to OOP, is there?
I would like t... |
My .py files in a Codeplex (hg-based) repository don't show up with the nice syntax highlighting as they do for C and C++ when I browse the code on the web. Is there a way to change the syntax highlighting settings in Codeplex?
|
Recently I've been reading some blog posts regarding MVC and how it doesn't fit the web. I've learned about alternative patterns like the RMR Architecture.
I'm curious what other patterns people are using on the web besides MVC? Also, if there is a framework that implements the pattern, please post a link to it.
|
There are a number of both open and close source off the shelf solutions. For example Magento has an impressive list of sites that use them for eCommerce. There are also stories such as this (only link to last section) where an eCommerce site is developed from scratch with great success.
I'm wondering if there's an o... |
There's been a lot of talk in various blogs, forums and on StackExchange about the distinction between Mock and Stub objects (most of them specifically referencing the Rhino Mocks framework). These include posts from Martin Fowler and a chapter in Roy Osherove's "The Art of Unit Testing".
I'm currently looking at how ... |
There are a few similar questions to this one already. But mine differs enough to warrant being asked separately. I've written an authentication ASP.Net library and I'm looking for beta testers. I've posted to the forums I frequent, but they are not forums commonly used by .Net people. I've tried inviting friends, but ... |
My development team is in the process of 'going agile' and lot of people are looking at each other blankly, not really too sure what it means. All management are saying is 'start working agile' without suggesting any particular methodology so they're waiting to see if we can come up with something ourselves. Has anyone... |
I am creating use cases for my web application and I was wondering if a representation of the DB should be listed as an actor. For example a user can check his profile and edit it (assuming that he is logged in). The two use cases would be:
- User can view his profile
- User can edit his profile
Would the use cases the... |
I am looking for some information on encryption. Here's what I'm trying to do:
Get unique information from our customer (an ID or something)
Generate and encrypt some data on our side (using the clients ID)
Send this data to customer, and allow an application to decrypt (and decrypt only) this data using the ID sent b... |
I was wondering about performance issues when parsing a source file that is being edited by the user (for example, when you need to give a syntax highlight).
I think that the simplest approach is to parse every time the code changes, get the results, and replace the current code with the highlighted one. With large fil... |
I occasionally run into methods where a developer chose to return something which isn't critical to the function. I mean, when looking at the code, it apparently works just as nice as a void and after a moment of thought, I ask "Why?" Does this sound familiar?
Sometimes I would agree that most often it is better to ret... |
I've finished a project in PHP of 13000+ lines in Procedural Style [because I'm very familiar with that, though I know OOP], and the project is running perfectly.
But should I convert it to OOP? [because the world is busy with OOP ]
My code doesn't need any of the feature of OOP [encapsulation, inheritance basically..... |
I am fairly happy with my understanding of the .NET event model. I think I might be misunderstanding a small nuance of the system.
When I started out putting events into my classes I would use the standard way like so:
public event EventHandler<MyEventArgs> MyEvent;
This meant that anything subscribing to the event wo... |
I am a Biology student, who has changed my career to IT and have been working in the software field for the past 4 fours under the QA (auditing processes for ISO9001 purposes). Now I'm a Software QA Execute and have decided to increase my knowledge on QA. What are the next steps I can look for?
Are there any certifica... |
I've been wanting to build a full scale CMS application that will target certain career workflows but the obstacle that has been in my path is that I would need to sit down and fully learn the career in order to map out and build the application that will help or guide employers already in the environment.
This isn't s... |
Can anyone point me to reference materials on what companies may expect to pay for outsourced apps? I had hoped to find something in a trade publication or the like, but have only turned up two or three quotable articles with any sense of credibility. We are talking to a client about their first app (and ours) and, a... |
Someone told me that easiest way to 'destroy' a programmer is to prevent them from programming for a month or so. Is that correct? What should I do to make sure I stay in practice if I'm not in a position to program as part of my job?
|
What's your preferred way to implement/use vector operations?
vec1.dot(vec2)
allows to reuse vec1 but is hard to read for longer equations
dot(vec1, vec2)
A friend of mine prefers this as "dot" isn't a property of vector
vec1 * vec2
probably looks best, but not possible in all languages (e.g. Java)
|
I am developing a small application in .NET and am thinking of using XML to save the object model.
My first thought was to separate the model and the generation of XML by using the Visitor pattern. The class would walk the object hierarchy and create the XML. But then I thought about the Extreme Programming method and ... |
I have an existing ASP.NET MVC 2 application that is working well and is usually easy to maintain. I had a lull in development yesterday so I upgraded the solution to ASP.NET MVC 3 and everything appears to be working.
I've been researching ASP.NET MVC 3 and there are a number of improvements including the Razor view ... |
Is it ok to use a localized encoding (i.e. ISO-8859-15) instead of ANSI/UTF-8/some standard for code?
What when you have names that do not translate very well into english code? Or when your company and your customers are (and always will be) local and not international, like governments? And what about using special ... |
How many of you actually work out the exercises when learning from a book (any programming related book), I'm currently working my way through a C++ book and find that some of the exercises I feel I can complete rather easily I skip. Do most people do this? Or do they read the whole book and come back to exercises that... |
I've been programming for the many months.
What I've found is :
My team leader illustrates to me the project.
I start up with an empty project.
For many common tasks (like calling webservice, showing grid etc.), I either open my evernote account or my previous project.
I copy and paste the code and tweak it to meet my... |
As part of a refactoring effort or just ongoing development, a particular method or maybe an entire class may become obsolete in some sense. Java supports the @Deprecated annotation to indicate that there's probably a better way to handle the functionality in question. I imagine this is particularly useful in public ... |
I'm a new programmer and want to ask senior programmers (programmers who have some experience in the real world).
I do my work and after coding, my project gets completed but honestly speaking I don't remember the code, classes and frameworks name and their properties.
Sometimes even I doubt myself that did I made this... |
I'm going to start a little open source project with some friends from all over the world. As I know that one of most important things in open source projects is to help users use the project itself, I want to make some wiki/tutorials/whatever in different languages.
What are best tools or way to think/act in general f... |
My company has decided to use stored procedures for everything dealing with the database (because they didn't know of any other way besides raw SQL), and as the saying goes "When in Rome..." so I try to follow. Recently I had to add a hack fix that required grabbing a database value, and since it was a single value fr... |
I have a fairly simple folder structure where the main classes are in a folder, and any classes used by those classes are in a subfolder with the same name as that class.
/exampleClass.php
/exampleClass/usedByExampleClass.php
I am trying to come up with a simple autoloader for this naming convention.
So far, my idea i... |
If I want to learn TDD on my own, where would I start apart from the usual Google Search?
Are there any books that you would recommend or any method that you followed to learn it on your own?
I am a C# Developer if in case that made a difference.
|
Our team has been asked to represent our development efforts in a project plan. No one is unhappy with our work or questioning our ability to deliver, we are just participating in an IT cattle call for project plans. Trouble is we are an agile team and haven't thought about our work in terms of a formal project plan.
W... |
It is one of the most talked about features planned for Java: Closures. Many of us have been longing for them. Some of us (including I) have grown a bit impatient and have turned to scripting languages to fill the void.
But, once closures have finally arrived to Java: how will they effect the Java Community? Will th... |
What methods seem to work best to coax requirements out of non-tech business people? I am working with a team that’s trying to get a spec together for a project. Every time we have met and it comes down to expectations for the next meeting, we ask for the business people to bring back their requirements. They usuall... |
We have been discussing database deployment techniques today, having had a couple of recent failures in our current process and having seen situations where we would like to roll back a deployment but the old version of the application had never been tested against the new version of the database.
On one hand, there ar... |
I am fairly new to programming, I have studied in computer science for 3 years at college, but as you know, school is only 2% of what really makes one a fully-fledged programmer.
I have a lot of trouble understanding why people say language x is more efficient that language y. I only understand when it comes to pre-co... |
Say in a UML Sequence diagram, I am showing a call to the database using ADO.NET. Do I need to include the SqlConnection, SqlCommand, SqlDataReader object in the diagram? Is it just preference determined by the level of depth/detail?
|
Sometimes I come across something that doesn't entirely work right or just doesn't make sense to me and I often refrain from thinking it is a bug in the library or code I am using.
For instance today I discovered that Java's TrayIcon slightly alters some of the RGB values of the image it displays. It is not enough to ... |
Do you think that its a good idea when a junior programmer needs help to always jump in and try to educate them? Or will they ignore all the "teaching to fish" advice you give them and just focus on the "fish" you just brought them? Do you let them always figure things out on their own, knowing that mistakes are the be... |
We have a lot of documents associated with our software development. These include things like requirements, design documents, external PDFs, customer files, testing instructions, etc. Currently, these documents are scattered all over the place (wiki, "some place on the network", a local developers hard drive(!), an... |
Is it ever a good idea to hardcode values into our applications? Or is it always the right thing to call these types of values dynamically in case they need to change?
|
I was look for a good resource to learning SQL Server business Studio and in particular SSIS packages, any sugguestions?
|
Can anyone share any software/techniques they use when showing clients graphical elements, storyboards, elements, etc. for the web project being worked on? I would like to have a way that the client can log in and see updates to what is going on and see the elements that have been created over time of the project. This... |
When I was working on a programming project. I came across a problem where I had to store data in two different variables. The first one was a piece of data, and the second one was, well, another piece of data, and the order in which the information arrived really didn't matter.
So I had to make a choice: I could have ... |
I am starting to work with class libraries in my C# class. We were told to write code that can be used more than one time. Should I keep all my class definitions in one class library for the length of the term, or separate them by project?
|
I have to develop an application (in C#) that has to work with files. The application consists of two versions: a web version and a windows version. Therefore, the files must be stored on a place where both versions can access the files.
In both versions, the files can be edited and new files can be created.
I've been ... |
my map-like app loads data from google map API but it also loads some extra data - in the form of XML - from my server.
When the app loads it really needs only small amount of data to cover the currently visible area but there is a chance of 2% (aka conversion rate) that the user will interact with the map and more da... |
Is the synchronised keyword still required (ignore backwards compatibility, I'm thinking in terms of writing new code, today) or should we all be using the features available in the Concurrent and Collection packages?
|
When designing classes to hold your data model I've read it can be useful to create immutable objects but at what point does the burden of constructor parameter lists and deep copies become too much and you have to abandon the immutable restriction?
For example, here is an immutable class to represent a named thing (I'... |
I've got a coworker/manager/stakeholder who is very conservative when it comes to adopting new technologies. I completely understand why: we have a lot of internal expertise with Java, MySQL/Postgres, and so on, they're well-established, and there's lots of good support for them.
But technology evolves, and sometimes n... |
I'm currently working on user management for a project and while thinking about how I should design this I realised that there's really no standard in how these things look as it often vary a lot from application to application.
So what makes an great user management interface great?
What do the best ones have in comm... |
Do you spend your working hours learning new stuff, reading tech blogs, books on programming etc.? What's your opinion on it? Can an employer have benefits allowing developers to spend about 1-1.5 hrs a day on learning. Will it be repaid in future (with better productivity etc.)?
|
I am a fresher. My job is not very demanding of me when it comes to exercising my programming prowess. So, I have started to write code on my own (a simple space invasion program, chat application, etc). I will be completing some of these in a few weeks, but what i am worried about is how I shall get my code evaluated/... |
In the last interview I attended, I was asked to solve a puzzle where I was expected to measure exactly blah liters of water given two buckets with capacities - blah and blah liters respectively. I was unable to solve the puzzle in given time (~5 minutes).
The interviewer was a bit disappointed and said a programmer ha... |
I just joined a team who has been working in a project for over a year and a half,
there's a lot of docs to read (specs, requirements etc..) , and project's repository
is full of branches and tags also their are a lot of defects and bugs that need to be corrected , so i'm just kind of in a scary situation now.
I shoul... |
I'm creating a few closed-source applications on my own (no big company behind me) and am wondering exactly how to protect them. At the top of all the source code files I have this pretty basic copyright notice:
/*******************************************************
* Copyright (C) 2010-2011 {name} <{email}>
*
* ... |
A coworker was wondering this today: "Why is it that in our industry 'production' means 'final, deliverable product'? You know, like if a movie is 'in production', it means they're currently filming it, not that that it's done and audiences are watching it."
|
I'm curious as to how other people indent/break long jQuery chains, as I can never decide what is more readable (particularly when using .end() to "close" a block of methods e.g.
$(this).not(":has(.pointer)").append(pointerHtml)
.end()
.closest("li").toggleClass("selected")
.sib... |
First, some background:
I am an IT teacher-in-training and I'm trying to introduce the boolean operators of java to my 10th grade class. My teacher-mentor looked over a worksheet I prepared and commented that I could let them use just a single & or | to denote the operators, because they "do the same thing".
I am awar... |
My boss wants a feature that "mimics" the functionality of Urban Airship... in two weeks. What can I say to him?
|
Let us say, I am browsing the internet and stumble upon a SO answer/forum/blog with code that perfectly solves a problem I have. The only trouble is they didn't specify any sort of licensing for their code.
Is this code usable in my project or would I break copyright laws?
What would be required for me to include it in... |
Mostly fact and maybe a little bit of opinion:
One of my pet peeves in programming is data interchange. I work exclusively with small business software (as opposed to working with corporate ERP systems) and I see that many small businesses store contacts two or three times in different types of software where there is ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.