Articles

Ma liste de souhaits JPA 2.0

Je souhaite que JPA 2.0 apporte des améliorations pour faciliter le développement et la gestion des données. Je vais énumérer mes principaux souhaits pour cette version.

« Profiter de la persistance facile avec JPA 1.0 jusqu’à présent »

Le codage a toujours été un élément essentiel de la programmation Java. Jusqu’à présent, nous avons bénéficié d’une persistance facile grâce à JPA 1.0. Il est vrai que JPA 1.0 a ses limites, mais maintenant nos amis de JSR-317 travaillent dur pour nous offrir un meilleur standard de persistance pour Java.

La nouvelle spécification JPA 2.0 offre une variété d’améliorations par rapport à la version précédente. Les principales caractéristiques de JPA 2.0 sont les suivantes : une API plus riche, une gestion des transactions plus flexible, un support pour les requêtes natives et une gestion des schémas plus robuste. La nouvelle spécification offre également une meilleure intégration avec les technologies Java EE 6 telles que EJB 3.1 et JSF 2.0.

Le codage est l’un des principaux avantages de JPA 2.0. La nouvelle API permet aux développeurs d’utiliser des annotations pour définir leurs entités et leurs relations, ce qui simplifie considérablement le codage et permet aux développeurs de se concentrer sur la logique métier plutôt que sur la configuration des données. La nouvelle API permet également aux développeurs de créer des requêtes natives personnalisées pour interroger la base de données, ce qui réduit considérablement le temps et les efforts nécessaires à l’exécution des requêtes.

Enfin, JPA 2.0 offre une meilleure gestion des schémas, ce qui permet aux développeurs de créer des schémas plus robustes et plus cohérents. La nouvelle API permet aux développeurs de créer des schémas plus complexes et plus riches en fonctionnalités, ce qui permet une meilleure organisation des données et une meilleure performance globale.

En somme, JPA 2.0 offre une variété d’améliorations par rapport à JPA 1.0 et permet aux développeurs d’utiliser le codage pour créer des applications plus robustes et plus performantes. Les nouvelles fonctionnalités offertes par JPA 2.0 permettent aux développeurs de créer des applications plus riches en fonctionnalités et plus faciles à maintenir, ce qui en fait un outil très puissant pour les développeurs Java.

Source de l’article sur DZONE

Migrer de PHP 7.0 à PHP 8.1: tout ce qu'il faut savoir!

Migrer de PHP 7.0 à 8.1 peut être une tâche ardue, mais c’est nécessaire pour profiter des nouvelles fonctionnalités et améliorations. Découvrez tout ce qu’il faut savoir pour effectuer cette migration en toute sécurité !

PHP (Hypertext Preprocessor) : l’un des langages de script côté serveur les plus recherchés

Les données me font vibrer d’excitation! J’ai fait une découverte sensationnelle : PHP (Hypertext Preprocessor) est l’un des langages de script côté serveur les plus recherchés. Sa nature open source, sa courbe d’apprentissage facile et la capacité du code PHP à s’intégrer facilement à HTML en font un nom populaire dans le développement web. Il peut également être combiné avec JavaScript et CSS. De plus, une grande partie du logiciel WordPress est alimentée par PHP, ce qui le rend indispensable pour les utilisateurs de WordPress.

D’autres systèmes de gestion de contenu (CMS) populaires tels que Joomla, Drupal et Magneto dépendent également de PHP. PHP fonctionne sur tous les principaux systèmes d’exploitation, y compris Windows, macOS et Linux; se synchronise avec la plupart des bases de données, y compris MySQL, MongoDB et Postgres; et est pris en charge par la plupart des serveurs web tels qu’Apache, IIS, etc. Plusieurs grands noms, y compris Facebook, Shopify et Wikipedia, ont mis à profit PHP pour créer des sites Web puissants et interactifs.

