instruction stringlengths 34 19.9k |
|---|
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 ... |
I use events all the time, I cheat and use autocomplete in Visual Studio. Object.closing += [tab] button. Put something in the autogenerated function. Some people like to emphasize the "routed" nature of it, and that leads me to believe I'm missing something. Is there more to it? What am I supposed to know about r... |
In a typical SDLC there isn't much mention of the word production or development or the distinction between the two.These seem more of a real time , industrial driven concepts . I have come across these terms in regards describing companies.
As i understand Production in Software does not necessarily mean product dev... |
Now that I am using namespaces in my php files which match the file's path, I have to append a namespace to pretty much every class instantiation. The namespaces definitely help my autoloader find files, but the code is becomming harder to read/write. aren't namespaces supposed to simplify my code? why is it making thi... |
The more I learn about different programming paradigms, such as functional programming, the more I begin to question the wisdom of OOP concepts like inheritance and polymorphism. I first learned about inheritance and polymorphism in school, and at the time polymorphism seemed like a wonderful way to write generic code... |
Sometimes you get busy and delegate small tasks to junior programmers. But if you don't pay close enough attention you find yourself with this kind of code in production:
class DivtoggleController extends Zend_Controller_Action {
public function closeAction() {
/* ... code removed for brevity ... */
... |
If your following the standard DVCS methodology of having a production branch and a development branch, I'm really interested in what do you do with the default (mercurial) or master (git) branch?
Do you delete it (not recommended by several guides)?
Do you use it as production?
Do you use it as development?
Or do... |
How do handle developer keys that are supposed to be non human readable in your app?
From twitter's developer page, under My Access Token it says:
"Keep the oauth_token_secret a secret. Along with your OAuth consumer secret, these keys should never be human readable in your applications."
However, the awesome twitter g... |
I am trying to calculate a set of items that produce the highest damage output in a video game. There are about 50 different items, of which you can choose 6. There are all sorts of conditions that each item creates. I am writing a small app in javascript that calculates your damage based on the items. Could I utilize ... |
I work for an IT company that is primarily services (project) based rather than product based. All software engineers are salaried. The company has set new expectations that everyone should work 48 hours per week instead of 40.
Note, this isn't occasional overtime due to crunches. This is the new 40.
The reasoning is ... |
I wanted to know how well people generally define a software product before actually beginning to code and how well it has worked for them? I am referring to defining use cases, analyzing risk, drawing class diagrams, etc.
I know that it is a good idea to have a good enough idea of what the final product will be to be ... |
If a project was coded without much (or any) formal documentation and is without unit tests, does it make any sense to use tools like Fitnesse and SpecFlow to write automated acceptance tests as the documentation, the specs, for the code?
To use unit tests as the means of being specs would come at too high a cost. I'm... |
I am looking for some insight from you smart people on SO. I'm a relatively new developer (3+ years of experience) primarily on the .NET framework, and I'm absolutely terrible at knowing how to properly estimate even the smallest of projects. I know that it's going to be a pretty big hindrance to my upward mobility a... |
Is there any benefit in getting a CS degree in ones mid 40's career wise? Would the increased likelihood of getting past the HR filter be worth it?
It's something I might actually enjoy doing, and I wouldn't mind solidifying my fundamentals, but I would be reducing my earning capacity during the years it would take... |
BACKGROUND:
I develop custom WordPress plugins for my clients that they then distribute via the WordPress plugin repository. I'm increasingly running into clients who want my WordPress plugins to consume SOAP web services developed by their internal development teams (and as an aside, thus far every one of these SOAP w... |
Is it true that a person with fairly good fundamentals in programming can easily learn any programming language?
Well, when I say programming languages, I refer to the agile and dynamic languages like PHP, Perl, Ruby, etc but not the former programming languages of the distant past.
I've worked only on java, groovy and... |
Here is the context. The apps will:
consume existing (and standard) web services.
app is UI intensive (UI updated frequently and lot of data to display).
development team experience level is average.
development team has very few experiences in silverlight & WPF.
I want it simple, but I want to avoid a complete rewrit... |
We have a web application which is developed in classic ASP and it evolved over 5 years to its current form which has 100's of pages, huge database and more than 10000 active users going through at least more than 10 pages daily.
Now, we wanted to upgrade it to latest version of .net. Initially we thought rewriting the... |
Since starting developing ASP.NET projects I find myself familiar just touching F5 for debugging. I think most of us are learned that way?
From then and much later I learned to live with the spooky port number dedication, xx multiple instances of WebDevXX.exe in my notification bar and the relatively slow loading time.... |
With all the new "modern" languages out today, how is it that C is still heralded as the fastest and "closest to the machine"? I don't really believe in there ever being only one correct way to do things, and C has been around for a really long time (since the 60's!). Have we really not come up with anything better tha... |
When writing a software architecture document, should we present the technology used and how it connects to the system qualities we want achieve? For example, we chose .NET because arg1, arg2 ..
My feeling is NO, architecture should be stable in change; but the concrete realization of some modules can change in respec... |
When designing Many-to-Many relationship on a database, we need to put another table in the middle so it become 3 tables with 1-to-many relationship. Wikipedia told me that it's called associative entity
I always have problem naming these kind of tables. Is there any convention for them? or how do you name these tables... |
Years passed since Scrum had been widely adopted in software world. I’m wondering if there is any efficiency survey done by more or less independent people/institutes. Obviously scrums gurus who travel around the globe giving lectures and training always find numbers of excellent showcases, however I’d rather listen so... |
A client I did a project for accidentally ended up with the source code of said project. Stupid i know. The arrangement was that they would get the product, never the source code. However, obviously, they are now trying to pull a fast one and use the source code to create their own products for other clients.
Now i don... |
In my JSP web application, I want to redirect sample users to a different page from the real users.
Currently we do something like
if((user.getName().equalsIgnoreCase("Sample")) ...
This is (a) hardcoded and (b) executed for each normal user as well.
Is there a better way to handle this logic?
I am loathe to redirect ... |
I've started writing a framework in C (you may have heard of it: Raphters). Someone contacted me to ask whether I could re-license it because it would be useful in embedded products, but clause 4d (the clause that says, and I'm paraphrasing, you must allow modified versions of the library to be re-linked against your e... |
I just read hibernate reference and they say that you should use constans for HQL queries. However that is not always possible, for example if you do search function and have 10 criterias (not jpa criterias, just columns you are searching by). I bet you can do some hacky HQL that is transformed into badly performing SQ... |
My question is simple. I'm a developer and work with another developer who's been here for many more years than I have. He has his opinion about implementing stuff; he's more of a do it yourself kind of person. I'm more of a let's not re-invent the wheel kind of person. Recently for example we had a big discussion abou... |
In a standard ICT Department who is responsible for managing software licenses?
I would start by saying that the ICT Manager is accountable for it. But who gets the responsibility, using ITIL as a standard model for an ICT department would the Service Delivery Manager or Development Manager?
The Service Delivery Manag... |
A client of mine is using TFS and asks people to operate in this manner:
The developer in India writes the first draft of code
The code is published to a workspace (eg 10.1.1.1\TFSName Project:FromIndia Folder:\My.Assembly.Name)
The code is reviewed by an internal employee
To help ensure a full comprehension of code,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.