Téléchargements pour les développeurs d’applications Windows Store
Your new post is loading...
Your new post is loading...
Téléchargements pour les développeurs d’applications Windows Store No comment yet.
Sign up to comment
Craig takes a closer look at the CSS rules and regulations laid down by the BBC for developers. Does your company implement coding standards and do they help or hinder your job?
Javascript is often falsely derided as a simple language, devoid of the object oriented features so favoured by other modern scripting languages.
If you find JavaScript's 'this' keyword confusing, Craig provides a list of gotchas which may catch you out when you're coding your next masterpiece.
Craig takes a closer look at the coding style guidelines Google has released for HTML, CSS and JavaScript. He finds a few hidden gems lurking in the documents
From
php
Les nombres décimaux ont une précision limitée. Même s'ils dépendent du système, PHP utilise le format de précision des décimaux IEEE 754, qui donnera une erreur maximale relative de l'ordre de 1.11e-16 (dûe aux arrondis). Les opérations arithmétiques non-élémentaires peuvent donner des erreurs plus importantes et bien sûr les erreurs doivent être prises en compte lorsque plusieurs opérations sont liées. Aussi, les nombres rationnels exactement représentables sous forme de nombre à virgule flottante en base 10, comme 0.1ou 0.7, n'ont pas de représentation exacte comme nombres à virgule flottante en base 2, utilisée en interne, et ce quelle que soit la taille de la mantisse. De ce fait, ils ne peuvent être convertis sans une petite perte de précision. Ceci peut mener à des résultats confus: par exemple, floor((0.1+0.7)*10) retournera normalement 7 au lieu de 8 attendu, car la représentation interne sera quelque chose comme 7.9999999999999991118.... Ainsi, ne faites jamais confiance aux derniers chiffres d'un nombre décimal, mais aussi, ne comparez pas l'égalité de 2 nombres décimaux directement. Si vous avez besoin d'une haute précision, les fonctions mathématiques de précision et les fonctions gmp sont disponibles. Pour une explication "simple", reportez-vous au » guide relatif aux nombres à virgule flottante. |
Craig provides his top 10 tips for developers who want to write successful jQuery plugins.
RSS (Really Simple Syndication) guidelines for bbc.co.uk
Mickael Ruau's insight:
The BBC accepts that the nature of the web medium is such that web pages cannot be produced in such a way as to be uniformly rendered in all browsers, so as to provide a consistent experience for all users. We accept that small variations in this experience are acceptable within the 'Levels of Support'. (...) The table below defines the levels of support that MUST be adhered to. See also Appendix 2'Objectives of Web Browser Support' and Appendix 3 'Decision Tree for Degradation of Browser Versions'. BrowserIEFF1Chrome2Opera1Safari1KonquerorPlatformWindowsAllWindows & MacAllAllLinuxLevel 16, 7, 8FF 4.0.x, 3.6.x, 3.5.x, 3.0.xlatest x.x10.x, 9.6.x, 9.5.x5.x, 4.x, 3.x Level 25.5FF 2.0.x 9.x2.x (Mac)4.4xLevel 31, 2, 3, 4, 5FF 1.5.x, 1.0.x 8-1.x (Mac)3-Must test6, 7, 8FF 3.6.3(PC Only)latest x.x110.53 (PC)5.0 (Mac, 4.0.3 (Mac) Should test5.5FF 3.0.6 (Mac), 3.5.7 (PC) 9.52, 9.643.2.1 (PC), 3.2.1 (Mac) EngineTrident (4-7), Ohare (1-3)GeckoWebkitPrestoWebcoreKHTML
List of Technical Standards & Guidelines for bbc.co.uk
Any developer that has worked with JavaScript for any amount of time is familiar with the arduous task of creating custom JavaScript objects.
arguments is the name of a local, array-like object available inside every function. It’s quirky, often ignored, but the source of much programming wizardry; all the major JavaScript libraries tap into the power of the arguments object.
Like most computer languages, JavaScript supports Boolean data types; values which can be set to true or false. In addition, everything in JavaScript has an inherent Boolean value, generally known as either truthy or falsy.
Aims to provide both short and simple answers to the common recurring questions of novice programmers about floating-point numbers not 'adding up' correctly, and more in-depth information about how IEEE 754 floats work, when and how to use them... |
Your new post is loading...