Cette technologie est très polyvalente et peut être utilisée pour créer des sites Web à partir de zéro ou pour améliorer des sites Web existants. Les développeurs peuvent également créer des applications Web dynamiques et des applications mobiles avec PHP. De plus, il existe de nombreux frameworks PHP open source qui facilitent le développement d’applications Web. Les frameworks populaires incluent Laravel, Symfony, CodeIgniter et Zend Framework.

En résumé, PHP est une technologie puissante qui offre aux développeurs une variété d’options pour créer des sites Web dynamiques et interactifs. Il est open source, facile à apprendre et compatible avec la plupart des systèmes d’exploitation, bases de données et serveurs web. De plus, il existe de nombreux frameworks open source qui facilitent le développement d’applications Web. Enfin, plusieurs grandes entreprises ont mis à profit PHP pour créer des sites Web puissants et interactifs.

Source de l’article sur DZONE

The database management system is chosen depending on the tasks of the business. For example, startups need a quick start with minimal investment. On the other hand, banks need to store data correctly; otherwise, customers may lose their money. Today, I want to talk about how to choose a DBMS for the project, taking into account the company’s needs.

Databases for a Newly Created Company

Problem: The business model of many newly launched businesses may change after entering the market. For example, Facebook was initially created as a social networking site for college students. Still, it has since expanded to become a platform for people of all ages to connect with friends, family, and businesses.

Source de l’article sur DZONE

Knowing anti-patterns and pitfalls is often more useful than knowing patterns when designing a system, so I decided to write this blog post about factors that I think will lead to producing unreliable systems from my experiences in designing (mostly) distributed enterprise applications.
I’ll be pleased to know your related experiences and comments on the matter.

What Is Modeling?

The human brain is a pattern-seeking device. However, it’s a costly process, and the main goal of thinking is to terminate/resolve what caused this process to start in the first place; so it has developed several mechanisms to prevent it from happening too often; the one related to our discussion here is the mental model. Reality is complex, chaotic, and too messy for our limited brain capabilities and resources to comprehend as it is (if that’s even possible); so our minds will try to create an alternative reality which is very simple and (most of the time) easily understandable, and that’s what modeling is all about! from how we think about how nature works, in science for example, to proper social behavior, to what to be afraid of or seek for, all are the results of our mental model. It is noteworthy that models are neither objective reality nor meant to be so!

Source de l’article sur DZONE

I bet you didn’t know that WordPress is the world’s most popular website builder and content management system (CMS).

Just kidding…of course, you did! But that’s not all there is to know about WordPress, so take our ridiculously challenging WordPress quiz and see how much of an expert you are…

(Scroll to the bottom for the correct answers.)

1. What is WordPress?

  1. SEO plugin to check your keyword density
  2. AI tool to create illustrations
  3. Online software to create websites
  4. A coffee shop in Canada

2. What is the number of websites using WordPress?

  1. 75 million
  2. 1.3 billion
  3. 2 thousand
  4. 7.1 billion

3. WordPress has a tradition of naming its major releases after:

  1. American presidents
  2. Famous jazz musicians
  3. British kings
  4. Heavy metal bands

4. How many websites are created on WordPress per day?

  1. Two websites
  2. 20,040 websites
  3. Over 500 websites
  4. 60-80 websites

5. What is the correct WordPress website address?

  1. WordPress.org
  2. WordPress.us
  3. WordPress.com
  4. WordPress.au

6. Who is the WordPress CEO?

  1. Elon Mask
  2. Bill Gates
  3. Leonardo DiCaprio
  4. No CEO

7. Which US government website is using WordPress?

  1. WhiteHouse.gov
  2. U.S. Embassy Websites
  3. State.gov
  4. All of them

8. How many languages is WordPress available in?

  1. 21
  2. 72
  3. 78
  4. 1

9. What is the most downloaded WordPress theme of all time?

  1. Divi
  2. Gutenberg
  3. WoodMart
  4. Astra

10. How many Fortune websites are using WordPress?

  1. 11
  2. 25
  3. 90
  4. 78

