Monthly Archiv: July, 2020

Weekly News for Designers № 548

Envato Elements

The Types of Freelance Design Clients You Should Avoid – How to spot a bad client from a mile away.
Example of The Types of Freelance Design Clients You Should Avoid

Beginner’s Guide to WordPress Plugin Development – Follow this guide to learn the basics of building your own WordPress plugins.
Example of Beginner’s Guide to WordPress Plugin Development

Make me think! – Taking the right approach to UX design.
Example of Make me think!

Irregular-shaped Links with Subgrid – Techniques for linking up card UIs that go beyond traditional borders.
Example of Irregular-shaped Links with Subgrid

Creating a Menu Image Animation on Hover – Learn how to create a hover effect for a menu where images appear with an animation on each item.
Example of Creating a Menu Image Animation on Hover

HTML – Simplified Code – A collection of design elements that outputs simplified code for your projects.
Example of HTML - Simplified Code

jExcel CE – A lightweight Vanilla JavaScript plugin to create amazing web-based interactive HTML tables and spreadsheets.
Example of jExcel CE

An Ode to Adobe Flash: How It Helped Move the Web Forward – As Flash fades into the past, its impact can still be felt.
Example of An Ode to Adobe Flash: How It Helped Move the Web Forward

Zettlr – A free Markdown editor aimed at professional writers.
Example of Zettlr

Covid19 Free UI Kit – A free set of UI elements and layouts for Sketch and Adobe XD.
Example of Covid19 Free UI Kit

Scroll to text fragment: How to link & highlight any text on a web page – Use this detailed guide to add text fragment highlighting to any page.
Example of Scroll to text fragment: How to link & highlight any text on a web page

The 20 Best Free Outline Fonts – Add some unique style to your projects with these stunning fonts.
Example of The 20 Best Free Outline Fonts

Accordion Rows in CSS Grid – Designer Eric Meyer details his use of CSS Grid on his website’s new layout.
Example of Accordion Rows in CSS Grid

1-Line Layouts* – A collection of modern layouts and sizing techniques that demonstrate the power of CSS.
Example of 1-Line Layouts

Flexbox Cheatsheet – A guide featuring 12 tips and tricks that every web developer should know.
Example of Flexbox Cheatsheet

harmonograph.art – A browser-based tool that lets you draw, download and share a randomized harmonograph.
Example of harmonograph.art

The Chinese Type Archive – An on-going, collaborative, open-access index of Chinese typographic resources.
Example of The Chinese Type Archive

Profile Pro – Easily generate avatars with any background and use them with a simple download or a copy-paste.
Example of Profile Pro

Dark Ages of the Web – Notes on all the old-school techniques used by web designers back in the day.
Example of Dark Ages of the Web

The post Weekly News for Designers № 548 appeared first on Speckyboy Design Magazine.

PHP Domain Driven Design Common Interfaces (New)

Package:
PHP Domain Driven Design Common Interfaces
Summary:
Provide interfaces to implement DDD, CQRS and ES
Groups:
Design Patterns, PHP 5
Author:
Cydrick Nonog
Description:
This package can provide interfaces to implement DDD, CQRS and ES...

Read more at https://www.phpclasses.org/package/11710-PHP-Provide-interfaces-to-implement-DDD-CQRS-and-ES.html

Site News: Blast from the Past – One Year Ago in PHP (07.09.2020)

Here's what was popular in the PHP community one year ago today:

PHP Internals News: Episode 61: Stable Sorting

PHP Internals News: Episode 61: Stable Sorting

In this episode of "PHP Internals News" I chat with Nikita Popov (Twitter, GitHub, Website) about his Stable Sorting RFC.

The RSS feed for this podcast is https://derickrethans.nl/feed-phpinternalsnews.xml, you can download this episode's MP3 file, and it's available on Spotify and iTunes. There is a dedicated website: https://phpinternals.news

Transcript

Derick Rethans 0:18

Hi, I'm Derick, and this is PHP internals news, a weekly podcast dedicated to demystifying the development of the PHP language. This is Episode 61. Today I'm talking with Nikita Popov about a rather small RFC that he's proposing called stable sorting. Hello Nikita, how are you this morning?

Nikita 0:36

Hey, Derick, I'm great. How are you?

Derick Rethans 0:38

Not too bad myself. Let's jump straight in here. The title of the RFC is stable sorting, what does that mean, what is stable sorting, or what is sorting stability?

Nikita 0:48

Sorting stability refers to the behaviour of the sort when it comes to equal elements. And equal share means that we sort comparison function. For example, the one you pass to usort says the elements are equal, but there is still some way to distinguish them. For example, if you're sorting some objects, to take the example from the RFC, we have an array with users, and users have an age, and we use usort to only sort the users by age. Then according to the comparison callback all users with the same age are equal. But of course, the user also has other fields on which we can distinguish it. And the question is now in what order will equal elements appear. If we have a stable sort, then they will appear in the order they were originally in. So it's something not going to change.

Derick Rethans 1:41

And that is not what PHP sorting mechanism currently does?

Nikita 1:44

