Wednesday, March 4, 2020

YouTube’s Channel Status and Features Pages Get a Redesign

YouTube is transitioning into a whole new way of doing things with its Studio which is going to be a big change from the Creator Studio Classic that YouTubers had been using for quite some time now. In lieu of these changes, the video streaming platform has conducted a redesign of two very...

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

by Zia Muhammad via Digital Information World

The importance of establishing code guidelines and standards for a project

#430 — March 4, 2020

Read on the Web

Frontend Focus

Why The GOV.UK Design System Team Changed The Input Type for Numbers — Highlights how the <input type="number"> element can be somewhat problematic in some scenarios, and offers up a solution.

Hanna Laakso

Safari to Snub New Security Certs Valid for More Than 13 Months — From September 1, any new certificate valid for more than 398 days will be rejected by Apple’s Safari browser. While this is a Safari only move for now, if this catches on it might affect how you manage your TLS certificates.

The Register

AWS Webinar: How to Scale Kubernetes in AWS — Operating a Kubernetes environment at scale requires monitoring for performance and health. Join this webinar to discover how to proactively approach monitoring of your Kubernetes environments — at any scale and any level of complexity.

Amazon Web Services (AWS) sponsor

Rolling Code Standards — Covers the significance of establishing code guidelines and standards at the beginning of a project, and the importance of evolving those standards as a project progresses.

Brad Frost

The CSS Working Group Publishes Four 'First Public Working Drafts' — This update briefly discusses the first drafts for four specs: CSS Color Module Level 5, Media Queries 5, CSS Transforms Level 2, and CSS Conditional Rules Level 4.

W3C

Brave Browser Now Automatically Points to Wayback Machine On 404 — The web browser can now detect when a webpage is unavailable and will offer to search the Wayback Machine for a backup. The feature isn’t just for 404 errors though, as it will also trigger when hitting a 408, 410, 451, 500, 502, 503, 504, 509, 520, 521, 523, 524, 525, or 526 error.

Jon Porter

Stop Using ‘Drop-Down’ — This is a little opinionated because there does seem to be a place for the term, but getting the terminology right in the 11 instances discussed is important.

Adrian Roselli

💻 Jobs

Frontend Developer at X-Team (Remote) — Work with the world's leading brands, from anywhere. Travel the world while being part of the most energizing community of developers.

X-Team

Find a Dev Job Through Vettery — Vettery is completely free for job seekers. Make a profile, name your salary, and connect with hiring managers from top employers.

Vettery

📙 News, Tutorials & Opinion

Ten Ways to Hide Elements in CSS — Each of the 10 methods has an accompanying chart that looks at various pros/cons including accessibility, browser support, layout/reflow, performance, and more.

Craig Buckler

Currying in CSS? — The concept here is based on the fact that the values of CSS custom properties aren’t evaluated until they’re used. This kinda sorta resembles ‘currying’ in JS.

Trys Mudford

HTML: The Inaccessible Parts — Dave has created a “living document” (that he intends to keep updated) that references different problems various sources have found with the accessibility of certain HTML elements.

Dave Rupert

How to Build Forms With React the Easy Way — Building forms with React can be frustrating. TJ VanToll suggests one way to tackle this challenge with ease. Read more.

Progress KendoReact sponsor

What Frontend Engineers Should Know About Backend — Subjects discussed include request rates, down time, HTTP status codes, delegating business logic, CORS, and cache busting.

Alexander Wang

Negative Margins in CSS — As the author points out, this might be the only article that covers negative margins in-depth (though it doesn’t go into flexbox and grid).

PETER-PAUL KOCH

How to Use requestAnimationFrame() with Vanilla JS — If you’ve never really had a use for this feature, but want to know how it works, this is easy to follow with some simple demos.

Chris Ferdinandi

The Mindset of Component Composition in Vue — A step-by-step tutorial building a search bar component. Good for those already familiar with Vue but maybe want to see another developer’s perspective on component composition.

Marina Mosti

Build a Single Page Application (SPA) Site With Vanilla.js

Jeremy Likness

   ðŸ—“ Upcoming Events

FrontCon, April 1-3 — Riga, Latvia — A two-day conference that focuses on front-end concepts and technologies. This year, there will be 23 speakers, 300+ attendees, and four workshops.

ImageCon, April 22-23 — San Francisco, USA — Learn the latest in innovative approaches to the visual web.

You Gotta Love Frontend Conference, May 14-15 — Vilnius, Lithuania — Described as having "big names with irresistible talks and a whole lot of fun". The CFP is now open.

🔧 Code, Tools and Resources

Shadows: A Box Shadow Generator — This nifty browser-based tool can create smooth looking layered box-shadows. There is also an accompanying Figma plugin.

Philipp Brumm