11. What is the average salary of a WordPress developer per year?

  1. $100k
  2. $56k
  3. $24k
  4. $201k

12. When was the first WordPress version released?

  1. 1999
  2. 2010 
  3. 2007
  4. 2003

Answers

1. What is WordPress? – 3. WordPress is online, open-source software that you can use to create websites.

2. What is the number of websites using WordPress? – 2. In 2021, WordPress powers over 1.3 billion websites all over the web, and this number continues to grow.

3. WordPress has a tradition of naming major releases after – 2. WordPress has a habit of naming its big releases after famous jazz musicians. For example, in the first version of January 2004, they called 1.0 (Davis), named after American trumpeter Miles Davis. Another version of May 2004 was named 1.2 (Mingus).

4. How many websites are created on WordPress per day? – 3. Over 500 websites are created on WordPress every day. At the same time, only 60-80 sites are built on popular platforms like Squarespace and Shopify. Besides, every second, 17 new blog posts are published on WordPress!

5. What is the correct WordPress website address? – 1. The fact that always confuses beginners is that WordPress.org and WordPress.com are entirely different companies that provide separate services. WordPress.org is the real WordPress everyone talks about that helps you to build websites. While WordPress.com is a hosting provider created by Automattic, the co-founder of WordPress.

6. Who is the WordPress CEO? – 4. WordPress is a free, open-source project. That’s why it does not have a CEO; volunteer developers run the project from all over the globe. This is the reason anyone can submit a report about a bug or suggest features.

7. Which US government website is using WordPress? – 4. The correct answer is all of them. All major websites of the US federal government use WordPress for their websites. The list includes all government sites of big and small cities, counties, universities, and high schools.

8. How many languages is WordPress available in? – 2. The Default WordPress language is English; however, the platform provides a fully translated platform with plugins that allow you to change your site’s language in seconds. The software has been successfully used in over 72 languages and can be modified for more!

9. What is the most downloaded WordPress theme of all time? – 4. Astra is the most downloaded WordPress theme of all time. Astra is claimed to be the most potent and fast theme trusted by many popular brands. Besides, the theme earned over $30M.

10. How many Fortune 500 websites use WordPress? – 1. 11 Fortune websites, such as Walt Disney Company, ABM Industries, and 21st Century Fox, use WordPress.

11. What is the average salary of a WordPress developer per year? – 2. The average WordPress developer earns $56,000 per year, according to Payscale.

12. When was the first WordPress version released? – 4. The first version of WordPress was released on May 27, 2003, which makes WordPress much older than Twitter and Facebook.

 

Featured image via upklyak on Freepik

Source

The post Ridiculously Challenging WordPress Quiz first appeared on Webdesigner Depot.

Source de l’article sur Webdesignerdepot

UX laws are an invaluable tool, providing guidelines for designers that ensure we don’t have to continually reinvent the wheel when crafting experiences for the web.

However, UX laws tend to be devised by scientists and psychologists — people who are more than comfortable with the exceptions and allowances of academic language. By the time they filter down to us in the trenches, the language has invariably been over-simplified, and the wisdom behind the idea diluted.

Today we’re going to look at seven well-known and commonly cited rules of UX design that too many designers get wrong.

1. Jakob’s Law

Jakob’s Law, named for the UX researcher Jakob Nielsen, states that users spend most of their time on other sites and as a result prefer sites that work the same way as the sites they already know.

Jakob’s Law has often been used to limit experimentation and encourage the adoption of common design patterns in the name of usability.

However, the word ‘prefer’ is hugely loaded. While it’s true that a user will more easily understand a familiar design pattern, they do not necessarily prefer familiar experiences.

It has been widely proved that new experiences boost our mood and that new experiences improve our memory. If your goal is a memorable site that leaves users with a positive impression, introducing novelty is a sound decision.

2. Goal Gradient Hypothesis

The Goal Gradient Hypothesis assumes that the closer users are to their goal, the more likely they are to complete it.

It’s an attractive theory, especially in e-commerce, where it is often used to justify simplifying the initial purchase process and postponing complexity to move users along the funnel — a typical example is leaving shipping charges until the final step.

However, anyone who has studied e-commerce analytics will know that cart abandonment is a huge issue. In North America, shopping cart abandonment is as high as 74%.

We don’t always know what the user’s goals are, and they may not match ours. It may be that users are treating your shopping cart as a bookmark feature, it may be that they have a last-minute change of heart, or they may be horrified by the shipping charges.

While providing a user with an indication of their progress is demonstrably helpful, artificially inflating their proximity to your preferred goal may actually hinder conversions.

3. Miller’s Law

Never in the whole of human history has any scientific statement been as misunderstood as Miller’s Law.

Miller’s Law states that an average person can only hold seven, plus or minus two (i.e., 5–9) items in their working memory. This has frequently been used to restrict UI navigation to no more than five items.

However, Miller’s Law does not apply to items being displayed. While it’s true that too many options can lead to choice paralysis, a human being is capable of considering more than nine different items.

Miller’s Law only applies to UI elements like carousels, which have been widely discredited for other reasons.

4. Aesthetic-Usability Effect

Edmund Burke once said, “Beauty is the promise of happiness.” That belief is central to the Aesthetic-Usability Effect, which posits that users expect aesthetically pleasing designs to be more usable.

Designers often use this as a justification for grey-on-grey text, slick animations, and minimal navigation.

Critical to understanding this is that just because users expect a design to be usable does not mean that it is or that they will find it so. Expectations can quickly be dashed, and disappointment often compounds negative experiences.

5. Peak-End Rule

The Peak-End Rule states that users judge an experience based on how they felt at the peak and the end, rather than an average of the experience.

Designers commonly use the Peak-End Rule to focus design resources on the primary goal of each experience (e.g. adding an item to a cart) and the closing experience (e.g. paying for the item).

However, while the Peak-End Law is perfectly valid, it cannot apply to open experiences like websites when it is impossible to identify a user’s starting or ending point.

Additionally, it is easy to see every interaction on a website as a peak and even easier to make assumptions as to which peak is most important. As such, while designing for peaks is attractive, it’s more important to design for exceptions.

6. Fitts’ Law

In the 1950s, Paul Fitts demonstrated that the distance to, and size of a target, affect the error rate of selecting that target. In other words, it’s harder to tap a small button and exponentially harder to tap a small button that is further away.

UX designers commonly apply this law when considering mobile breakpoints due to the relatively small viewport. However, mobile viewports tend not to be large enough for any distance to affect tap accuracy.

Fitts’ Law can be applied to desktop breakpoints, as the distances on a large monitor can be enough to have an impact. However, the majority of large viewports use a mouse, which allows for positional corrections before tapping.

Tappable targets should be large enough to be easily selected, spaced sufficiently, and tab-selection should be enabled. But distance has minimal impact on web design.

7. Occam’s Razor

No collection of UX laws would be complete without Occam’s Razor; unfortunately, this is another law that is commonly misapplied.

Occam’s Razor states that given any choice, the option with the least assumptions (note: not necessarily the simplest, as it is often misquoted) is the correct choice.

In an industry in which we have numerous options to test, measure, and analyze our user interfaces, you shouldn’t need to make assumptions. Even when we don’t need extensive UX testing, we can make decisions based on other designers’ findings.

Occam’s Razor is a classic design trap: the key to avoiding it is to recognize that it’s not your assumptions that matter, it’s the users’. As such, Occam’s Razor applies to a user’s experience, not a design process.

Source

The post 7 UX Laws You’Re Probably Getting Wrong first appeared on Webdesigner Depot.

Source de l’article sur Webdesignerdepot

Combining minimalist aesthetics with the ongoing trend for digital art, PureNFT is an awesome new app that lets anyone break into the lucrative NFT market.

The app aims to lower the bar for prospective NFT creators by creating a minimal artwork from a single-pixel captured anywhere on your viewport. You can mint your NFT directly in the app — the process of recording your artwork on the blockchain — and list it for free on PureNFT’s dedicated marketplace.