Right. PHP currently uses an unstable sort, which means that the order is simply unspecified. It will be deterministic. I mean if you take the same input array and sort it, then every time we will get the same result. But there is no well specified order or relative order of elements. There's just some order. The reason why we have this behaviour is that well there are, I would say, two, the only two sorting algorithms. There is merge sort. Which is a guaranteed n log n sort that the stable, but has the disadvantage that that requires additional memory to perform the merge step. The other side there is a quicksort, which is an average case n log n sorting algorithm and is unstable, but does not require any additional memory. And in practice, everyone uses one of these algorithms, usually with a couple of extensions on sort of merge sort. Nowadays we use timsort, but which is still based on the same underlying principle, and for quicksort, we have sort which is better than quicksort, which tries to avoid some of the bad worst case performance which quicksort can have. PHP currently uses us a quicksort, which means that our sorting results are unstable.

Derick Rethans 3:07

Okay, and this RFC suggesting to change that. How would you do that? How would you modify quicksort to make it stable?

Nikita 3:15

Two ways. One is to just change the sorting algorithm. So as I mentioned, the really popular stable sorting is timsort, which is used by Python by Java and probably lots of other languages at this point. And the other possibility is to stick with an unstable source. So to stick with quicksort, but to artificially enforce that the comparison function does not have, does not report equal elements that a

Truncated by Planet PHP, read more at the original (another 5852 bytes)

A Client’s Role in Website Accessibility

Among the top priorities for web designers is in making sure that the websites we build are accessible. Everyone should be able to navigate and consume content – with or without assistive technologies.

But as much time as we spend in discussing the topic and sharpening our skills, we can’t do this alone. It also requires our clients to buy in as well. They’ll need to understand the benefits of accessibility and why it’s important. Not to mention what they could lose by ignoring the issue.

With that, we’ve put together this guide that is filled with ways clients can help in the process. Let’s get started!

Embracing Simplicity

One of the easiest ways to make a website inaccessible is by going overboard with extras. While additions like special effects, animation and JavaScript UIs are compelling – they’re not always accessible.

Avoiding these bells and whistles isn’t so easy. Both designers and their clients tend to like shiny things – not that there’s anything wrong with that.

However, part of a designer’s role is that of an educator. We need to help clients understand the important stuff – accessibility being one of them. This can be a hard lesson for some.

Among the key points to emphasize is that a website should not sacrifice usability for the sake of aesthetics. Ideally, a balance can be achieved. And, quite often, simplicity is the way to get there.

And simplicity doesn’t have to mean boring. Rather, it entails making sure that the basics are covered. Text is easy to read, colors provide acceptable contrast and the site can be navigated by keyboard. Once those items are established, other goodies can be added in – so long as they don’t make things more difficult for any subset of users.

People in front of a whiteboard.

Providing Accessible Content

Guiding your client towards accessibility is only one step in the process. Once they buy into its importance, the real work begins.

Depending on who you’re working with, one of the bigger challenges can be obtaining content in accessible formats. The importance of this is often overlooked. After all, even if the website’s layout is accessible, that doesn’t guarantee anything when it comes to the actual content.

Accessible content includes:

Easy-To-Understand Text

If your client is providing you with text content for the various parts of their website, it should be simple and to-the-point. For consumer-oriented and business-to-business websites, the simpler the better. The main idea is that visitors shouldn’t need a college degree to comprehend a site’s content.

Thus, if a client provides overly long and complicated text, we should work with them to simplify.

Accessible File Formats

Not everything on a website will be straight text and images. Downloadable files such as PDFs and Word documents are also quite common.

Of course, it can be debated whether a specific item should stay in a non-HTML format. A PDF file full of text could just as well be converted into HTML. However, there are items like printable forms where a different file format makes sense.

In that case, those documents should have accessibility features. For example, clients may send you files that were scanned. That can be a big problem, as scanned documents don’t have selectable text. The result is that they won’t be read by screen readers. Plus, the legibility of the document may also be suboptimal.

The ideal solution is asking your client to track down the original, non-scanned version of the file. This would allow it to be converted to say, a PDF, while keeping the content accessible. Otherwise, it may be a matter of using OCR to detect text or recreating the file from scratch.

A computer user interface.

Staying the Course

A big part of keeping a website accessible is in developing good habits. For clients who will be maintaining some or all aspects of their site, they’ll need to create a process. This is an area where designers can help.

While focusing on accessible content (as outlined above) is important, the little details are also worth discussing. Alt attributes on images, for example, can easily get lost in the shuffle. They’re something that has to be added to a client’s standard workflow in order to become habit.

When it comes to typography, designers tend to cringe when we think of clients changing things around. Nobody wants to see their carefully-crafted type settings disrupted by an adventurous content manager. However, avoiding the topic altogether is not a solid plan.

It might be better to assume that some typographic elements will be changed down the line. Knowing this, clients should at least understand the rules of the road. Fonts should be readable, with acceptable sizing and color contrast.

Then there are the potential downsides of installing additional plugins or other software. With the prevalence of free plugins for platforms such as WordPress, there’s a temptation to hit that “Install” button to see what a plugin can do. But it should be noted that some items might negatively impact accessibility – not to mention the website itself.

