Well, this one just stung me and a client after migrating from Bootstrap v3 over to v4 in a project.
In Bootstrap of yesteryear, you overrode colours using separately named variables like $brand-primary if you’re new to v4, you’ll probably try and use variables like these and discover they do nothing.
In Bootstrap v4 colours have been moved into a Sass map. This means separate variables for colours no longer exist. The theme colours are now defined inside of Bootstrap’s variables file here which is a map of colours using similar names from v3.
I have been waiting for this day to come for a long time now: the Aurelia CLI now supports scaffolding Webpack applications from scratch.
My biggest gripe with the skeletons the Aurelia team provide is they have a lot of stuff in them I have to remove for every new project.
Admittedly, the skeletons serve to showcase how a functional Aurelia application could look like — but make a lot of assumptions on things like using a router or Fetch to make HTTP requests.
For a while I’ve had a great domain name just lying around and it dawned on me what it could be a while ago, so I decided to use seo.fit for a SEO analysis tool that gives you SEO information about a domain and improvements. The purpose seemed fitting for the domain.
It’s not an original idea because there are tonnes of these sites around and admittedly, it didn’t take hardly any effort but it’s a step in the right direction for me by actually following through on my side project ideas and launching them.
Firebase Cloud Functions are fantastic, but the URL that you get to run them isn’t so nice. You’ll get given a URL that looks like the following when you create some cloud functions:
https://us-central1-demoapp.cloudfunctions.net/functionName If you are wanting to use Firebase to build an API for your application for example (like I wanted to), then you would probably prefer your URL looks like this:
https://myapp.com/functionName Fortunately, you can. The only downside is you have to use Firebase hosting if you want to be able to alias your functions to your name. If you’re self-hosting your own site somewhere else and using Firebase, then you can’t alias cloud functions.
As a developer, I love Github and use it to not only contain my public and private development projects, but also follow other interesting projects. Sometimes I’ll fork a project if I want to contribute to it or star a repository if I am interested in using it now or later.
I joined Github on August 18, 2010 so I have been an active member of Github for seven years now.
If you’re using the fantastic Ubuntu Bash terminal in Windows 10 which gives you a proper Ubuntu Linux terminal window and subsystem, you’re probably wanting to access files on your main drive.
To get to your C drive which has your files, you can just type:
cd /mnt/c I don’t know about you, but typing that is painful. By creating an alias in your .bashrc file which is a configuration file for the Ubuntu terminal instance, you can create a shortcut to the C drive (and other mounted drives as well).
As a self-taught developer, it’s easy to feel like you missed out on something, and assume your colleagues who did get a degree know more than you. Your colleagues know about algorithms and CS concepts like data structures and you most likely don’t.
Does having a degree or not having a degree even matter? In my experience as a self-taught developer: no.
While having knowledge of algorithms might come in handy once in a blue moon, most of the time you’re just trying to get your CSS and Javascript to work in Chrome, Firefox and Internet Explorer.
The hardest part about blogging is thinking of what you should say. For me, this blog has become focused heavily on Aurelia and Javascript, blogging about other things occasionally. I tend to stick within the front-end development niche.
When it comes to blog post ideas, believe it or not: Stack Overflow has been a very influential part of my writing. I’ve written blog posts that were inspired by problems with cool solutions or niche features in a framework not many are aware of.
Aurelia supports the element provided via the HTML Web Components specification, which allows you to define placeholders in your HTML that can be replaced.
A lot of examples around seem to wrap a slot with a DIV, perhaps a class. The issue with this approach is if you have a styled DIV wrapping a slot and that slot is empty, your DIV will still be affecting the space around it. This is where the ability to check if a user has provided a slot or not helps.
Recently in an Aurelia project, I was working with nested repeaters (3 levels deep). The problem was I needed to get the $index from the top level repeater (so, level one). Instinctively, I presumed that you could do this:
$parent.$parent.$parent.$index This does not work. The $parent variable only extends to the parent and cannot be chained.
I asked in the Aurelia team chat if anyone had a solution and thankfully core Aurelia developer Ashley Grant chimed in with a great solution that he learned from one of Rob’s intermediate training videos, that I had to share.