Whats a good standard code layout for a php application
Without using a big framework whats a good standard starting layout for code being written in php? update: Directory layout, code flow, etc....
Without using a big framework whats a good standard starting layout for code being written in php? update: Directory layout, code flow, etc....
I know most people have code review and standards in place, but I work at a place with poor standards. I'm not saying that my code is flawless by any means, but I find the code my fellow members submit is totally lacking of structure, standards, naming convention, etc. Whole code blocks that have been replaced are still left commented ...
I'm a recent AI graduate (circa 2 years) working for a modest operation. It has fallen to me (primarily as I'm the first 'adopter' in the department) to create a basic (read useful?) C# coding standards document. I think I should explain that I'm probably the most junior software engineer going, but I'm looking forward to this task as ...
I'm designing a database table and once again asking myself the same stupid question: How long should the firstname field be? Does anyone have a list of reasonable lengths for the most common fields, such as first name, last name, and email address? ...
I am writing a basic word processing application, and I am trying to settle on a native "internal" format, the one that my code parsers in order to render to the screen. I'd like this to be XML, so that I can, in the future, just write XSLT to convert it to ODF or XHTML or whatever. However, when searching for existing standards to use,...
My boss asked me this yesterday just to gauge my response. Apparently, some of our clients are asking for "Web 3.0" I told him I really didn't know. He said when he's asked around the consensus is that it's microformats, etc. Frankly no one really knew either. (probably get a varied response now to "what is web 2.0?" still) I watche...
What is currently the best way to get a favicon to display in all browsers that currently support it? Please include: Which image formats are supported by which browsers. Which lines are needed in what places for the various browsers. ...
I am pretty sick of IE6, would not want to support it anymore. When do you think its market share will decline to, say, 5%? ...
With an XML prolog like ? xml version="1.0" encoding="iso-8859-1"? > and a Doctype like !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> I can get my page to render as expected. However, in IE7 the same page does not render correctly. (a span inside a div does n...
My company has a common code library which consists of many class libary projects along with supporting test projects. Each class library project outputs a single binary, e.g. Company.Common.Serialization.dll. Since we own the compiled, tested binaries as well as the source code, there's debate as to whether our consuming applications sh...
How can i stop the host machine entering 'standby' mode while my application is running? Is there any win32 api call to do this? ...
Have you ever been in a situation where a menu function you really really want to use but can't cause it's disabled or worse gone all together? There is an argument for always leaving menus enabled and then display a message to a user explaining why a menu function can not be actioned when they click on it. I think there is merit in thi...
For many questions, especially for C-related ones, the answer seems to be found in "the standard". However, where do we find that - online? Googling can sometimes feel futile, again especially for the C standards, since they are drowned in the flood of discussions on programming forums ;) To get this started, since these are the ones I...
What useful tips and solutions do people have for taking an office full of various systems (ranging from ancient XP boxes to modern Vista laptops, and a mac thrown in for good measure) with no central facilities or servers and fixing it up as much as possible to reduce maintainence effors from the IT support? Having a complete, rigerous...
Internet Explorer 8 breaks what must be every 3rd page I look at. The point of this early release was, I presume, to give website owners the chance to update their sites so it wouldn't be such a hassle for the final release. Has anyone actually done this? Is anyone even planning on doing this? I have yet to notice any of the big sites...
Yes XML is human readable but so is comma delimited text and properties files. XML is bloated, hard to parse, hard to modify in code, plus a ton of other problems that I can think about with it. My questions is what are XML's most attractive qualities that has made it so popular???? ...
Are there any best practices (or even standards) to store addresses in a consistent and comprehensive way in a database ? To be more specific, I believe at this stage that there are two cases for address storage : you just need to associate an address to a person, a building or any item (the most common case). Then a flat table with t...
Maybe this applied to other Delphi's (I've only used 7). We've got our code broken up so that nearly every DLL in our fairly massive app is in a different folder. 99% of the open source stuff I've downloaded to plug into Delphi have had all their source munged into one folder. It seems like this was an assumption that the developers o...
I'm looking at building a simple web app that will expose an API that lets third-party (well, written by me, but that's not the point) apps query for and modify user-specific data stored on the site. Obviously I don't want to allow apps to be able to get user-specific information without that users consent. I would want some kind of app...
I have a client who is interested in adding in electronic signature support to a long (40 question) seller application form. I'm a little stumped on whether there is an existing standard or process that's out there that folks in the financial world would expect to see? I could certainly add in a system where we generate a bunch of text ...