Beyond the normal client training, there are other ways to help encourage accessible habits. For one, providing an accessibility checklist offers clients a handy reference that they can go back to again and again.

A road running through a wooded area.

Engaged Clients Can Make a Difference

The use of accessible design and development techniques are paramount for all of us. Still, it’s also important to think about the role a client can play. Their contributions can make the difference in just how accessible their website is.

In the end, it’s about sharing knowledge. When people know better, they tend to do better. So, take the time to fill your clients in on best practices. This will empower them to make better decisions regarding accessibility.

The post A Client’s Role in Website Accessibility appeared first on Speckyboy Design Magazine.

Best practices for deploying web apps have evolved

[This post is heavily inspired by Christopher Skene's 2017 "What is best practice in web application deployment." Three years is a long time for best practices in devops land, however, so it's time to again update our thinking.] “Best practices” are often talked about in the tech world, but rarely is it acknowledged that they can and do change over time. All “best practices” are nothing more than a distillation of the challenges of a given situation to a usually optimal set of trade-offs.

PHP 8.0.0 Alpha 2 available for testing

The PHP team is pleased to announce the second testing release of PHP 8.0.0, Alpha 2. This continues the PHP 8.0 release cycle, the rough outline of which is specified in the PHP Wiki. For source downloads of PHP 8.0.0 Alpha 2 please visit the download page.Please carefully test this version and report any issues found in the bug reporting system.Please DO NOT use this version in production, it is an early test version. For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive. The next release will be Alpha 3, planned for 23 Jul 2020.The signatures for the release can be found in the manifest or on the QA site.Thank you for helping us make PHP better.

Mezon PHP GUI Builder (New)

Package:
Mezon PHP GUI Builder
Summary:
Generate HTML based UI from component classes
Groups:
HTML, PHP 5, Validation
Author:
Alexey Dodonov
Description:
This package can be used to generate HTML based user interfaces from component classes...

Read more at https://www.phpclasses.org/package/11714-PHP-Generate-HTML-based-UI-from-component-classes.html

Get Real-Time Global Market Data with the marketstack Stock API Sponsored

Having access to global market data has never been more vital. With world economies in a state of flux, your users need accurate information available in real-time. Historical data is also important, as it serves as a way to compare and contrast with the present.

marketstack gives you the ability to easily implement this data on your website or mobile app. It’s a free, easy-to-use REST API that delivers worldwide stock market data in JSON format.

With over 125,000 available stock tickers and over 30 years of historical data, marketstack is a complete solution. It brings the entire world of finance right to your door.

marketstack home page.

Access to Real-Time, Intraday and Historical Market Data

Wherever you are in the world, and whichever markets you need to watch, marketstack has you covered. You’ll find a treasure trove of current and historical data – all in an API that’s a breeze to set up.

Covering 72 Global Exchanges

You’ll be able to satisfy investors worldwide with data from 72 global exchanges and more than 125k stock tickers. The NYSE, NASDAQ, TYO, XLON – they’re all here.

With detailed up-to-the-minute updates, your users will know exactly where they stand.

marketstack stock exchange coverage illustration.

A Massive Library of Historical Data

Want to go deeper? Not only does marketstack provide real-time information, you’ll also have access to over 30 years of historical data. With the included intraday data, you can even see stock performance on a minute-by-minute basis.

As they say: knowledge is power. With marketstack, users can research past performance with an eye towards the future.

A marketstack stock search.

Powerful and Secure Architecture

An API is only as good as its foundation. marketstack has been built with cutting-edge technology and can be scaled to fit any need. From small business websites all the way up to the demands of enterprise, you can rely on marketstack to deliver.

In addition, the API uses bank-grade security to keep your data safe and give you peace of mind. All data sent to and from marketstack uses 256-bit HTTPS encryption.

Easy to Implement

The goal of any API is to serve your users – not wasting time trying to get things working. With marketstack, you can be up and running in just 5 minutes.

marketstack features extensive, easy-to-understand documentation. It provides you with plenty of request and code examples in a number of languages, including PHP, Python, NodeJS and more.

marketstack client listing illustration.

Get Your Free API Key and Join 30,000+ Happy Customers

marketstack is the top choice for all of your market data needs. If you’re looking for access to accurate real-time data that’s fast, reliable and easy-to use – this JSON REST API is the perfect fit. It’s no wonder that they’re trusted by 30,000+ companies and 75+ universities worldwide.

What’s more, the depth of available data is outstanding. Whether you need the latest stock quotes or historical data, marketstack has it all. Plus, it’s all backed up by extensive documentation and friendly customer support.

Best of all, you can get started for free – no credit card required! Get your free API key today – good for up to 1,000 end-of-day stock data requests per month. Need more? Affordable monthly plans are available, starting at just $9.99.

Sign up for marketstack and within minutes you’ll bring the world of finance directly to your users.

The post Get Real-Time Global Market Data with the marketstack Stock API <span class="sponsored_text">Sponsored</span> appeared first on Speckyboy Design Magazine.

Powered by Gewgley