Search

Nalezeno "optional": 36

Web Technologies and Syntax


JavaScript has a (newish) feature called optional chaining. Say I have code like: const name = Data.person.name; If person happens to not exist on Data, I’m going to get a hard, show-stopping error. With optional chaining, I can write: const name = Data.person?.name; Now if person...

Logical Assignment Operators


I love JavaScript, it’s my favorite programming language, but I love dipping into other languages because they offer a new perspective on coding paradigms. There’ve been syntax additions to JavaScript that I’ve seen I found interesting (think ?? in optional chaining) and now...

Optional Zcash and Dash Features Prompt Debate on Privacy & Compliance


Two privacy coins, Zcash (ZEC) and Dash (DASH), are now supported by blockchain and analytics specialist Chainalysis - but it's the addition of the former that caused discussions online about privacy and responsibility. Chainalysis launched support for Dash and Zcash in their investigation...

How to Add Native Keyword Aliases to Babel


Those of you who follow this blog know that not every blog post is an endorsement of a technique but simply a tutorial how to accomplish something.  Sometimes the technique described is probably not something you should do.  This is one of those blog posts. The Babel parser is an essential tool...

GoGetSSL


GoGetSSL is a company that sells SSL certificates. You know, those things that are required to make your site use https://, not http:// which doesn't feel like an optional choice these days with browsers making sites looks scarily insecure without it and search engines telling us is a ranking...

(Why) Some HTML is “optional”


Remy Sharp digs into the history of the web and describes why the <p> tag doesn’t need to be closed like this: <p>Paragraphs don’t need to be closed <p>Pretty weird, huh? Remy writes: Pre-DOM, pre-browsers, the world's first browser was being written by Sir...

Some HTML is “Optional”


There is a variety of HTML that you can just leave out of the source HTML and it's still valid markup. Doesn't this look weird? <p>Paragraph one. <p>Paragraph two. <p>Paragraph three. It does to me, but the closing </p> tags are optional. The browser will detect...

Multiline truncated text with “show more” button


Now that we've got cross-browser support for the line-clamp property, I expect we'll see a lot more of that around the web. And as we start to see it more in use, it’s worth the reminder that: Truncation is not a content strategy. We should at least offer a way to read that that truncated content...

Collective #544


SVG Artista * Optional chaining * Color Palette Generator * Label Studio * Perfect loops in Processing Collective #544 was written by Pedro Botelho and published on Codrops

Optional Chaining


For all of the improvements that the JavaScript language has added over the past few years, like the spread operator, default argument values, and arrow functions, there are still a few features I’d love to see implemented. On such feature is optional chaining. Optional chaining allows...

Responsive Designs and CSS Custom Properties: Building a Flexible Grid System


Last time, we looked at a few possible approaches for declaring and using CSS custom properties in responsive designs. In this article, we’ll take a closer look at CSS variables and how to use them in reusable components and modules. We will learn how to make our variables optional and set fallback...

Fighting FOIT and FOUT Together


Lots from Divya with the setup: There are 2 kinds of problems that can arise when using webfonts; Flash of invisible text (FOIT) and Flash of Unstyled Text (FOUT) ... If we were to compare them, FOUT is of course the lesser of the two evils If you wanna fight FOIT, the easiest tool is...

3 Useful TypeScript Tips for Angular


These are the 3 tips I found pretty handy while working with Typescript: Eliminating the need to import interfaces Making all interface properties optional Stop throw

Přednáška o metaprogramování ve Swiftu


Určitě jste již zažili error “Unexpectedly found nil while unwrapping an Optional value”, když jste se pokoušeli inicializovat UIImage pomocí názvu obrázku, ve kterém jste měli překlep. Nebylo by fajn mít statickou množinu…

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace