サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
アメリカ大統領選
www.sitepoint.com
In this article, we’ll learn what Google’s zx library provides, and how we can use it to write shell scripts with Node.js. We’ll then learn how to use the features of zx by building a command-line tool that helps us bootstrap configuration for new Node.js projects. Writing Shell Scripts: the Problem Creating a shell script — a script that’s executed by a shell such as Bash or zsh — can be a great
In this article, we’ll review some of the best React UI component libraries, and how to choose the right one for you. The article is written primarily for beginner React developers, but you’ll need some familiarity with specific terms in React. React powers the user interfaces (UI) of close to 10 million websites around the world. While the base library of React is solid, there are multiple compon
The best way to learn a tool like React is to build something with it. Next.js is a powerful framework that helps you build for production. In this tutorial, we’ll learn how to build a clone of Twitter using Next.js and Prisma. Our app will have the following features: authentication using NextAuth and Twitter OAuth an option to add a new tweet an option to view a list of tweets an option to view
You may have established a pattern of coding that utilizes a few key tools offered by your browser’s console. But have you dug any deeper lately? There are some powerful tools available to you, and they might just revolutionize the way you work. The Comfort Zone As developers, we like to find a way of working that make us feel efficient. The trap, though, is that we get comfortable with a certain
August 23, 2012Implementing Memoization in JavaScript Programs often waste time calling functions which recalculate the same results over and over again. This is particularly true with recursive and mathematical functions. A perfect example of this is the Fibonacci number generator. The Fibonacci sequence is a series of integers, beginning with zero and one, in which each value is the sum of the p
Software development is complex and, at some point, your Node.js application will fail. If you’re lucky, your code will crash with an obvious error message. If you’re unlucky, your application will carry on regardless but not generate the results you expect. If you’re really unlucky, everything will work fine until the first user discovers a catastrophic disk-wiping bug. What is Debugging? Debuggi
NodeGui is an open-source library for building cross-platform, native desktop apps with Node.js. NodeGui apps can run on macOS, Windows, and Linux. The apps built with NodeGui are written using JavaScript, styled with CSS and rendered as native desktop widgets using the Qt framework. Some of the features of NodeGui are: native widgets with built-in support for dark mode low CPU and memory footprin
React and TypeScript are two awesome technologies used by a lot of developers these days. Knowing how to do things can get tricky, and sometimes it’s hard to find the right answer. Not to worry. We’ve put together the best practices along with examples to clarify any doubts you may have. Let’s dive in! How React and TypeScript Work Together Before we begin, let’s revisit how React and TypeScript w
December 12, 2019The Evolution of JavaScript Tooling: A Modern Developer’s Guide This article was created in partnership with Sencha. Thank you for supporting the partners who make SitePoint possible. JavaScript application source code has traditionally been hard to understand, due to code being spread across JavaScript, HTML, and CSS files, as well as events and data flowing through a number of n
What do Airbnb, Google, Lyft and Asana have in common? They’ve all migrated several codebases to TypeScript. Whether it is eating healthier, exercising, or sleeping more, our humans love self-improvement. The same applies to our careers. If someone shared tips for improving as a programmer, your ears would perk. In this article, the goal is to be that someone. We know TypeScript will make you a be
Apps that communicate in real time are becoming more and more popular nowadays, as they make for a smoother, more natural user experience. In this tutorial, we’re going to build a real-time chat application using Vue.js powered by ChatKit, a service provided by Pusher. The ChatKit service will provide us with a complete back end necessary for building a chat application on any device, leaving us t
Vue continues to grow in popularity and is rapidly being adopted by many developers, and Vue.js tools are popping up everywhere. This is not without reason: Vue’s shallow learning curve, clear functionality-driven structure, and excellent documentation make it easy for novices to pick it up, and for more experienced developers to make a switch from other frameworks like React or Angular. If you ar
In this tutorial, I’m going to show you how to build a simple Vue Chrome extension. Our extension will alter the behavior of the new tab page. For the JavaScript part of the extension, I’ll be using the Vue.js framework, as it will allow us to get up and running quickly and is a lot of fun to work with. Browser extensions are small programs that can modify and enhance the functionality of a web br
June 6, 20226 Clever SVG Pattern Generators for Your Next UX Design SVG patterns could easily be thought of as an under-appreciated superpower of SVG. While they’re often not widely understood, SVG patterns offer a lot of interesting design options once you understand their subtleties. In this article, we’re going to start with a crash course on how SVG patterns work. Then we’ll spin through 6 too
In this guide, we’ll introduce the WordPress Settings API, and create a WordPress administration page where we demonstrate the use of this API. For the purposes of this tutorial, we’ll wrap this functionality into a plugin, but this can also be a part of a WordPress theme. As the WordPress Codex says, the Settings API was added in WordPress 2.7 to streamline adding different settings fields and se
In HTML documents, we can show, hide, or rearrange parts of the page based on the conditions of the viewport. If the browser window is 480 pixels wide, for example, we might shift our navigation from a horizontal one to a vertical, collapsible list. We can do something similar when using SVG with media queries. This article is an extract from Tiffany’s book CSS Master, 3rd Edition. Check it out if
In this article, we review the art of creating printer-friendly web pages with CSS. Table of Contents Why Do We Need CSS for Printing? Print Style Sheets Testing Printer Output Print Preview Developer Tools Hack Your Media Attribute Remove Unnecessary Sections Linearize the Layout Printer Styling Adopt CSS Columns Use Borders Instead of Background Colors Remove or Invert Images Add Supplementary C
In this article, we look at 20 ways to optimize your CSS so that it’s faster-loading, easier to work with and more efficient. According to the latest HTTP Archive reports, the web remains a bloated mess with the mythical median website requiring 1,700Kb of data split over 80 HTTP requests and taking 17 seconds to fully load on a mobile device. The Complete Guide to Reducing Page Weight provides a
August 22, 2018CSS and PWAs: Some Tips for Building Progressive Web Apps In recent years we’ve seen a number of major shifts in the online experience, mostly coming from the proliferation of mobile devices. The evolution of the Web has taken us from single versions of a website, to desktop versus mobile versions, to responsive sites that adapt according to screen size, then to native mobile apps,
August 20, 2018Using CSS Transforms in the Real World In this article, we’ll learn how CSS transforms can be used in the real world to solve various tasks and achieve interesting results. Specifically, you’ll learn how to adjust elements vertically, create nice-looking arrows, build loading animations and create flip animations. Transformations of HTML elements became a CSS3 standard in 2012 and w
Chrome DevTools incorporates many sub-tools for debugging web applications on the client side — like recording performance profiles and inspecting animations — most of which you’ve likely been using since your early days of learning web development, mostly through the DevTools console. Let’s look at some of those tools, focusing particularly on the console and the performance metrics. To access Ch
This article is part of a series on building a sample application — a multi-image gallery blog — for performance benchmarking and optimizations. (View the repo here.) Let’s continue optimizing our app. We’re starting with on-the-fly thumbnail generation that takes 28 seconds per request, depending on the platform running your demo app (in my case it was a slow filesystem integration between host O
Sails.js is a Node.js MVC (model–view–controller) framework that follows the “convention over configuration” principle. It’s inspired by the popular Ruby on Rails web framework, and allows you to quickly build REST APIs, single-page apps and real-time (WebSockets-based) apps. It makes extensive use of code generators that allow you to build your application with less writing of code — particularly
Some years ago, the Apache Foundation’s web server, known simply as “Apache”, was so ubiquitous that it became synonymous with the term “web server”. Its daemon process on Linux systems has the name httpd (meaning simply http process) — and comes preinstalled in major Linux distributions. It was initially released in 1995, and, to quote Wikipedia, “it played a key role in the initial growth of the
In this article, we’ll dive into a set of tips and tricks that should come in handy in every Angular project and beyond when dealing with TypeScript. In recent years, the need for static typing in JavaScript has increased rapidly. Growing front-end projects, more complex services, and elaborate command-line utilities have boosted the need for more defensive programming in the JavaScript world. Fur
With cutting-edge CSS standards like CSS Grid Layout and Flexbox, coding a web page layout is no longer such a pain. If you add to this that browser support for both Grid and Flexbox is pretty good too, then the question is bound to come up: Why should consider learning and using CSS frameworks in my development work? In this article, I’ll focus on Bootstrap, since it’s arguably one of the most po
There can be no doubt that React has revolutionized the way we build user interfaces. It’s easy to learn and greatly facilitates creating reusable components that offer your site a consistent look and feel. However, as React only takes care of the view layer of an application, it doesn’t enforce any specific architecture (such as MVC or MVVM). This can make it difficult to keep your codebase organ
April 12, 2018How to Add Authentication to Your Vue App Using Okta This article was originally published on the Okta developer blog. Thank you for supporting the partners who make SitePoint possible. I’ve danced the JavaScript framework shuffle for years starting with jQuery, then on to Angular. After being frustrated with Angular’s complexity, I found React and thought I was in the clear. What se
An unedited version of article was originally published at HaydenJames.io and republished here with the author’s permission. Let’s take a very quick look at how best to set up PHP-FPM for high throughput, low latency, and a more stable use of CPU and memory. By default, most setups have PHP-FPM’s PM (process manager) string set to dynamic and there’s also the common advice to use ondemand if you s
次のページ
このページを最初にブックマークしてみませんか?
『The Cicada Principle and Why It Matters to Web Designers » HTML & CSS, Layout...』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く