Heroicons: Free MIT-Licensed High Quality SVG Icons for UI Development — 140 icons in total, available in solid or outline style.

refactoring ui

css.gg: Over 500 Customizable CSS Icons — Another icon set, this time a collection of retina-ready icons built in CSS.

Astrit Malsija

Customizable Checkout Experiences Made Easy. Build with Square

Square sponsor

Google Lighthouse Firefox Add-On — The mega-popular performance and website quality tool is now available as a Firefox extension.

Mozilla

Pep: Turn Your Website Into a Fast, Installable PWA Instantly — Ostensibly can be done using a single line of code. Free for sites up to 10k page views per month and there are paid plans after that.

pep.dev

Panolens.js: A JavaScript Panorama Viewer Based on Three.jsView examples here. This is a lightweight, flexible, WebGL-based panorama viewer built on top of Three.js.

Ray Chen

Web Font of the Week

Shake

There's a deeply personal story behind this font initiative, and although finding a practical use for it may prove tricky, it has been created to raise awareness and fund Parkinson's research.


by via Frontend Focus

Now you can ‘finally’ backup local contacts via Google

In this digital era, most of us make use of Google Contacts to manage our contacts – instead of paper-based phone diaries. And now, Google will finally enable the users to backup contacts that were created locally as well. Up until now, Google Contacts and other similar Android apps were able to...

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

by Saima Salim via Digital Information World

Amanda Braga

Amanda Braga
Amanda Braga is a Fashion creative designer.
by via Awwwards - Sites of the day

A Basic HTML5 Template For Any Project

Louis lays the foundations for all the HTML5 goodness to come. This article is an excerpt from HTML5 & CSS3 for the Real World, by Alexis Goldstein, Louis Lazaris & Estelle Weyl.

The post A Basic HTML5 Template For Any Project appeared first on SitePoint.


by Louis Lazaris via SitePoint

How to Use Instagram Stories for Market Research: 5 Ideas for Marketers

Looking for new ways to conduct market research? Wondering how to get feedback from your highly engaged Instagram followers? In this article, you’ll learn how to use five Instagram Stories features to gather valuable feedback. Why Gather Consumer Feedback via Instagram Stories? Businesses know that making customers happy is a proven way to increase revenue. […]

The post How to Use Instagram Stories for Market Research: 5 Ideas for Marketers appeared first on Social Media Marketing | Social Media Examiner.


by Val Razo via Social Media Marketing | Social Media Examiner

How to Build Your First Discord Bot with Node.js

Nowadays, bots are being used for automating various tasks. Since the release of Amazon’s Alexa devices, the hype surrounding automation bots has only started to grow. Besides Alexa, other communication tools like Discord and Telegram offer APIs to develop custom bots.

This article will solely focus on creating your first bot with the exposed Discord API. Maybe the most well-known Discord bot is the Music Bot. The music bot lets you type a song name and the bot will attach a new user to your channel who plays the requested song. It’s a commonly used bot among younger people on gaming or streaming servers.

Let’s get started with creating a custom Discord bot.

By the way, you can join SitePoint’s Discord community with this link. Come talk tech with us and get notified about our new articles.

Prerequisites

  • Node.js v10 or higher installed (basic knowledge)
  • a Discord account and Discord client
  • basic knowledge of using a terminal

Step 1: Set Up Test Server

First of all, we need a test server on which we can later test our Discord bot. We can create a new server by clicking the plus icon on the left of the screen.

click create server

A pop-up will be displayed that asks you if you want to join a server or create a new one. Of course, we want to create a new server.

select create server

Next, we need to input the name for our server. To keep things simple, I’ve named the server discord_playground. If you want, you can change the server location depending on where you’re located to get a better ping.

server name

If everything went well, you should see your newly created server.

new server

Step 2: Generating Auth Token

When we want to control our bot via code, we need to register the bot first under our Discord account.

To register the bot, go to the Discord Developers Portal and log in with your account.

After logging in, you should be able to see the dashboard. Let’s create a new application by clicking the New Application button.

developer dashboard

Next, you’ll see a pop-up that asks you to input a name for your application. Let’s call our bot my-greeter-bot. By clicking the Create button, Discord will create an API application.

create application

When the application has been created, you’ll see the overview of the newly created my-greeter-bot application. You’ll see information like a client ID and client secret. This secret will be used later as the authorization token.

overview greeter bot

Now, click on the Bot menu option in the Settings menu. Discord will build our my-greeter-bot application and add a bot user to it.

add bot

When the bot has been built, you get an overview of your custom bot. Take a look at the Token section. Copy this authorization token and write it down somewhere, as we’ll need it later to connect to our bot user.

bot tab overview

The post How to Build Your First Discord Bot with Node.js appeared first on SitePoint.


by Michiel Mulders via SitePoint