Friday, May 3, 2019

Babylon.js 4.0, Electron 5.0, and standing up for the ternary operator

#435 — May 3, 2019

Read on the Web

JavaScript Weekly

Babylon.js 4.0: The (Very) Powerful WebGL Graphics Engine — Such a significant release that they’ve released a 2 minute video trailer for it! With 4.0 Babylon has gone fully modular, so it’s more efficient than ever to distribute to end users. Want to play? Enjoy this editable live demo.

Microsoft

Visual Studio Code Previews Support for 'Remote Development' — The VS Code editor is getting an exciting new feature, the ability to work directly with remote workspaces (running either WSL, Docker containers, or physical machines or VMs over SSH).

VS Code Team

Using Competency Mapping to Unlock Skills in Your Org — Free, Online Talk - May 15th.

Big Nerd Ranch sponsor

Electron 5.0.0 Released — Just 3 months after 4.0, Electron 5, the popular system for building Node and Web technology based desktop apps, is here. It’s mostly a dependency bump release, but with Node 12 and Chromium 73 now under the hood, that’s no bad thing.

Electron.js Team

Editor.js: A Block-Styled Editor with JSON Output — Typical WYSIWYG editors output raw HTML markup but Editor.js keeps things organized into ‘blocks’ which are then returned in structured JSON which makes the content easier to sanitize or transform.

CodeX

Shimport 1.0: Use JavaScript Modules in All Browsers? — Allows you to use JS modules in all browsers, including dynamic import(). We first linked this when it was entirely experimental but it’s just had its 1.0 release, so have a play.

Rich Harris

Easy Automatic npm Publishes — npm and Node powerhouse Isaac Z. Schlueter says he hasn’t “manually typed npm publish in a while” and explains how he’s semi-automated his npm publishing process.

Isaac Z. Schlueter

💻 Jobs

JavaScript Developer at X-Team (Remote) — Join the most energizing community for developers. Work from anywhere with the world's leading brands.

X-Team

Senior JavaScript Developer - Kontist (Remote) — Join our team of full-stack JavaScript developers and shape the future of banking.

Kontist

Have You Tried Vettery? — Vettery specializes in tech roles and is completely free for job seekers. Create a profile to get started.

Vettery

📘 Tutorials and Opinions

In Defense of the Ternary Statement — Code similar to expression ? true_result : false_result is known as a ternary expression. Much maligned, is it possible to use them in JavaScript without getting into an unreadable mess?

Burke Holland

'I just shipped Promise.allSettled in Chrome 76'Promise.allSettled is like Promise.all but doesn’t short-circuit if any supplied promise is rejected.

Sathya Gunasekaran on Twitter

New Features in Node 12 You Shouldn't Miss — Node 12 came out last week, and this post reflects on some of the new features.

Máté Huszáarik

▶  How Facebook is Building the New Facebook.com with React, GraphQL and Relay — The forthcoming redesign is fully powered by React and Relay and this 35 minute talk digs into the technicalities.

Facebook for Developers

Replace Tedious Coding with MongoDB Stitch and Public APIs

MongoDB sponsor

The Perfect Unit Test — You might recognize Jack’s name if you’ve been a long time subscriber as he used to write a lot of great posts. He’s back now with some basic tips on how to craft better unit tests.

Jack Franklin

Deeply Understanding async and await with Examples — One more for beginners, but it’s a perennial topic covered well.

Arfat Salman beginner

Array.push is 945x Faster Than Array.concat? — Also worth checking out the comments on this one.

Shi Ling

Why I Prefer React Over Vue
Sebastian De Deyne

An Introduction to Vue.js Render Functions (with Examples)
Charles Ouellet

5 Things You Didn’t Know About React DevTools
Kristofer Selbekk

Serving Vue.js Apps on GitHub Pages
Muhammad Usman

🔧 Code and Tools

Textblock: Set Continuously Responsive Typography — A JS library that adjusts the size, leading, line height, and other factors of text to make it ‘continuously responsive’.

Glyphic

sql.js: SQLite Compiled to JavaScript (and Webassembly) — Naturally experimental, 1.0 just dropped with Webassembly support and based upon the latest SQLite version (3.28.0). Want to play? Here’s a live demo.

Alon Zakai

Automate Your Code Reviews — Codacy flags errors in your code so you can fix them quickly, directly from your current workflow. Get started today.

Codacy sponsor

Relay 4.0.0 Released: A Framework for Building Data-Driven React Apps“Simply declare your data requirements using GraphQL and let Relay figure out how and when to fetch your data.”

Facebook

jQuery-CSV: A jQuery CSV Parser Plugin — A jQuery plugin(!) you say? Yes, but this is a very well optimized, battle tested, and spec compliant CSV parser and its 1.0 release today “marks the first – and likely only – stable LTS release of this library” so.. congratulations are in order.

