[{"data":1,"prerenderedAt":1818},["ShallowReactive",2],{"post-cards":3,"categories":529,"post-using-selectors-in-stylus-css-pre-processor":567},[4,27,38,54,68,78,87,97,111,124,134,145,160,172,185,196,207,218,229,240,251,264,277,292,307,321,335,347,358,369,379,389,399,409,419,429,439,449,459,469,479,489,499,509,519],{"path":5,"title":6,"slug":7,"summary":8,"date":9,"readTime":10,"hasImage":11,"category":12,"tags":17,"tagSlugs":26},"\u002Fposts\u002Fgit-flow-vs-github-flow-choosing-a-branching-strategy","Git Flow vs GitHub Flow: Choosing a Branching Strategy for Your Team","git-flow-vs-github-flow-choosing-a-branching-strategy","Git Flow and GitHub Flow take very different approaches to team branching and releases. Let's compare them, see where trunk-based development fits, and sort out how to handle versioned releases, hotfixes, and everything in between.","2026-06-14",7,false,{"id":13,"name":14,"slug":15,"hue":16},4,"Git","git",158,[18,20,23],{"name":19,"slug":15},"GIT",{"name":21,"slug":22},"Workflow","workflow",{"name":24,"slug":25},"GitHub","github",[15,22,25],{"path":28,"title":29,"slug":30,"summary":31,"date":9,"readTime":10,"hasImage":11,"category":32,"tags":33,"tagSlugs":37},"\u002Fposts\u002Fgithub-flow-keep-your-main-branch-deployable","GitHub Flow: Keep Your Main Branch Deployable","github-flow-keep-your-main-branch-deployable","GitHub Flow is the lightweight branching workflow built on a single rule: anything in main is deployable. Here is the whole loop, branch, pull request, review, merge and deploy, with the git and gh commands and an honest look at where it fits.",{"id":13,"name":14,"slug":15,"hue":16},[34,35,36],{"name":19,"slug":15},{"name":21,"slug":22},{"name":24,"slug":25},[15,22,25],{"path":39,"title":40,"slug":41,"summary":42,"date":43,"readTime":44,"hasImage":11,"category":45,"tags":50,"tagSlugs":53},"\u002Fposts\u002Fstarting-with-rust-installation-first-program","Starting with Rust: From Installation to Your First Program","starting-with-rust-installation-first-program","Learn how to install Rust and write your first \"Hello, world!\" program.","2024-03-23",2,{"id":46,"name":47,"slug":48,"hue":49},6,"Rust","rust-programming",38,[51],{"name":52,"slug":52},"rust",[52],{"path":55,"title":56,"slug":57,"summary":58,"date":59,"readTime":44,"hasImage":11,"category":60,"tags":65,"tagSlugs":67},"\u002Fposts\u002Fflutter-version-management-fvm","Flutter Version Management","flutter-version-management-fvm","Managing multiple Flutter versions does not need not be a headache. Let's jump into FVM and see how it can simplify your Flutter journey.","2023-10-07",{"id":61,"name":62,"slug":63,"hue":64},5,"Flutter","flutter",230,[66],{"name":63,"slug":63},[63],{"path":69,"title":70,"slug":71,"summary":72,"date":59,"readTime":73,"hasImage":11,"category":74,"tags":75,"tagSlugs":77},"\u002Fposts\u002Fsetting-up-cocoapods-fvm","Setting Up CocoaPods for FVM-managed Flutter Projects","setting-up-cocoapods-fvm","A guide to installing CocoaPods for a Flutter project while using FVM to manage Flutter versions, ensuring a smooth setup for iOS development.",1,{"id":61,"name":62,"slug":63,"hue":64},[76],{"name":63,"slug":63},[63],{"path":79,"title":80,"slug":81,"summary":82,"date":59,"readTime":73,"hasImage":11,"category":83,"tags":84,"tagSlugs":86},"\u002Fposts\u002Ftroubleshooting-xcode-15-build-issues-flutter","Troubleshooting Xcode 15 Build Issues in Flutter Projects","troubleshooting-xcode-15-build-issues-flutter","Uncovering solutions to common issues faced when updating to Xcode 15 in a Flutter project using an older version of CocoaPods.",{"id":61,"name":62,"slug":63,"hue":64},[85],{"name":63,"slug":63},[63],{"path":88,"title":89,"slug":90,"summary":91,"date":92,"readTime":13,"hasImage":11,"category":93,"tags":94,"tagSlugs":96},"\u002Fposts\u002Fgit-tracking-a-remote-branch-upstream-for-changes","Git: Tracking a Remote Branch for Changes","git-tracking-a-remote-branch-upstream-for-changes","When you fork a project, you need a way to pull in changes from the original repository, usually called upstream. Here is how to wire up an upstream remote, actually sync your fork, and set up branch tracking so plain git pull and git push just work.","2018-11-04",{"id":13,"name":14,"slug":15,"hue":16},[95],{"name":19,"slug":15},[15],{"path":98,"title":99,"slug":100,"summary":101,"date":92,"readTime":102,"hasImage":103,"category":104,"tags":108,"tagSlugs":110},"\u002Fposts\u002Fjavascript-array-map-filter-reduce-functions","JavaScript's map, filter, and reduce methods","javascript-array-map-filter-reduce-functions","JavaScript provides some amazing functions that can be called against your arrays to help filter them, manipulate them, or even reduce them down to a single value or grouped values.",3,true,{"id":44,"name":105,"slug":106,"hue":107},"JavaScript","javascript",92,[109],{"name":105,"slug":106},[106],{"path":112,"title":113,"slug":114,"summary":115,"date":116,"readTime":73,"hasImage":103,"category":117,"tags":121,"tagSlugs":123},"\u002Fposts\u002Fphp-fizzbuzz-example","FizzBuzz in PHP: A Fresh Approach","php-fizzbuzz-example","FizzBuzz is a very popular programming question that tests your logic to see if you can build a simple program.","2018-11-02",{"id":73,"name":118,"slug":119,"hue":120},"PHP","php",264,[122],{"name":118,"slug":119},[119],{"path":125,"title":126,"slug":127,"summary":128,"date":129,"readTime":44,"hasImage":103,"category":130,"tags":131,"tagSlugs":133},"\u002Fposts\u002Fphp-array-reduce","PHP's array_reduce is not only for outputting single values","php-array-reduce","PHP's array_reduce is a simple way to partition a set of data or return a single value. It is super powerful and worth spending time learning.","2018-11-01",{"id":73,"name":118,"slug":119,"hue":120},[132],{"name":118,"slug":119},[119],{"path":135,"title":136,"slug":137,"summary":138,"date":139,"readTime":46,"hasImage":11,"category":140,"tags":141,"tagSlugs":144},"\u002Fposts\u002Fimprove-your-git-workflow-with-git-flow","Improve Your Git Workflow with Git Flow","improve-your-git-workflow-with-git-flow","Git Flow is a structured branching model built around versioned, scheduled releases. Here is how its branches fit together, a hands-on walkthrough of features, releases and hotfixes, and an honest take on when it is still the right call.","2016-12-06",{"id":13,"name":14,"slug":15,"hue":16},[142,143],{"name":19,"slug":15},{"name":21,"slug":22},[15,22],{"path":146,"title":147,"slug":148,"summary":149,"date":150,"readTime":46,"hasImage":11,"category":151,"tags":155,"tagSlugs":159},"\u002Fposts\u002Fusing-css-transitions","Using CSS Transitions","using-css-transitions","CSS transitions are the standard way to apply transitions to your elements, and have been for years, replacing the old approach of using JavaScript. In this article, I'll go through each of the transition properties available, and provide examples of how to use them.","2016-12-05",{"id":102,"name":152,"slug":153,"hue":154},"HTML & CSS","html-css",55,[156],{"name":157,"slug":158},"CSS","css",[158],{"path":161,"title":162,"slug":163,"summary":164,"date":165,"readTime":13,"hasImage":11,"category":166,"tags":167,"tagSlugs":171},"\u002Fposts\u002Fstructuring-your-website-with-html-5-semantics","Structuring Your Website With HTML 5 Semantics","structuring-your-website-with-html-5-semantics","Prior to HTML 5, there was no real markup to help explain the intent behind your HTML code. The goal of HTML 5 was to offer a more readable way of writing your code, so that any author that comes after you can have an easier time going through what you've created.","2016-12-04",{"id":102,"name":152,"slug":153,"hue":154},[168],{"name":169,"slug":170},"HTML","html",[170],{"path":173,"title":174,"slug":175,"summary":176,"date":177,"readTime":44,"hasImage":11,"category":178,"tags":179,"tagSlugs":184},"\u002Fposts\u002Finterpolation-in-stylus-css-pre-processor","Interpolation in Stylus","interpolation-in-stylus-css-pre-processor","You can also use interpolation to improve your functions for reuse, as well as your other code within your stylesheet. The way it works is that you can wrap your expression within {}, which will then be outputted as the identifier.","2016-12-03",{"id":102,"name":152,"slug":153,"hue":154},[180,183],{"name":181,"slug":182},"Stylus","stylus",{"name":157,"slug":158},[182,158],{"path":186,"title":187,"slug":188,"summary":189,"date":190,"readTime":73,"hasImage":11,"category":191,"tags":192,"tagSlugs":195},"\u002Fposts\u002Fcreating-configuration-files-in-stylus-css-pre-processor","Creating Configuration Files In Stylus","creating-configuration-files-in-stylus-css-pre-processor","It's super simple to create a configuration file for instance that would manage your media query break points. You could also use a configuration file for managing colors, font sizes, and other variables such as gutter spacing and more.","2016-12-02",{"id":102,"name":152,"slug":153,"hue":154},[193,194],{"name":157,"slug":158},{"name":181,"slug":182},[158,182],{"path":197,"title":198,"slug":199,"summary":200,"date":201,"readTime":13,"hasImage":11,"category":202,"tags":203,"tagSlugs":206},"\u002Fposts\u002Fusing-functions-and-mixins-with-stylus-css-pre-processor","Using Functions and Mixins with Stylus","using-functions-and-mixins-with-stylus-css-pre-processor","Stylus allows you to create functions and mixins of reusable code for your stylesheets. You can also handle mathematical operations, unary operations, and more allowing you complete control over your stylesheets with ease.","2016-12-01",{"id":102,"name":152,"slug":153,"hue":154},[204,205],{"name":157,"slug":158},{"name":181,"slug":182},[158,182],{"path":208,"title":209,"slug":210,"summary":211,"date":212,"readTime":44,"hasImage":11,"category":213,"tags":214,"tagSlugs":217},"\u002Fposts\u002Fsetting-variables-in-stylus-css-pre-processor","Setting Variables in Stylus","setting-variables-in-stylus-css-pre-processor","Unlike CSS, in Stylus you can assign expressions to variables that can be reusable throughout your stylesheets.","2016-11-29",{"id":102,"name":152,"slug":153,"hue":154},[215,216],{"name":157,"slug":158},{"name":181,"slug":182},[158,182],{"path":219,"title":220,"slug":221,"summary":222,"date":223,"readTime":61,"hasImage":11,"category":224,"tags":225,"tagSlugs":228},"\u002Fposts\u002Fusing-selectors-in-stylus-css-pre-processor","Using Selectors in Stylus","using-selectors-in-stylus-css-pre-processor","Selectors are a way to pick the elements that you want styled. In Stylus, similar to CSS, you can apply a set of styles to any element by separating them by a comma delimited list. Stylus though, also allows you to select multiple elements by separating each on their own line.","2016-11-28",{"id":102,"name":152,"slug":153,"hue":154},[226,227],{"name":157,"slug":158},{"name":181,"slug":182},[158,182],{"path":230,"title":231,"slug":232,"summary":233,"date":234,"readTime":73,"hasImage":11,"category":235,"tags":236,"tagSlugs":239},"\u002Fposts\u002Flearning-stylus-a-css-pre-processor","Learning Stylus: A CSS Pre-Processor","learning-stylus-a-css-pre-processor","This mini-series will be a little different to how you may see other articles on my site. Really this article is more geared as notes for me as I go through the documentation for Stylus, and learn the ins and outs of this beautiful language.","2016-11-27",{"id":102,"name":152,"slug":153,"hue":154},[237,238],{"name":157,"slug":158},{"name":181,"slug":182},[158,182],{"path":241,"title":242,"slug":243,"summary":244,"date":245,"readTime":13,"hasImage":11,"category":246,"tags":247,"tagSlugs":250},"\u002Fposts\u002Fbem-methodology-overview-and-naming-conventions","BEM Methodology Overview and Naming Conventions","bem-methodology-overview-and-naming-conventions","BEM or Block Element Modifier is a naming convention used to help organize your code base. In this article, I discuss its uses within your CSS projects.","2016-11-26",{"id":102,"name":152,"slug":153,"hue":154},[248,249],{"name":157,"slug":158},{"name":169,"slug":170},[158,170],{"path":252,"title":253,"slug":254,"summary":255,"date":256,"readTime":73,"hasImage":11,"category":257,"tags":258,"tagSlugs":263},"\u002Fposts\u002Fintroduction-to-ecmascript-6","Introduction to ECMAScript 6","introduction-to-ecmascript-6","The latest in ECMAScript 6 introduces new features to JavaScript which makes it so much more fun to use, while solving problems that have been around for years. The intent of this article is to provide you with resources you can use to start learning ES6 today.","2016-11-25",{"id":44,"name":105,"slug":106,"hue":107},[259,260],{"name":105,"slug":106},{"name":261,"slug":262},"ECMAScript","ecmascript",[106,262],{"path":265,"title":266,"slug":267,"summary":268,"date":269,"readTime":102,"hasImage":11,"category":270,"tags":271,"tagSlugs":276},"\u002Fposts\u002Fbabel-installation-and-configuration","Babel Installation and Configuration","babel-installation-and-configuration","Babel offers a convenient way to transform your ES6 code to JavaScript that all browsers can understand. In this article we'll go over a basic configuration that will enable you to start using it with any project right away.","2016-11-24",{"id":44,"name":105,"slug":106,"hue":107},[272,273],{"name":105,"slug":106},{"name":274,"slug":275},"Babel","babel",[106,275],{"path":278,"title":279,"slug":280,"summary":281,"date":282,"readTime":73,"hasImage":11,"category":283,"tags":284,"tagSlugs":291},"\u002Fposts\u002Fconfiguring-stylus-css-pre-processor-with-gulp-and-sourcemaps","Configuring Stylus CSS Pre-Processor with Gulp and Sourcemaps","configuring-stylus-css-pre-processor-with-gulp-and-sourcemaps","In this article we'll go over how to configure your project to process Stylus files using Gulp. We'll also create source map file which your browser will use to help point you in the right direction of your files when developing","2016-11-23",{"id":44,"name":105,"slug":106,"hue":107},[285,286,287,288],{"name":105,"slug":106},{"name":181,"slug":182},{"name":157,"slug":158},{"name":289,"slug":290},"Gulp","gulp",[106,182,158,290],{"path":293,"title":294,"slug":295,"summary":296,"date":297,"readTime":44,"hasImage":11,"category":298,"tags":299,"tagSlugs":306},"\u002Fposts\u002Fconfiguring-gulp-with-less-css-pre-processor","Configuring Gulp With Less CSS Pre-Processor","configuring-gulp-with-less-css-pre-processor","Less is a CSS pre-processor allowing you to create variables, mixins, and functions in an effort to make your CSS more maintainable.","2016-11-22",{"id":44,"name":105,"slug":106,"hue":107},[300,301,302,305],{"name":289,"slug":290},{"name":105,"slug":106},{"name":303,"slug":304},"Less","less",{"name":157,"slug":158},[290,106,304,158],{"path":308,"title":309,"slug":310,"summary":311,"date":312,"readTime":44,"hasImage":103,"category":313,"tags":314,"tagSlugs":320},"\u002Fposts\u002Fusing-browser-sync-with-gulp-for-live-reloading","Using Browser Sync with Gulp for Live Reloading","using-browser-sync-with-gulp-for-live-reloading","Browser Sync is a nice tool to use while developing. It allows your browser to reload live when changes are made to your files. For instance, assuming we're watching our CSS file for changes we can have the browser auto refresh\u002Fsync when it sees those changes made.","2016-11-21",{"id":44,"name":105,"slug":106,"hue":107},[315,316,319],{"name":105,"slug":106},{"name":317,"slug":318},"Browser Sync","browser-sync",{"name":289,"slug":290},[106,318,290],{"path":322,"title":323,"slug":324,"summary":325,"date":326,"readTime":44,"hasImage":11,"category":327,"tags":328,"tagSlugs":334},"\u002Fposts\u002Fgulp-watch-automate-your-gulp-tasks","Gulp Watch: Automate Your Gulp Tasks","gulp-watch-automate-your-gulp-tasks","Gulp watch is perfect for when you're editing project files since it allows you to not have to run the gulp command manually each time.","2016-11-20",{"id":44,"name":105,"slug":106,"hue":107},[329,330,333],{"name":105,"slug":106},{"name":331,"slug":332},"Yarn","yarn",{"name":289,"slug":290},[106,332,290],{"path":336,"title":337,"slug":338,"summary":339,"date":340,"readTime":46,"hasImage":11,"category":341,"tags":342,"tagSlugs":346},"\u002Fposts\u002Fconfiguring-gulp-on-a-new-project","Configuring Gulp On A New Project","configuring-gulp-on-a-new-project","Gulp may seem like a scary thing to wrap your head around at first, but it's actually quite easy to start using once you understand the basics.","2016-11-19",{"id":44,"name":105,"slug":106,"hue":107},[343,344,345],{"name":105,"slug":106},{"name":289,"slug":290},{"name":331,"slug":332},[106,290,332],{"path":348,"title":349,"slug":350,"summary":351,"date":352,"readTime":102,"hasImage":11,"category":353,"tags":354,"tagSlugs":357},"\u002Fposts\u002Fyarn-publishing-a-package","Yarn: Publishing a Package","yarn-publishing-a-package","Publishing a package to the npm repository has never been simpler. With a few steps, you can create a package that is redistributable to all of your projects.","2016-11-18",{"id":44,"name":105,"slug":106,"hue":107},[355,356],{"name":105,"slug":106},{"name":331,"slug":332},[106,332],{"path":359,"title":360,"slug":361,"summary":362,"date":363,"readTime":102,"hasImage":11,"category":364,"tags":365,"tagSlugs":368},"\u002Fposts\u002Fyarn-fast-and-secure-dependency-management","Yarn: Fast and Secure Dependency Management","yarn-fast-and-secure-dependency-management","Yarn is a super simple dependency management tool which is way faster to use instead of traditional npm. It acts as a drop-in replacement, so you can get started using yarn right away. The best way to install yarn is by using npm.","2016-11-17",{"id":44,"name":105,"slug":106,"hue":107},[366,367],{"name":105,"slug":106},{"name":331,"slug":332},[106,332],{"path":370,"title":371,"slug":372,"summary":373,"date":374,"readTime":73,"hasImage":103,"category":375,"tags":376,"tagSlugs":378},"\u002Fposts\u002Fsupport-for-keys-in-list-or-its-new-shorthand-syntax-in-php","Support for keys in list(), or its new shorthand syntax [] in PHP","support-for-keys-in-list-or-its-new-shorthand-syntax-in-php","Now as of PHP 7.1, you can define the keys of your array that will be parsed when destructuring your arrays. Prior to PHP 7.1, you could only use arrays with numeric indexes. Now with this new addition, our lives just got easier.","2016-11-16",{"id":73,"name":118,"slug":119,"hue":120},[377],{"name":118,"slug":119},[119],{"path":380,"title":381,"slug":382,"summary":383,"date":384,"readTime":73,"hasImage":103,"category":385,"tags":386,"tagSlugs":388},"\u002Fposts\u002Ftype-hinting-with-the-iterable-pseudo-type-in-php","Type Hinting With The Iterable pseudo-type In PHP","type-hinting-with-the-iterable-pseudo-type-in-php","As of PHP 7.1, you can now type hint your method\u002Ffunction arguments with the keyword iterable for handling arrays or even objects that implement the Traversable interface.","2016-11-15",{"id":73,"name":118,"slug":119,"hue":120},[387],{"name":118,"slug":119},[119],{"path":390,"title":391,"slug":392,"summary":393,"date":394,"readTime":73,"hasImage":103,"category":395,"tags":396,"tagSlugs":398},"\u002Fposts\u002Ftype-hinting-callable-functions-in-php","Type Hinting Callable Functions in PHP","type-hinting-callable-functions-in-php","As of PHP 5.4, you can type hint your method arguments with the callable keyword allowing you to enforce the type of data that is passed via your arguments.","2016-11-14",{"id":73,"name":118,"slug":119,"hue":120},[397],{"name":118,"slug":119},[119],{"path":400,"title":401,"slug":402,"summary":403,"date":404,"readTime":73,"hasImage":103,"category":405,"tags":406,"tagSlugs":408},"\u002Fposts\u002Fsetting-visibility-for-your-class-constants-in-php","Setting Visibility for Your Class Constants in PHP","setting-visibility-for-your-class-constants-in-php","Now in PHP 7.1+, you can set different visibility modifiers for each of your class constants. The available visibility modifiers consist of public, protected, and private.","2016-11-13",{"id":73,"name":118,"slug":119,"hue":120},[407],{"name":118,"slug":119},[119],{"path":410,"title":411,"slug":412,"summary":413,"date":414,"readTime":73,"hasImage":103,"category":415,"tags":416,"tagSlugs":418},"\u002Fposts\u002Fanonymous-classes-php","Using Anonymous Classes in PHP","anonymous-classes-php","As of PHP 7, you can now create quick throwaway objects for use within your projects. This can be especially useful for your automated tests, for instance, with allowing you to create quick implementations of your interfaces.","2016-11-12",{"id":73,"name":118,"slug":119,"hue":120},[417],{"name":118,"slug":119},[119],{"path":420,"title":421,"slug":422,"summary":423,"date":424,"readTime":73,"hasImage":103,"category":425,"tags":426,"tagSlugs":428},"\u002Fposts\u002Fsymmetric-array-destructuring-in-php","Symmetric Array Destructuring in PHP","symmetric-array-destructuring-in-php","As of PHP 7.1, you can now use the shorthand array syntax to destructure your arrays for assignment. Previously you would have had to use a function like list, but now you can use the simple new array shorthand syntax.","2016-11-11",{"id":73,"name":118,"slug":119,"hue":120},[427],{"name":118,"slug":119},[119],{"path":430,"title":431,"slug":432,"summary":433,"date":434,"readTime":44,"hasImage":103,"category":435,"tags":436,"tagSlugs":438},"\u002Fposts\u002Fphp-array-map-to-format-your-arrays-without-loops","Using PHP's array_map to format your arrays without loops","php-array-map-to-format-your-arrays-without-loops","So let's face it, loops are a bit boring. So how can we mix it up? Let's assume we have a case where we have a CSV file that we want to quickly parse.","2016-11-10",{"id":73,"name":118,"slug":119,"hue":120},[437],{"name":118,"slug":119},[119],{"path":440,"title":441,"slug":442,"summary":443,"date":444,"readTime":10,"hasImage":103,"category":445,"tags":446,"tagSlugs":448},"\u002Fposts\u002Fsolid-principles-in-php","SOLID Principles in PHP","solid-principles-in-php","The 5 basic principles for Object-Oriented Design, SOLID, were first created in an effort to improve maintainability in our code bases. SOLID is a mnemonic acronym that stands for each of the following principles: Single Responsibility, Open-Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion.","2016-11-09",{"id":73,"name":118,"slug":119,"hue":120},[447],{"name":118,"slug":119},[119],{"path":450,"title":451,"slug":452,"summary":453,"date":454,"readTime":73,"hasImage":103,"category":455,"tags":456,"tagSlugs":458},"\u002Fposts\u002Ffiltering-arrays-without-using-loops-in-php","Filtering Arrays Without Using Loops in PHP","filtering-arrays-without-using-loops-in-php","PHP has a built-in function called array_filter that allows you to filter through your arrays without the need for a loop. Personally, this approach feels much cleaner to me and simpler to comprehend.","2016-11-08",{"id":73,"name":118,"slug":119,"hue":120},[457],{"name":118,"slug":119},[119],{"path":460,"title":461,"slug":462,"summary":463,"date":464,"readTime":73,"hasImage":103,"category":465,"tags":466,"tagSlugs":468},"\u002Fposts\u002Fvoid-return-types-in-php","Void Return Types in PHP","void-return-types-in-php","As of PHP 7.1, we can now use void return types within our methods. This is useful for cases where you have methods that are just setting or processing data without the need of returning any values.","2016-11-07",{"id":73,"name":118,"slug":119,"hue":120},[467],{"name":118,"slug":119},[119],{"path":470,"title":471,"slug":472,"summary":473,"date":474,"readTime":73,"hasImage":103,"category":475,"tags":476,"tagSlugs":478},"\u002Fposts\u002Ftype-hinting-with-nullable-types-in-php","Type Hinting with Nullable Types in PHP","type-hinting-with-nullable-types-in-php","As of PHP 7.1, you can now set your type declarations as nullable by simply prefixing them with a question mark ?. In doing so a null value can be passed in as a parameter or returned as a value for your methods.","2016-11-06",{"id":73,"name":118,"slug":119,"hue":120},[477],{"name":118,"slug":119},[119],{"path":480,"title":481,"slug":482,"summary":483,"date":484,"readTime":73,"hasImage":103,"category":485,"tags":486,"tagSlugs":488},"\u002Fposts\u002Fphp-group-multiple-use-declarations","PHP Group Multiple use Declarations","php-group-multiple-use-declarations","As of PHP 7, you can now group your imported classes, functions, and constants from under the same namespace.","2016-11-05",{"id":73,"name":118,"slug":119,"hue":120},[487],{"name":118,"slug":119},[119],{"path":490,"title":491,"slug":492,"summary":493,"date":494,"readTime":73,"hasImage":103,"category":495,"tags":496,"tagSlugs":498},"\u002Fposts\u002Fphp-null-coalescing-operator","PHP Null Coalescing Operator","php-null-coalescing-operator","One of my new favorite additions to PHP 7, is the Null Coalescing Operator. It cleans up your code by removing a tedious step of checking if some value is isset() and not NULL and returning it or if not setting a default.","2016-11-04",{"id":73,"name":118,"slug":119,"hue":120},[497],{"name":118,"slug":119},[119],{"path":500,"title":501,"slug":502,"summary":503,"date":504,"readTime":44,"hasImage":103,"category":505,"tags":506,"tagSlugs":508},"\u002Fposts\u002Fphp-spaceship-operator","PHP Spaceship Operator","php-spaceship-operator","One of the new features to hit PHP 7 is the Spaceship Operator. This new trick helps improve the way you'd compare 2 expressions. In short, the comparison returns 1 of 3 values (-1, 0, or 1) depending on the result of the comparison.","2016-11-03",{"id":73,"name":118,"slug":119,"hue":120},[507],{"name":118,"slug":119},[119],{"path":510,"title":511,"slug":512,"summary":513,"date":514,"readTime":102,"hasImage":103,"category":515,"tags":516,"tagSlugs":518},"\u002Fposts\u002Freturn-type-declarations-in-php","Return Type Declarations in PHP","return-type-declarations-in-php","PHP 7 now makes it possible to declare return types for your methods. This allows you better control over the data that will be returned from each method in your application.","2016-11-02",{"id":73,"name":118,"slug":119,"hue":120},[517],{"name":118,"slug":119},[119],{"path":520,"title":521,"slug":522,"summary":523,"date":524,"readTime":73,"hasImage":103,"category":525,"tags":526,"tagSlugs":528},"\u002Fposts\u002Fscalar-type-hints-php","Scalar Type Hints in PHP","scalar-type-hints-php","Starting with PHP 7.0, it's now possible to declare scalar type hints for your method arguments. Previously, we were able to use array and callable, but now with PHP 7+, we have much more control.","2016-11-01",{"id":73,"name":118,"slug":119,"hue":120},[527],{"name":118,"slug":119},[119],[530,537,543,549,555,561],{"id":531,"description":532,"extension":533,"hue":120,"meta":534,"name":118,"slug":119,"stem":535,"weight":73,"__hash__":536},"categories\u002Fcategories\u002Fphp.json","PHP articles and tutorials ranging from new language features to using interesting packages.","json",{},"categories\u002Fphp","h_EmN4YMO4b2mBt3MPLs7RvscJx0NBmwDIZPxqPqKLE",{"id":538,"description":539,"extension":533,"hue":107,"meta":540,"name":105,"slug":106,"stem":541,"weight":44,"__hash__":542},"categories\u002Fcategories\u002Fjavascript.json","JavaScript articles and tutorials ranging from new language features to using interesting packages.",{},"categories\u002Fjavascript","7gmVgkw5BRo26i1bFoSv96bwDJ4nTtZcJ9Ud6u5p0yk",{"id":544,"description":545,"extension":533,"hue":154,"meta":546,"name":152,"slug":153,"stem":547,"weight":102,"__hash__":548},"categories\u002Fcategories\u002Fhtml-css.json","HTML & CSS articles and tutorials ranging from new language features to using interesting packages.",{},"categories\u002Fhtml-css","vXvPlRA-iaeCJ64Wi3sLyUR0kqL48zYcZWORRqt8N70",{"id":550,"description":551,"extension":533,"hue":16,"meta":552,"name":14,"slug":15,"stem":553,"weight":13,"__hash__":554},"categories\u002Fcategories\u002Fgit.json","Git articles and tutorials ranging from new language features to different workflows.",{},"categories\u002Fgit","qOqFsFTKI9XB444UodUKW_3AakFadHzW-ss8V-maUmE",{"id":556,"description":557,"extension":533,"hue":64,"meta":558,"name":62,"slug":63,"stem":559,"weight":61,"__hash__":560},"categories\u002Fcategories\u002Fflutter.json","Dive into Flutter, the open-source UI software development toolkit, as we explore its capabilities in creating natively compiled applications for mobile, web, and desktop from a single codebase.",{},"categories\u002Fflutter","aD1moU8CgoYt4FRnSeA4Iy9xxnnopdEKBEYP2arAzdI",{"id":562,"description":563,"extension":533,"hue":49,"meta":564,"name":47,"slug":48,"stem":565,"weight":46,"__hash__":566},"categories\u002Fcategories\u002Frust-programming.json","From setting up your environment to advanced concepts, this is your go-to resource for all things Rust.",{},"categories\u002Frust-programming","LscnqSsk-htWc9yZg9eXaIUJwNfTK5oaZOClYKagNC4",{"id":568,"title":220,"body":569,"category":1808,"date":223,"description":602,"extension":1809,"hasImage":11,"meta":1810,"navigation":103,"path":219,"readTime":61,"seo":1811,"slug":221,"stem":1812,"summary":222,"tagSlugs":1813,"tags":1814,"__hash__":1817},"posts\u002Fposts\u002Fusing-selectors-in-stylus-css-pre-processor.md",{"type":570,"value":571,"toc":1800},"minimark",[572,586,588,591,597,623,628,656,661,730,735,738,741,746,776,781,848,852,859,862,865,868,871,874,879,950,953,957,1000,1007,1011,1086,1090,1097,1101,1139,1143,1209,1213,1216,1220,1258,1262,1328,1332,1335,1338,1342,1385,1389,1464,1468,1471,1474,1478,1508,1512,1569,1572,1575,1579,1609,1613,1675,1678,1682,1724,1728,1796],[573,574,576],"note",{"label":575},"Stylus series",[577,578,579,580,585],"p",{},"Part of my ",[581,582,584],"a",{"href":583},"\u002Farticles\u002Flearning-stylus-a-css-pre-processor","Learning Stylus"," series. Stylus still works in 2026, but its ecosystem has largely moved on to Sass, PostCSS, and native CSS; the series intro has the full context.",[577,587,222],{},[577,589,590],{},"Let's look at an example of each to see how this works.",[577,592,593],{},[594,595,596],"strong",{},"Stylus (comma delimited)",[598,599,603],"pre",{"className":600,"code":601,"language":182,"meta":602,"style":602},"language-stylus shiki shiki-themes github-dark github-dark","b, .strong\n  color: green\n  font-style: italic\n","",[604,605,606,613,618],"code",{"__ignoreMap":602},[607,608,610],"span",{"class":609,"line":73},"line",[607,611,612],{},"b, .strong\n",[607,614,615],{"class":609,"line":44},[607,616,617],{},"  color: green\n",[607,619,620],{"class":609,"line":102},[607,621,622],{},"  font-style: italic\n",[577,624,625],{},[594,626,627],{},"Stylus (newline delimited)",[598,629,631],{"className":600,"code":630,"language":182,"meta":602,"style":602},"b\n.strong\n  color: green\n  font-style: italic\n  font-weight: bold\n",[604,632,633,638,643,647,651],{"__ignoreMap":602},[607,634,635],{"class":609,"line":73},[607,636,637],{},"b\n",[607,639,640],{"class":609,"line":44},[607,641,642],{},".strong\n",[607,644,645],{"class":609,"line":102},[607,646,617],{},[607,648,649],{"class":609,"line":13},[607,650,622],{},[607,652,653],{"class":609,"line":61},[607,654,655],{},"  font-weight: bold\n",[577,657,658],{},[594,659,660],{},"Compiled CSS (same output for both examples above)",[598,662,665],{"className":663,"code":664,"language":158,"meta":602,"style":602},"language-css shiki shiki-themes github-dark github-dark","b,\n.strong {\n  color: #008000;\n  font-style: italic;\n  font-weight: bold;\n}\n",[604,666,667,677,686,701,713,725],{"__ignoreMap":602},[607,668,669,673],{"class":609,"line":73},[607,670,672],{"class":671},"sxg3X","b",[607,674,676],{"class":675},"suv1-",",\n",[607,678,679,683],{"class":609,"line":44},[607,680,682],{"class":681},"sFR8T",".strong",[607,684,685],{"class":675}," {\n",[607,687,688,692,695,698],{"class":609,"line":102},[607,689,691],{"class":690},"s8ozJ","  color",[607,693,694],{"class":675},": ",[607,696,697],{"class":690},"#008000",[607,699,700],{"class":675},";\n",[607,702,703,706,708,711],{"class":609,"line":13},[607,704,705],{"class":690},"  font-style",[607,707,694],{"class":675},[607,709,710],{"class":690},"italic",[607,712,700],{"class":675},[607,714,715,718,720,723],{"class":609,"line":61},[607,716,717],{"class":690},"  font-weight",[607,719,694],{"class":675},[607,721,722],{"class":690},"bold",[607,724,700],{"class":675},[607,726,727],{"class":609,"line":46},[607,728,729],{"class":675},"}\n",[731,732,734],"h2",{"id":733},"parent-selector","Parent Selector",[577,736,737],{},"You can also reference the parent elements for a particular style by using the & ampersand symbol. For instance, let's assume you want to add a hover for color changes to some elements.",[577,739,740],{},"If you need to use the ampersand symbol within a selector without it referencing the parent, then you can use the backslash character to escape it. &",[577,742,743],{},[594,744,745],{},"Stylus Code",[598,747,749],{"className":600,"code":748,"language":182,"meta":602,"style":602},"textarea, input\n  color: lightgray\n\n  &:hover\n    color: gray\n",[604,750,751,756,761,766,771],{"__ignoreMap":602},[607,752,753],{"class":609,"line":73},[607,754,755],{},"textarea, input\n",[607,757,758],{"class":609,"line":44},[607,759,760],{},"  color: lightgray\n",[607,762,763],{"class":609,"line":102},[607,764,765],{"emptyLinePlaceholder":103},"\n",[607,767,768],{"class":609,"line":13},[607,769,770],{},"  &:hover\n",[607,772,773],{"class":609,"line":61},[607,774,775],{},"    color: gray\n",[577,777,778],{},[594,779,780],{},"Stylus Output",[598,782,784],{"className":663,"code":783,"language":158,"meta":602,"style":602},"textarea,\ninput {\n  color: #d3d3d3;\n}\ntextarea:hover,\ninput:hover {\n  color: #808080;\n}\n",[604,785,786,793,800,811,815,824,832,843],{"__ignoreMap":602},[607,787,788,791],{"class":609,"line":73},[607,789,790],{"class":671},"textarea",[607,792,676],{"class":675},[607,794,795,798],{"class":609,"line":44},[607,796,797],{"class":671},"input",[607,799,685],{"class":675},[607,801,802,804,806,809],{"class":609,"line":102},[607,803,691],{"class":690},[607,805,694],{"class":675},[607,807,808],{"class":690},"#d3d3d3",[607,810,700],{"class":675},[607,812,813],{"class":609,"line":13},[607,814,729],{"class":675},[607,816,817,819,822],{"class":609,"line":61},[607,818,790],{"class":671},[607,820,821],{"class":681},":hover",[607,823,676],{"class":675},[607,825,826,828,830],{"class":609,"line":46},[607,827,797],{"class":671},[607,829,821],{"class":681},[607,831,685],{"class":675},[607,833,834,836,838,841],{"class":609,"line":10},[607,835,691],{"class":690},[607,837,694],{"class":675},[607,839,840],{"class":690},"#808080",[607,842,700],{"class":675},[607,844,846],{"class":609,"line":845},8,[607,847,729],{"class":675},[731,849,851],{"id":850},"partial-reference","Partial Reference",[577,853,854,855,858],{},"Partial selectors ^",[607,856,857],{},"N"," can be used anywhere within your selectors allowing you to reference a specific level of the parent where N is your numeric level starting at 0, which is the highest element within your chain. When rendered, they contain the entire chain of your selectors until the specified nested level.",[577,860,861],{},"If you use a positive number then the higher the number, the closer to your actual element in the chain you're styling you are.",[577,863,864],{},"If you use a negative number, it would be the complete reverse. Instead of starting from the first element in your chain, you would start from the current element and reversely traverse the chain.",[577,866,867],{},"They are especially useful when using them within your mixins when you are unaware of the nesting level your mixin may be called from.",[577,869,870],{},"Let's look at an example to see how this can be used in application.",[577,872,873],{},"We'll start by setting up our HTML",[577,875,876],{},[594,877,878],{},"HTML Code",[598,880,883],{"className":881,"code":882,"language":170,"meta":602,"style":602},"language-html shiki shiki-themes github-dark github-dark","\u003Ch1 class=\"page-header\">\n    Page Title\n    \u003Cspan class=\"page-header--highlight-word\">\n        Here\n    \u003C\u002Fspan>\n\u003C\u002Fh1>\n",[604,884,885,906,911,927,932,941],{"__ignoreMap":602},[607,886,887,890,893,896,899,903],{"class":609,"line":73},[607,888,889],{"class":675},"\u003C",[607,891,892],{"class":671},"h1",[607,894,895],{"class":681}," class",[607,897,898],{"class":675},"=",[607,900,902],{"class":901},"s4wv1","\"page-header\"",[607,904,905],{"class":675},">\n",[607,907,908],{"class":609,"line":44},[607,909,910],{"class":675},"    Page Title\n",[607,912,913,916,918,920,922,925],{"class":609,"line":102},[607,914,915],{"class":675},"    \u003C",[607,917,607],{"class":671},[607,919,895],{"class":681},[607,921,898],{"class":675},[607,923,924],{"class":901},"\"page-header--highlight-word\"",[607,926,905],{"class":675},[607,928,929],{"class":609,"line":13},[607,930,931],{"class":675},"        Here\n",[607,933,934,937,939],{"class":609,"line":61},[607,935,936],{"class":675},"    \u003C\u002F",[607,938,607],{"class":671},[607,940,905],{"class":675},[607,942,943,946,948],{"class":609,"line":46},[607,944,945],{"class":675},"\u003C\u002F",[607,947,892],{"class":671},[607,949,905],{"class":675},[577,951,952],{},"Now, let's make it so that when you hover over any part of the title that the word \"Here\" changes from one color to another.",[577,954,955],{},[594,956,745],{},[598,958,960],{"className":600,"code":959,"language":182,"meta":602,"style":602},".page-header\n  color: darkgreen\n\n  &--highlight-word\n    color: lightgreen\n\n    ^[0]:hover &\n          color: greenyellow\n",[604,961,962,967,972,976,981,986,990,995],{"__ignoreMap":602},[607,963,964],{"class":609,"line":73},[607,965,966],{},".page-header\n",[607,968,969],{"class":609,"line":44},[607,970,971],{},"  color: darkgreen\n",[607,973,974],{"class":609,"line":102},[607,975,765],{"emptyLinePlaceholder":103},[607,977,978],{"class":609,"line":13},[607,979,980],{},"  &--highlight-word\n",[607,982,983],{"class":609,"line":61},[607,984,985],{},"    color: lightgreen\n",[607,987,988],{"class":609,"line":46},[607,989,765],{"emptyLinePlaceholder":103},[607,991,992],{"class":609,"line":10},[607,993,994],{},"    ^[0]:hover &\n",[607,996,997],{"class":609,"line":845},[607,998,999],{},"          color: greenyellow\n",[577,1001,1002,1003,1006],{},"You'll see that we were able to select \".page-header\" and state that on hover of that element apply the color change to the element ",[604,1004,1005],{},"&--highlight-word",".",[577,1008,1009],{},[594,1010,780],{},[598,1012,1014],{"className":663,"code":1013,"language":158,"meta":602,"style":602},".page-header {\n  color: #006400;\n}\n.page-header--highlight-word {\n  color: #90ee90;\n}\n.page-header:hover .page-header--highlight-word {\n  color: #adff2f;\n}\n",[604,1015,1016,1023,1034,1038,1045,1056,1060,1070,1081],{"__ignoreMap":602},[607,1017,1018,1021],{"class":609,"line":73},[607,1019,1020],{"class":681},".page-header",[607,1022,685],{"class":675},[607,1024,1025,1027,1029,1032],{"class":609,"line":44},[607,1026,691],{"class":690},[607,1028,694],{"class":675},[607,1030,1031],{"class":690},"#006400",[607,1033,700],{"class":675},[607,1035,1036],{"class":609,"line":102},[607,1037,729],{"class":675},[607,1039,1040,1043],{"class":609,"line":13},[607,1041,1042],{"class":681},".page-header--highlight-word",[607,1044,685],{"class":675},[607,1046,1047,1049,1051,1054],{"class":609,"line":61},[607,1048,691],{"class":690},[607,1050,694],{"class":675},[607,1052,1053],{"class":690},"#90ee90",[607,1055,700],{"class":675},[607,1057,1058],{"class":609,"line":46},[607,1059,729],{"class":675},[607,1061,1062,1065,1068],{"class":609,"line":10},[607,1063,1064],{"class":681},".page-header:hover",[607,1066,1067],{"class":681}," .page-header--highlight-word",[607,1069,685],{"class":675},[607,1071,1072,1074,1076,1079],{"class":609,"line":845},[607,1073,691],{"class":690},[607,1075,694],{"class":675},[607,1077,1078],{"class":690},"#adff2f",[607,1080,700],{"class":675},[607,1082,1084],{"class":609,"line":1083},9,[607,1085,729],{"class":675},[731,1087,1089],{"id":1088},"initial-reference","Initial Reference",[577,1091,1092,1093,1096],{},"A shortcut really to ^",[607,1094,1095],{},"0",", the initial reference ~\u002F can only be used at the start of your selector. We can update our example code above to take advantage of this shortcut like so.",[577,1098,1099],{},[594,1100,745],{},[598,1102,1104],{"className":600,"code":1103,"language":182,"meta":602,"style":602},".page-header\n  color: darkgreen\n\n  &--highlight-word\n    color: lightgreen\n\n    ~\u002F:hover &\n          color: greenyellow\n",[604,1105,1106,1110,1114,1118,1122,1126,1130,1135],{"__ignoreMap":602},[607,1107,1108],{"class":609,"line":73},[607,1109,966],{},[607,1111,1112],{"class":609,"line":44},[607,1113,971],{},[607,1115,1116],{"class":609,"line":102},[607,1117,765],{"emptyLinePlaceholder":103},[607,1119,1120],{"class":609,"line":13},[607,1121,980],{},[607,1123,1124],{"class":609,"line":61},[607,1125,985],{},[607,1127,1128],{"class":609,"line":46},[607,1129,765],{"emptyLinePlaceholder":103},[607,1131,1132],{"class":609,"line":10},[607,1133,1134],{},"    ~\u002F:hover &\n",[607,1136,1137],{"class":609,"line":845},[607,1138,999],{},[577,1140,1141],{},[594,1142,780],{},[598,1144,1145],{"className":663,"code":1013,"language":158,"meta":602,"style":602},[604,1146,1147,1153,1163,1167,1173,1183,1187,1195,1205],{"__ignoreMap":602},[607,1148,1149,1151],{"class":609,"line":73},[607,1150,1020],{"class":681},[607,1152,685],{"class":675},[607,1154,1155,1157,1159,1161],{"class":609,"line":44},[607,1156,691],{"class":690},[607,1158,694],{"class":675},[607,1160,1031],{"class":690},[607,1162,700],{"class":675},[607,1164,1165],{"class":609,"line":102},[607,1166,729],{"class":675},[607,1168,1169,1171],{"class":609,"line":13},[607,1170,1042],{"class":681},[607,1172,685],{"class":675},[607,1174,1175,1177,1179,1181],{"class":609,"line":61},[607,1176,691],{"class":690},[607,1178,694],{"class":675},[607,1180,1053],{"class":690},[607,1182,700],{"class":675},[607,1184,1185],{"class":609,"line":46},[607,1186,729],{"class":675},[607,1188,1189,1191,1193],{"class":609,"line":10},[607,1190,1064],{"class":681},[607,1192,1067],{"class":681},[607,1194,685],{"class":675},[607,1196,1197,1199,1201,1203],{"class":609,"line":845},[607,1198,691],{"class":690},[607,1200,694],{"class":675},[607,1202,1078],{"class":690},[607,1204,700],{"class":675},[607,1206,1207],{"class":609,"line":1083},[607,1208,729],{"class":675},[731,1210,1212],{"id":1211},"relative-reference","Relative Reference",[577,1214,1215],{},"The relative reference ..\u002F can also only be used at the start of your selectors. They can be used to go as far up the chain as you'd like.",[577,1217,1218],{},[594,1219,745],{},[598,1221,1223],{"className":600,"code":1222,"language":182,"meta":602,"style":602},".page-header\n  color: darkgreen\n\n  &--highlight-word\n    color: lightgreen\n\n    ..\u002F:hover &\n          color: greenyellow\n",[604,1224,1225,1229,1233,1237,1241,1245,1249,1254],{"__ignoreMap":602},[607,1226,1227],{"class":609,"line":73},[607,1228,966],{},[607,1230,1231],{"class":609,"line":44},[607,1232,971],{},[607,1234,1235],{"class":609,"line":102},[607,1236,765],{"emptyLinePlaceholder":103},[607,1238,1239],{"class":609,"line":13},[607,1240,980],{},[607,1242,1243],{"class":609,"line":61},[607,1244,985],{},[607,1246,1247],{"class":609,"line":46},[607,1248,765],{"emptyLinePlaceholder":103},[607,1250,1251],{"class":609,"line":10},[607,1252,1253],{},"    ..\u002F:hover &\n",[607,1255,1256],{"class":609,"line":845},[607,1257,999],{},[577,1259,1260],{},[594,1261,780],{},[598,1263,1264],{"className":663,"code":1013,"language":158,"meta":602,"style":602},[604,1265,1266,1272,1282,1286,1292,1302,1306,1314,1324],{"__ignoreMap":602},[607,1267,1268,1270],{"class":609,"line":73},[607,1269,1020],{"class":681},[607,1271,685],{"class":675},[607,1273,1274,1276,1278,1280],{"class":609,"line":44},[607,1275,691],{"class":690},[607,1277,694],{"class":675},[607,1279,1031],{"class":690},[607,1281,700],{"class":675},[607,1283,1284],{"class":609,"line":102},[607,1285,729],{"class":675},[607,1287,1288,1290],{"class":609,"line":13},[607,1289,1042],{"class":681},[607,1291,685],{"class":675},[607,1293,1294,1296,1298,1300],{"class":609,"line":61},[607,1295,691],{"class":690},[607,1297,694],{"class":675},[607,1299,1053],{"class":690},[607,1301,700],{"class":675},[607,1303,1304],{"class":609,"line":46},[607,1305,729],{"class":675},[607,1307,1308,1310,1312],{"class":609,"line":10},[607,1309,1064],{"class":681},[607,1311,1067],{"class":681},[607,1313,685],{"class":675},[607,1315,1316,1318,1320,1322],{"class":609,"line":845},[607,1317,691],{"class":690},[607,1319,694],{"class":675},[607,1321,1078],{"class":690},[607,1323,700],{"class":675},[607,1325,1326],{"class":609,"line":1083},[607,1327,729],{"class":675},[731,1329,1331],{"id":1330},"root-reference","Root Reference",[577,1333,1334],{},"The root selector \u002F, is a reference to your document root. For instance, let's assume you had a set of styles that you also wanted to assign to a root level class.",[577,1336,1337],{},"In our example we'll create a class .hover-color, which does just that. On hover it changes the color of the text it is applied to. We'll just append to our existing code to show off how to do this.",[577,1339,1340],{},[594,1341,745],{},[598,1343,1345],{"className":600,"code":1344,"language":182,"meta":602,"style":602},".page-header\n  color: darkgreen\n\n  &--highlight-word\n    color: lightgreen\n\n    ~\u002F:hover &,\n      \u002F.hover-color:hover\n          color: greenyellow\n",[604,1346,1347,1351,1355,1359,1363,1367,1371,1376,1381],{"__ignoreMap":602},[607,1348,1349],{"class":609,"line":73},[607,1350,966],{},[607,1352,1353],{"class":609,"line":44},[607,1354,971],{},[607,1356,1357],{"class":609,"line":102},[607,1358,765],{"emptyLinePlaceholder":103},[607,1360,1361],{"class":609,"line":13},[607,1362,980],{},[607,1364,1365],{"class":609,"line":61},[607,1366,985],{},[607,1368,1369],{"class":609,"line":46},[607,1370,765],{"emptyLinePlaceholder":103},[607,1372,1373],{"class":609,"line":10},[607,1374,1375],{},"    ~\u002F:hover &,\n",[607,1377,1378],{"class":609,"line":845},[607,1379,1380],{},"      \u002F.hover-color:hover\n",[607,1382,1383],{"class":609,"line":1083},[607,1384,999],{},[577,1386,1387],{},[594,1388,780],{},[598,1390,1392],{"className":663,"code":1391,"language":158,"meta":602,"style":602},".page-header {\n  color: #006400;\n}\n.page-header--highlight-word {\n  color: #90ee90;\n}\n.page-header:hover .page-header--highlight-word,\n.hover-color:hover {\n  color: #adff2f;\n}\n",[604,1393,1394,1400,1410,1414,1420,1430,1434,1442,1449,1459],{"__ignoreMap":602},[607,1395,1396,1398],{"class":609,"line":73},[607,1397,1020],{"class":681},[607,1399,685],{"class":675},[607,1401,1402,1404,1406,1408],{"class":609,"line":44},[607,1403,691],{"class":690},[607,1405,694],{"class":675},[607,1407,1031],{"class":690},[607,1409,700],{"class":675},[607,1411,1412],{"class":609,"line":102},[607,1413,729],{"class":675},[607,1415,1416,1418],{"class":609,"line":13},[607,1417,1042],{"class":681},[607,1419,685],{"class":675},[607,1421,1422,1424,1426,1428],{"class":609,"line":61},[607,1423,691],{"class":690},[607,1425,694],{"class":675},[607,1427,1053],{"class":690},[607,1429,700],{"class":675},[607,1431,1432],{"class":609,"line":46},[607,1433,729],{"class":675},[607,1435,1436,1438,1440],{"class":609,"line":10},[607,1437,1064],{"class":681},[607,1439,1067],{"class":681},[607,1441,676],{"class":675},[607,1443,1444,1447],{"class":609,"line":845},[607,1445,1446],{"class":681},".hover-color:hover",[607,1448,685],{"class":675},[607,1450,1451,1453,1455,1457],{"class":609,"line":1083},[607,1452,691],{"class":690},[607,1454,694],{"class":675},[607,1456,1078],{"class":690},[607,1458,700],{"class":675},[607,1460,1462],{"class":609,"line":1461},10,[607,1463,729],{"class":675},[731,1465,1467],{"id":1466},"selector-and-selectors","selector() and selectors()",[577,1469,1470],{},"There are 2 functions available to you as well that allow you to get the currently rendered selectors from the current chain.",[577,1472,1473],{},"Here's an example using the selector() function.",[577,1475,1476],{},[594,1477,745],{},[598,1479,1481],{"className":600,"code":1480,"language":182,"meta":602,"style":602},".page-header\n  color: darkgreen\n\n  &--highlight-word\n    color: lightgreen\n    content: selector()\n",[604,1482,1483,1487,1491,1495,1499,1503],{"__ignoreMap":602},[607,1484,1485],{"class":609,"line":73},[607,1486,966],{},[607,1488,1489],{"class":609,"line":44},[607,1490,971],{},[607,1492,1493],{"class":609,"line":102},[607,1494,765],{"emptyLinePlaceholder":103},[607,1496,1497],{"class":609,"line":13},[607,1498,980],{},[607,1500,1501],{"class":609,"line":61},[607,1502,985],{},[607,1504,1505],{"class":609,"line":46},[607,1506,1507],{},"    content: selector()\n",[577,1509,1510],{},[594,1511,780],{},[598,1513,1515],{"className":663,"code":1514,"language":158,"meta":602,"style":602},".page-header {\n  color: #006400;\n}\n.page-header--highlight-word {\n  color: #90ee90;\n  content: '.page-header--highlight-word';\n}\n",[604,1516,1517,1523,1533,1537,1543,1553,1565],{"__ignoreMap":602},[607,1518,1519,1521],{"class":609,"line":73},[607,1520,1020],{"class":681},[607,1522,685],{"class":675},[607,1524,1525,1527,1529,1531],{"class":609,"line":44},[607,1526,691],{"class":690},[607,1528,694],{"class":675},[607,1530,1031],{"class":690},[607,1532,700],{"class":675},[607,1534,1535],{"class":609,"line":102},[607,1536,729],{"class":675},[607,1538,1539,1541],{"class":609,"line":13},[607,1540,1042],{"class":681},[607,1542,685],{"class":675},[607,1544,1545,1547,1549,1551],{"class":609,"line":61},[607,1546,691],{"class":690},[607,1548,694],{"class":675},[607,1550,1053],{"class":690},[607,1552,700],{"class":675},[607,1554,1555,1558,1560,1563],{"class":609,"line":46},[607,1556,1557],{"class":690},"  content",[607,1559,694],{"class":675},[607,1561,1562],{"class":901},"'.page-header--highlight-word'",[607,1564,700],{"class":675},[607,1566,1567],{"class":609,"line":10},[607,1568,729],{"class":675},[577,1570,1571],{},"You'll see that the content is now filled with the current rendered class name.",[577,1573,1574],{},"If we were to change the above from selector() to selectors(), you'd see that all of the classes from the chain would appear.",[577,1576,1577],{},[594,1578,745],{},[598,1580,1582],{"className":600,"code":1581,"language":182,"meta":602,"style":602},".page-header\n  color: darkgreen\n\n  &--highlight-word\n    color: lightgreen\n    content: selectors()\n",[604,1583,1584,1588,1592,1596,1600,1604],{"__ignoreMap":602},[607,1585,1586],{"class":609,"line":73},[607,1587,966],{},[607,1589,1590],{"class":609,"line":44},[607,1591,971],{},[607,1593,1594],{"class":609,"line":102},[607,1595,765],{"emptyLinePlaceholder":103},[607,1597,1598],{"class":609,"line":13},[607,1599,980],{},[607,1601,1602],{"class":609,"line":61},[607,1603,985],{},[607,1605,1606],{"class":609,"line":46},[607,1607,1608],{},"    content: selectors()\n",[577,1610,1611],{},[594,1612,780],{},[598,1614,1616],{"className":663,"code":1615,"language":158,"meta":602,"style":602},".page-header {\n  color: #006400;\n}\n.page-header--highlight-word {\n  color: #90ee90;\n  content: '.page-header', '&--highlight-word';\n}\n",[604,1617,1618,1624,1634,1638,1644,1654,1671],{"__ignoreMap":602},[607,1619,1620,1622],{"class":609,"line":73},[607,1621,1020],{"class":681},[607,1623,685],{"class":675},[607,1625,1626,1628,1630,1632],{"class":609,"line":44},[607,1627,691],{"class":690},[607,1629,694],{"class":675},[607,1631,1031],{"class":690},[607,1633,700],{"class":675},[607,1635,1636],{"class":609,"line":102},[607,1637,729],{"class":675},[607,1639,1640,1642],{"class":609,"line":13},[607,1641,1042],{"class":681},[607,1643,685],{"class":675},[607,1645,1646,1648,1650,1652],{"class":609,"line":61},[607,1647,691],{"class":690},[607,1649,694],{"class":675},[607,1651,1053],{"class":690},[607,1653,700],{"class":675},[607,1655,1656,1658,1660,1663,1666,1669],{"class":609,"line":46},[607,1657,1557],{"class":690},[607,1659,694],{"class":675},[607,1661,1662],{"class":901},"'.page-header'",[607,1664,1665],{"class":675},", ",[607,1667,1668],{"class":901},"'&--highlight-word'",[607,1670,700],{"class":675},[607,1672,1673],{"class":609,"line":10},[607,1674,729],{"class":675},[577,1676,1677],{},"You can also use the selector() function to create your nested selector structure.",[577,1679,1680],{},[594,1681,745],{},[598,1683,1685],{"className":600,"code":1684,"language":182,"meta":602,"style":602},"{ selector('.page-header') }\n   color: darkgreen\n\n{ selector('.page-header', '&--highlight-word') }\n  color: lightgreen\n\n{ selector('.page-header', 'span') }\n  font-weight: bold\n",[604,1686,1687,1692,1697,1701,1706,1711,1715,1720],{"__ignoreMap":602},[607,1688,1689],{"class":609,"line":73},[607,1690,1691],{},"{ selector('.page-header') }\n",[607,1693,1694],{"class":609,"line":44},[607,1695,1696],{},"   color: darkgreen\n",[607,1698,1699],{"class":609,"line":102},[607,1700,765],{"emptyLinePlaceholder":103},[607,1702,1703],{"class":609,"line":13},[607,1704,1705],{},"{ selector('.page-header', '&--highlight-word') }\n",[607,1707,1708],{"class":609,"line":61},[607,1709,1710],{},"  color: lightgreen\n",[607,1712,1713],{"class":609,"line":46},[607,1714,765],{"emptyLinePlaceholder":103},[607,1716,1717],{"class":609,"line":10},[607,1718,1719],{},"{ selector('.page-header', 'span') }\n",[607,1721,1722],{"class":609,"line":845},[607,1723,655],{},[577,1725,1726],{},[594,1727,780],{},[598,1729,1731],{"className":663,"code":1730,"language":158,"meta":602,"style":602},".page-header {\n  color: #006400;\n}\n.page-header--highlight-word {\n  color: #90ee90;\n}\n.page-header span {\n  font-weight: bold;\n}\n",[604,1732,1733,1739,1749,1753,1759,1769,1773,1782,1792],{"__ignoreMap":602},[607,1734,1735,1737],{"class":609,"line":73},[607,1736,1020],{"class":681},[607,1738,685],{"class":675},[607,1740,1741,1743,1745,1747],{"class":609,"line":44},[607,1742,691],{"class":690},[607,1744,694],{"class":675},[607,1746,1031],{"class":690},[607,1748,700],{"class":675},[607,1750,1751],{"class":609,"line":102},[607,1752,729],{"class":675},[607,1754,1755,1757],{"class":609,"line":13},[607,1756,1042],{"class":681},[607,1758,685],{"class":675},[607,1760,1761,1763,1765,1767],{"class":609,"line":61},[607,1762,691],{"class":690},[607,1764,694],{"class":675},[607,1766,1053],{"class":690},[607,1768,700],{"class":675},[607,1770,1771],{"class":609,"line":46},[607,1772,729],{"class":675},[607,1774,1775,1777,1780],{"class":609,"line":10},[607,1776,1020],{"class":681},[607,1778,1779],{"class":671}," span",[607,1781,685],{"class":675},[607,1783,1784,1786,1788,1790],{"class":609,"line":845},[607,1785,717],{"class":690},[607,1787,694],{"class":675},[607,1789,722],{"class":690},[607,1791,700],{"class":675},[607,1793,1794],{"class":609,"line":1083},[607,1795,729],{"class":675},[1797,1798,1799],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sxg3X, html code.shiki .sxg3X{--shiki-default:#85E89D;--shiki-dark:#85E89D}html pre.shiki code .suv1-, html code.shiki .suv1-{--shiki-default:#E1E4E8;--shiki-dark:#E1E4E8}html pre.shiki code .sFR8T, html code.shiki .sFR8T{--shiki-default:#B392F0;--shiki-dark:#B392F0}html pre.shiki code .s8ozJ, html code.shiki .s8ozJ{--shiki-default:#79B8FF;--shiki-dark:#79B8FF}html pre.shiki code .s4wv1, html code.shiki .s4wv1{--shiki-default:#9ECBFF;--shiki-dark:#9ECBFF}",{"title":602,"searchDepth":44,"depth":44,"links":1801},[1802,1803,1804,1805,1806,1807],{"id":733,"depth":44,"text":734},{"id":850,"depth":44,"text":851},{"id":1088,"depth":44,"text":1089},{"id":1211,"depth":44,"text":1212},{"id":1330,"depth":44,"text":1331},{"id":1466,"depth":44,"text":1467},{"id":102,"name":152,"slug":153,"hue":154},"md",{},{"title":220,"description":602},"posts\u002Fusing-selectors-in-stylus-css-pre-processor",[158,182],[1815,1816],{"name":157,"slug":158},{"name":181,"slug":182},"4YWgAtvxMb-uY8Vuc45Bnl0AtZiiO-ueMZieTSKxb0g",1781454357676]