Using PureNFT’s ArtPicker tool, hover the tool over any part of your screen, click a pixel to generate your NFT, and then click the “Mint Now” button to mint it. The app will upscale the pixel to a solid-color artwork with an ultra-high resolution of 5,000 x 5,000px. On the pro plan, PureNFT will automatically generate a 250 x 250px thumbnail to ensure your artwork isn’t pirated.

One of the best features of PureNFT is that you don’t need any drawing ability to break into the exciting NFT trend. Just point your mouse at a pixel and click, and the app will generate a pure high-resolution version of the pixel for you.

Unlike most marketplaces that favor Ethereum, PureNFT is powered by the Solana blockchain, which is far more energy-efficient, and, consequently, environmentally friendly. Despite this, PureNFT’s tokens are platform-agnostic, which means you can mint them on the native platform and then transfer them to popular marketplaces like OpenSea and Rarible.

The potential for NFTs created with PureNFT is limitless. You can literally click any pixel, mint it as an NFT, and wait for the money to start rolling in.

NFTs are a hugely popular way of monetizing artwork, but they are limited in scope; you can only sell one unique NFT of the Mona Lisa, and even then, you have to be the Louvre to do it. But with PureNFT, anyone can visit Wikipedia and open an image of the Mona Lisa that is 7,479 x 11,146px. That translates to 83.3 million potential NFTs; if each pixel sells for an average of $1,000, you might make enough to buy the actual Mona Lisa!

Minting an NFT on PureNFT currently costs 1 SOL (approximately $125 at the time of writing). The first NFT minted by PureNFT — an azure pixel from an unknown screen grab — has an asking price of 375 SOL (approximately $46,875 at the time of writing), but not all PureNFT users have been so lucky, with some early beta users complaining of returns as low as 300%. Nonetheless, the potential for substantial financial gains is evident.

According to Brendan Lewes, co-founder and CTO of PureNFT, the team is interested in introducing AI-powered automation in the near future: Imagine an automated tool searching for popular images, breaking them down into pixels, minting them, and selling them for you, while you live your life. NFT mining could be the next big area of crypto.

However, automation isn’t likely to come anytime soon, according to Lewes:

For now, we’re focussed on maintaining a stable platform. But…we’re super excited about the journey we’re on, and [co-founder Max Schriebport ] and I can’t wait to see where it take us.

PureNFT is currently in beta on macOS, Windows, and iOS, with an Android version on the way. There’s a free plan that allows you to preview up to 5 NFTs, and pro plans start at $399/month.

Source

The post PureNFT Disrupts the NFT Market first appeared on Webdesigner Depot.

Source de l’article sur Webdesignerdepot


SQL is the only 22nd century tool available in 21st century

Here are the previous articles comparing architecture, database objects, data types, and data modeling of Oracle with Couchbase. This will focus on SQL support.  

Oracle was the first and staunch supporter of SQL. Oracle’s SQL implementation beat IBM to market by two years.  That changed the fortune of one or two people. :-) All of the modern relational databases implement SQL. So much so, the relational databases are sometimes called SQL databases, much to the chagrin of C. J. Date.  Nations are known by their languages… English, French, and American(!). It’s not a stretch for a class of database systems to be known by their languages as well.  SQL has been so effective, many big data and non-relational systems have picked up SQL as the lingua franca. SQL is here to stay, even for NoSQL systems. 

Source de l’article sur DZONE

Symbolization is a technique that allows you to translate machine memory addresses to human-readable symbol information (symbols).

Why do we need to read what programs do anyways? We usually do not need to translate everything to a human-readable format when things run smoothly. But when things go south, we need to understand what is going on under the hood. Symbolization is needed by introspection tools like debuggers, profilers, core dumps, or any other program that needs to trace the execution of another program. While a target program is executing on a machine, these types of programs capture the stack traces of the program that is being executed.

Source de l’article sur DZONE