Evan Plaice

Glide: A Dependency-Free ES6 Slider and Carousel — A lightweight, flexible and fast straightforward slider. Demo here.

Jędrzej Chałubek

jQuery 3.4.1: A Bugfix Release — Bugs squashed include focus/blur triggering in IE, checking element attachment in iOS 10.0-10.2, and loading with AMD. 3.4.0 was released last month if you missed that.

Timmy Willison

DeepScan Makes Your JavaScript Better — Use this static analysis service to find problems in your JavaScript, TypeScript, React & Vue on GitHub. Try it free.

DeepScan sponsor

vue-qrcode-reader: Vue.js Components for Detecting and Decoding QR Codes
Niklas Gruhn

Dotenv 8.0: Load Environment Variables From `.env` in Node
Scott Motte

Ember Charts 2.0: An Easy to Use Charting Library for Ember.js
Addepar


by via JavaScript Weekly

Remove your footprints from Google’s location tracking data

Google will soon be introducing a new feature for its users that would allow them to auto-delete their location history and web/mobile activity after a set period of time. The timeline will range between three to eighteen months and will repeatedly delete data in the said duration. The search...

[ This is a content summary only. Visit our website http://bit.ly/1b4YgHQ for full links, other content, and more! ]

by Saima Salim via Digital Information World

Form Async : Library that provide Acronymous Sending on Form Changes

Form Async is an easy-to-use library that provide acronymous sending on form changes. It’s a great solution to preventing data loss when filling out a web form.

Features:

  • Lightweight (~1.5kb gziped)
  • Saves any HTML form element
  • Support content editable property
  • Full customization
  • Retry functionality if ajax request fail
  • Send form elements as group of field
  • Provide the way to validate changes before sending ajax request

The post Form Async : Library that provide Acronymous Sending on Form Changes appeared first on Best jQuery.


by Admin via Best jQuery

10 Best Free Logo Makers & Generators You Should Try In 2019

What a logo is in its Wikipedia definition is known to virtually everyone. However, what is real meaning of a logo for a startup and small business – is it a faithful companion or just another expensive trinket. Perhaps, on taking the first step in opening your own business or having already a...

[ This is a content summary only. Visit our website http://bit.ly/1b4YgHQ for full links, other content, and more! ]

by Web Desk via Digital Information World

Dark Web Users Are No More Anonymous, Revealed A New Study

The privacy and anonymity Dark web offers are attracting a large number of internet users towards it, especially over the last two years. An anonymous network, The Onion Routing (TOR), allows accessing the content available on Dark Web. According to a recent research published in Scientific...

[ This is a content summary only. Visit our website http://bit.ly/1b4YgHQ for full links, other content, and more! ]

by Aqsa Rasool via Digital Information World

10 Quick Tips to tighten your Landing Page design

I’m proud to say One Page Love features over 7000 websites now! Unfortunately, with the continuous push to increase quality, not all submissions get in. These 10 tips below form the most common website feedback I give users to help improve their Landing Page design:

 

 

ps. the awesome “Pencil Knot” cover illustration is by Karolis Strautniekas


Tip 1 – Keep Brand Capitalization Consistent

When a new user arrives at your Landing Page and you’ve got different case variations of your Brand Name it looks unprofessional and can even be confusing. I’d advise avoiding ALL CAPS but once you’ve chosen a case style, stick with it and ensure it’s consistent throughout your Landing Page.

  • One Page Love (correct)
  • Onepagelove
  • ONEPAGELOVE
  • onepagelove
  • One Page love
  • One-Page Love
  • Onepage Love

Here are some popular ones:

  • WordPress (1 word, 2 capital letters)
  • MailChimp (1 word, 2 capital letters)
  • Stack Overflow (2 words)
  • Facebook (1 word)

Tip: Visit your live Landing Page, use your browser in-page search and try find all possible variations of your brand name.

Video Reference: FieldGoal


Tip 2 – Give those lonely orphans a family

This means bringing those floating last words in a paragraph back home by slightly reducing the paragraph font size or even better – boot out unnecessary adjectives like awesome or amazing. Same goes for your Brand Name, if it’s comprised of 3 words it must remain 3 words everywhere with no overflows.

Useful links:

Video Reference: The SEO Company Template


Tip 3 – Don’t neglect Retina optimization

If anything, you absolutely must have a Retina-optimized logo. A “pixelated” logo can negatively impact a first impression. Retina-optimization basically means offering double sized logos, screenshots and imagery for Retina-screened users. Same goes for your iconography, try use SVG format icons if possible.



Tip: Use ImageOptim for optimizing bigger, rich color images. It’s debatable what the ideal page load size is, but optimizing everything is always good practice.

Useful links:

Video Reference: SuperCrowd


Tip 4 – Add Breathing Room

The majority of users are going to skim your content. If you bundle everything together they are going to skim even more. Whitespace is referred to as the breathing room for your content but also the breathing room for the user. This slows them down helps increase focus and in-turn increases conversions.

Website with good whitespace

81 percent of people only skim the content they read online. Usability expert Jakob Nielsen reports the average user reads at most 20 to 28 percent of words during an average visit. (source)

Tip: If you’re questioning if you should increase padding, you should probably double it.

Tip: Increase padding but still stick to a grid.

Tip: Reverse engineer your padding allowances by working around the perfect line length (characters per line) based on your font size.

Useful links:

Video Reference: Park & Diamond and Brenner Cycles


Tip 5 – Keep Spacing Consistent

We’ve just covered adding more padding but what really tightens a design is when this spacing is consistent. The same goes for over overlooked vertical spacing, keeping your section padding consistent throughout your long-scrolling Landing Page.

Vertical Spacing Example

A good practice is spacing and sizing within ratios, for example, all section padding is 60px. all CTA buttons and small spaces are 30px and all small gaps are 15px.

Vertical Spacing Example

Tip: Keep spacing within consistent ratios. Example: if we set 30px button, then set section title bottom margins also at 30px and section diver spacing at 60px. Consistency is key.

Useful links:

Video Reference: Background Image


Tip 6 – Fewer images, better images

It can take one good image to completely change the emotion of your user. Same goes for one bad image – Good imagery builds trust and trust is the foundation of conversions. Spend the money. Get a photoshoot of your team, your product. your food. The ROI on a professional photoshoot is pretty much guaranteed. Now once you have a good selection, ask yourself if each image truly captures your story or compliments your brand. Eliminate everything non-essential.

Fewer images, better images

 “Simplicity means the achievement of maximum effect with minimum means.” ~ Dr. Koichi Kawanaite

Useful links:

Video Reference: Dona Rita and Stock Image


Tip 7 – Fewer fonts, more weights

Too many fonts looks messy and also adds to Landing Page load time. Different weights within one font family can really strengthen the visual hierarchy of heading and paragraphs. Try stick to 2 or less families and even consider bringing in the users system font as the Sans-Serif typeface.

Useful links:


Tip 8 – More text color contrast

Avoid having pure black (`#000000`) text on a pure white (`#FFFFFF`) page background. Soften the blow with an off-white background and a subtle grey text hierarchy. Furthermore why not experiment with completely different color palettes within your Landing Page. A quality color scheme is instantly remarkable and can strengthen your branding.


Useful links:


Tip 9 – Juice up those CTA buttons

Ideally your Landing Page is promoting one thing meaning you are after only one type of conversion. So all your CTA buttons should be consistently worded and color-schemed, It will remind the user what you want them to do as they scroll. It’s also good practice to choose a CTA button color that stands out within your scheme for example an bright orange button within a blue color scheme.

Oak CTA buttons Etsy CTA buttons

Useful links:


Tip 10 – Polish with Text Kerning and Font Smoothing

It’s incredible how the smallest kerning tweaks can drastically improve a Landing Page design. Furthermore by adding just a few lines of CSS code you can really polish typography with a more elegant look.


Here is the code I use on most of my projects:

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -moz-font-feature-settings: "liga" on;
}

Useful Links:


Bonus Tip – Declutter Throughout

Earlier we cut down on images but why stop there. We are not trying to convince the user with as much as possible, it’s as little as possible.

  • 2 brilliant testimonials – not 8 average ones.
  • 2 highlighted power features, with 4 smaller features below – not a grid of 12.
  • Your 8 best wedding photographs – not the past 4 years of work.

Remember attention spans are diminishing online so we need to get to the point with our Landing Pages. No jargen. No verbose words. No pop-ups. Create the Landing Page you’d want to see when visitings for the first time.

Tip: Kill those social share icons, especially the embedded ones. If they are essential, hard code them.

Tip: Replace, don’t add. When you get new testimonials or images, try replace the old ones.

“The ability to simplify means to eliminate the unnecessary so that the necessary may speak.” ~ Hans Hofman


Further Resources


I hope you enjoyed these 10 quick tips to tighten your Landing Page design. What go-to tip you have did I leave out, hit me up in the comments on YouTube and if you enjoyed this roundup share it with a friend about to launch their next project:)


by Rob Hope @robhope via One Page Love

How to Test Your Facebook Ads for Optimal Results

Do you want to optimize your Facebook ads? Wondering what the best audience, creative, and placement are to use for your message? To explore how to test your Facebook ads for optimal results, I interview Andrea Vahl. Andrea is a Facebook ads expert, the author of Facebook Ads Made Simple, and she runs a course […]

The post How to Test Your Facebook Ads for Optimal Results appeared first on Social Media Marketing | Social Media Examiner.


by Michael Stelzner via Social Media Marketing | Social Media Examiner