This article focuses on the administration side of our banking application, covering the creation of the admin scripts and discussing how proper administration can improve performance.
Your new post is loading...
Your new post is loading...
This article focuses on the administration side of our banking application, covering the creation of the admin scripts and discussing how proper administration can improve performance. No comment yet.
Sign up to comment
Core Web Application Development with PHP and MySQL: Part 1, authored by Marc Wandschneider.
Mickael Ruau's insight:
Explication sur le pourquoi du MVC :
As authors of web application software, the initial temptation for us might be to put all of the code for the web application in one placewriting scripts that queried the database for information, printed the results for the user, and then did some credit card processing or other things. While this does have the advantage of being reasonably quick to code, the drawbacks become quickly apparent: The code becomes difficult to maintain when we try to change and upgrade the functionality. Instead of finding clear and well-known places for particular pieces of functionality, we have to go through various files to find what needs to be changed.The possibilities for code reuse are reduced. For example, there is no clear place where user management takes place; if we wanted to add a new page to do user account maintenance, we would end up duplicating a lot of existing code.If we wanted to completely change the way our databases were laid out and move to a new model or schema, we would have to touch all of our files and make large numbers of potentially destabilizing changes.Our monolithic program becomes very difficult to analyze in terms of performance and scalability. If one operation in the application is taking an unusually long time, it is challenging (if not impossible) to pinpoint what part of our system is causing this problem.With all of our functionality in one place, we have limited options for scaling the web application to multiple systems and splitting the various pieces of functionality into different modules.With one big pile of code, it is also difficult to analyze its behavior with regards to security. Analyzing the code and identifying potential weak points or tracking down known security problems ends up becoming harder than it needs to be.Thus, we will choose to use a multi-tired approach for the server portion of our web application, where we split key pieces of functionality into isolatable units. We will use a common "3-tiered" approach, which you can see in Figure 13-4. Figure 13-4: Dividing our applications logically into multiple tiers. This architecture provides us with a good balance between modularization of our code for all of the reasons listed previously but does not prove to be so overly modularized that it becomes a problem. (See the later section titled "n-Tier Architectures.") Please note that even though these different modules or tiers are logically separate, they do not have to reside on different computers or different processes within a given computer.
In the modern globalized economy, it behooves us to think of other nationalities when we develop our websites and applications.
In part 3 of the Globalize your Web Applications series, we'll be exploring PHP's I18N_Number and I18N_Currency classes, both of which are part of the I18N Libraries.
In this tutorial you'll learn how to create a searchable form feature that will query a database table and display current staff member information.
Here are some of the common SSL usage mistakes made by beginners and experts alike and explains the simple remedies to each one.
I have been known to tell people in an enterprise environment to avoid global functions and variables in JavaScript at all costs. My reasons are purely from a
Mickael Ruau's insight:
I have been known to tell people in an enterprise environment to avoid global functions and variables in JavaScript at all costs. My reasons are purely from a maintenance point of view: it’s easier to document variables attached to classes or namespaces and it’s easier to debug (because you know where to find the variable/function in question). Turns out that Douglas Crockford agrees with me in his latest post, Global Domination.
Comparing values against null is a very popular thing to do in JavaScript, but I fear that typically it's overused and used in situations when it's completely
For years, I've used Hungarian Notation when programming in JavaScript. Both of my books use Hungarian notation for all code examples and recommend that others
From
whoknew
In JavaScript function are first class objects that can have properties. This presents possibilities not possible in class object oriented languages.
Why a re-introduction? Because JavaScript has a reasonable claim to being the world's most misunderstood programming language. While often derided as a toy, beneath its deceptive simplicity lie some powerful language features.
When discussing the prototype object, it’s necessary to consider JavaScript closures. The prototype is used to extend the definition of an object, regardless of what other scope is in effect. The prototype is available as a characteristic of the type, regardless of whether you even have an instance of the object. The prototype is independent from the state during which it was created. Closures, on the other hand, are used to leverage the scope in play at the time the closure is created.
Before you start throwing things this way, hear me out. A few years ago, no one ever talked about closures in JavaScript. They were a footnote to JavaScript, |
Part 3 of User Personalization with PHP: Beginning the Application discusses securing the login page, to make it as difficult as possible for attackers to break the application.
Core Web Application Development with PHP and MySQL: Part 1, authored by Marc Wandschneider.
Mickael Ruau's insight:
The format of both the HTTP request and response is very simple. Both share the following plain text format: Initial request/response line
Using language-specific locale features allows your applications to support many different locales, regardless of the settings on the computer, which runs the application.
Learn how to create an HTML page that uses PHP to let a user choose a language and then displays the text accordingly.
Having trouble with your Web pages? Can't get them to display correctly in your browser? It might be that your page is a little 'quirky;.
Guest author Nicholas C. Zakas teaches you how to create a DOM compatible, cross-browser expandable tree navigation system (1/5).
I've been using the great JavaScriptLint tool recently to go over my code. One of the errors that it typically flags is comparison with null, 0, or an empty
A little while back, I blogged about Microsoft's big steps forward recently, one of which being the release of Visual Studio Express, a scaled-down version of
One of Crockford's latest creations is the object() function, which he puts forth as a better way of doing prototypical inheritance in JavaScript. The function
Mickael Ruau's insight:
Crockford’s object() function is really nothing more than a function that clones another object. However, the technique can be used to ease prototypical inheritance in JavaScript as illustrated above.
From
whoknew
JavaScript memoization optimizes function execution by avoiding repeating calculations. One way this can be done if by caching results on the function itself.
Closures are one of the most powerful features of ECMAScript (javascript) but they cannot be property exploited without understanding them. They are, however, relatively easy to create, even accidentally, and their creation has potentially harmful consequences, particularly in some relatively common web browser environments. To avoid accidentally encountering the drawbacks and to take advantage of the benefits they offer it is necessary to understand their mechanism. This depends heavily on the role of scope chains in identifier resolution and so on the resolution of property names on objects. The simple explanation of a Closure is that ECMAScript allows inner functions; function definitions and function expressions that are inside the function bodes of other functions. And that those inner functions are allowed access to all of the local variables, parameters and declared inner functions within their outer function(s). A closure is formed when one of those inner functions is made accessible outside of the function in which it was contained, so that it may be executed after the outer function has returned. At which point it still has access to the local variables, parameters and inner function declarations of its outer function. Those local variables, parameter and function declarations (initially) have the values that they had when the outer function returned and may be interacted with by the inner function. Unfortunately, properly understanding closures requires an understanding of the mechanism behind them, and quite a bit of technical detail. While some of the ECMA 262 specified algorithms have been brushed over in the early part of the following explanation, much cannot be omitted or easily simplified. Individuals familiar with object property name resolution may skip that section but only people already familiar with closures can afford to skip the following sections, and they can stop reading now and get back to exploiting them. |
Your new post is loading...