development-approach

When do you use third-party code?

How do you generally resolve a programming problem, for example, when you have to parse a ini file? If it is my task, I will : First check if there is already a weapon suitable for it in my arsenal. I mean check the libraries I am familiar with, like Glib, APR, or just standard C API. If I don't find anything suitable, I will check i...

Approach For Syncing One SharePoint List With One or More SharePoint Lists

What would be the best approach or strategy for configuring, customizing or developing in SharePoint a solution that allows me to keep one or more SharePoint lists in sync with a SharePoint list I have designated as a master or parent list. I would like to be able to create a master/parent list of some information that can be extended ...

Preferred approach for producing ranked SQL results?

Hi. I need to build some searching logic that produces ranked results. A simple example would be querying a table with firstname, lastname and zip code columns. The required output would be a list a rows that match, in order of the 'degree' of match. I.e., the top results would be those that matched on all three columns, followed by tho...

What is the best way to go about writing a simple x86 assembler?

I'm interested in writing an x86 assembler for a hobby project. At first it seemed fairly straight forward to me but the more I read into it, the more unanswered questions I find myself having. I'm not totally inexperienced: I've used MIPs assembly a fair amount and I've written a toy compiler for a subset of C in school. My goal is...

What is the best approach to store xml temporarily on the client side?

My application has a lot of decision to make before finally saving my data to the database. I am using JQuery to do this. I have succeeded in creating a moderately long xml string, due to the fact that the user will enter data that will each need to be verified. I have made this decision base of the number of trips i expect my applicati...

What should be the correct/better approach for locking a record in table?

Actually, the problem is like this:- i am having a table, say Payments. I have provided few GUI for searching, viewing and editing the record. Now if the user is trying to edit a record perform some particular action, which takes say 1 minute to process. Then another user should not be able to perform that particular operation on the sam...

Documenting and getting approval before starting to code?

Recently our boss changed our method of working to first document stuff such as what we are going to code, how will it affect the system code, where would i require to make changes, etc, get it approved and then start the coding process. I believe that while sometimes its better to plan out stuff and visualize things (especially for com...

Loading alternative content via tabs and jQuery and JSP

Hi. I have a table of data for a policy type (options are Single, Couple, Family & Single Parent Family). I want to have a tabbed interface with each policy type occupying one tab. At the same time a table of data relating to relevant policy type is displayed beneath the associated tab. When a user clicks on another tab then a diffe...

How do programmers brainstorm and approach new projects?

What is the best way, you have developed, to approach / brainstorm / look at new assigned projects? read relevant books, blogs? discuss problems with fellow programmers? ask questions on StackOverflow? :) search for similar open source projects? What are your first lines of code and how much time does it take you till you fire up you...

Reading HTML data from database is slow? Need a better approach?

We have a table in mysql of 18GB which has a column "html_view" which stores HTML source data, which we are displaying on the page, but now its taking too much time to fetch html data from "html_view" column, which making the page load slow. We want an approach which can simplify our existing structure to load the html data faster from ...

What will be the OOP approach? (or YOUR approach?)

I'm having difficulties with some general OOP & Java approach. There are various ways to let classes/objects communicate with each other. To give a simple example: I need object A to perform action X. Object A needs P, Q and R to perform this action X. Will then Object A retrieve P, Q and R by itself (within action X), or must these ...

Is it bad to have a long name for an associative array in PHP?

I have a function which must return one dimensional associate array, like $user_info[$index]=value where $index is a string which consist of user_id full_name photo_file_name for example, my associative array could look like $user_info['user-123456789~~Bill Gates~~bill_gates.png']=$value. I need user_id, full_name and photo for anot...

BEST approach to share messages between data tier and application tier

Hi there I was looking for any suggestion or a good approach to handle messages between the data & application tier, what i mean with this is when using store procedures or even using direct SQL statements in the application, there should be a way the data tier notifies upper layers about statement/operation results in at least an organ...

Best approach: transfer daily values from one year to another

I will try to explain what I want to accomplish. I am looking for an algorithm or approach, not the actual implementation in my specific system. I have a table with actuals (incoming customer requests) on a daily basis. These actuals need to be "copied" into the next year, where they will be used as a basis for planning the amount of ...

What should i use Iframe or Frameset?

I am creating a page wherein there will be a text box , a button and a frame . Wireframe: http://gomockingbird.com/mockingbird/index.html?project=2e29104b80a65861df9c1113b029befcd9dd163c Now, i am having two option, 1. I will keep text box [ it is used for URL ] and Button in a Div and will use Iframe to show the content of url. 2. I wi...

Any recommendations for writing a GUI client from a CLI client?

I'm looking for writing a GUI client for a existing application in my job, this application is CLI and because this is not widely used. This is the first time I'm writing something similar, the I ask you for recommendations, books, techniques, methodologies, advices. My first approach is to create the interface and to make calls to the ...

Good Strategy for sharing project dependencies/resources across multiple projects/boxes/developers?

Hi all, I work in a small developing team with 3 developers and none of us are really 'uber elite programmers' but we get by pretty well for our company. One thing that has been constantly recurring is we keep using the same resources in multiple projects. One example being the fckeditor control, however it stinks to constantly add this...

Zend sending email

hi all, i have a project that need to send email. and i use zend as my framework. i use XSL for email templat and save email parameter as array that will turn to XML before send the email. i create my own implementation multithread class utilize CURL for sending email. any better development approach for queue & sending email ? ...