Howdy folks, co-founder of
@CodePen
here. 🤘
Why would you, fellow front-end designer & developer, want a CodePen account?
Well it’s my job to make sure that has a clear answer, so I’m gonna thread 🧵 it up for ya to explore and understand.
I'm just extremely confused. Like the INTERNET COMPANY Google. The CLOUD SERVICES PROVIDER Google. The company who's success partially rests on us trusting them to DO THE WORLD WIDE WEB GOOD. Is like... domain names? Not for us. We're gonna let this WYSIWYG CMS handle that.
my bank on phone: we need to verify your identity.
me: ok
bank: we’re going to text you a secret code.
me: ok
bank: what’s your number?
me: i think i’ve identified a small loophole in your security
I used to be all like
console.log("myVariable: ", myVariable);
and now I be all like
console.log({ myVariable });
cuz DevTools automatically logs it with the name then.
You know like when your parents ask you a technology question and you don’t know the answer but you figure out and fix the problem anyway through troubleshooting?
That’s why you should apply to basically any job you want.
LOOK. This is just a regular ol' website. No JavaScript whatsoever. Navigation pages with clicks <a> links to other HTML pages. The most basic website in the world. Yet, with a few lines of code to activate View Transitions, KAPOW.
Very clever CSS trickery here from Carter Li. If you declare a CSS Custom Property as an <integer>, then it can be interpolated as an integer. Meaning it can be animated!
If you really think it's more understandable to put a $ in docs for terminal commands, e.g.
$ brew install buttnugget
then a UX touch is:
code.command::before {
content: "$ ";
}
so that I don't copy it when I copy the command and have it fail in the actual terminal.
Ooooo I think this is clever. If you need to link to an SVG file rather than use inline <svg>, the temptation is to use it as a background-image. But if it’s single-color, you can use it as a `mask` instead, which makes changing the color way easier.
Just one of those little things about CSS you need to know... when styling links, you put the pseudos in this order:
:link (meh)
:visited
:hover
:active
:focus
Otherwise, you might, say, override your hover style with your visited style.
webpack not Webpack
WordPress not Wordpress
CodePen not Codepen
npm not NPM
Sass not SASS
Less not LESS
Eleventy not 11ty (unless referring to org)
JavaScript not Javascript
Typekit not TypeKit
WebKit not Webkit
Gmail not GMail
Star Trek not Star Wars
Everything you learn about front-end development without using a framework is still useful while you are using a framework, or when the framework changes.
I was unaware of `text-wrap: pretty;`
I knew about the (new/cool) `text-wrap: balance;` — but sometimes that's a bit... too much. I feel like it's nice on headers but not smaller type.
Here's what I mean.
It turns out that if you place 180 <hr>'s in the middle of the screen and rotate them all 1 degree more than the last, it rips open an interdimensional portal in spacetime.
So if I seem smarter and more handsome lately, it's probably that it's another Chris from a higher plane.
When I write JavaScript it just flows forth from my brain perfectly formed. I never look anything up or use trial and error. That’s how perfect it is and I am.
The
#1
word I delete in tech article drafts is "simply".
I do think that word is a bit exclusionary in that it's very possibly someone reading doesn't find the task simple at all.
But moreso, it just isn't needed in the sentence. It reads better without it.
That's pretty neat. Takes an image and makes one of those blurry placeholders from it, but the blurry placeholder is only like 20 characters long and renders to a <canvas>.
So instead of showing nothing during lazyloading you could show a blurry image.
Silly little trick that is useful sometimes...
The `<br>` tag is like any other in that you can `display: none;` it if you like. If you do, it will stop breaking the text there.
Example: an address where if the space is large enough to display inline.
For 27 minutes, our Big Web Service was totally broken. An average programmer just like you pushed some shit code and broke it. They learned, but it’s totally going to happen again. Someone who knew what they were doing rolled out a fix when they got back from lunch.
- Company
has your baby ever peed on something and you were gonna clean it up but you just put a towel on it for now then they peed on the towel so you put another towel over that quick
anyway z-index
GitHub Copilot is starting to regularly freak me out with useful code suggestions, but even MORE FREAKY is when it suggests actual CONTENT. I was just trying to write a little intro thingy here and it's like I GOT THIS.
Did I mention on here we have posters for sale for CSS Flexbox and CSS Grid? Here's mine in my office.
Flexbox:
Grid:
✨ Which are designed by
@lynnandtonic
! ✨
Me, a web developer, hiding under the bed:
Armed robber: .
Me: .
Armed robber: .
Me: .
Armed robber: why call it serverless when there are obviously still servers
Me: YOU THINK YOU’RE SO CLEVER. DON’T DISCOUNT A VERY REAL PARADIGM SHIFT BEC oh shit
Me, an internet linguist, hiding under the bed:
Armed robber: ....
Me: ....
Armed robber: ....
Me: ....
Armed robber: ugh the kids these days and their emoji and their texting
Me: ACTUALLY INTERNET LANGUAGE IS VERY INTERESTING DO NOT UNDERESTIMATE---oh shit
Chatted with someone who’s been working at a company as a front-end developer for 3 years. Their friend asked them to help build a website, but they had to decline. They didn’t know how.
Stay tuned for my upcoming blog post: I Literally Don’t Care How You Apply Styles to DOM Nodes as Long As You and Your Team Feel Productive, Your Site Provides a Good Experience, and You Aren’t a Big Dillwad About It
Hello friends of the web!
We reserved a big cool warehouse space in 🏙 Chicago and we're going to fill it with code art and smart people.
The
@CodePen
World's Fair
HTML should have an attribute for <textarea> that allows them to auto grow with content.
But until then (if we ever get that), with basically ONE line of JavaScript (to sync values) you can make it happen.
HTML is the very first file that comes across from servers that browsers parse do the rest of the work needed to build the site.
That _firstness_ is unique to HTML and a vital part of making websites fast.
Just saw a post that recommended projects you could to level up your front-end skills. Every single one was related to a JavaScript framework. Totally cool, I love JavaScript frameworks too, but the job of front-end is wider than that.
What are the LOWEST hanging fruit of web performance? Nothing fancy, anyone can do, big impact.
Gzip. Optimize stuff. Reduce requests...
What are other big ones?
"I'm a web designer."
they picture: something like photo
my actual job: [works for a month to polish a small feature that has already exited for 5 years based on scattered user feedback, team dynamics, and long-learned intuition. mostly no one even notices.]
Need a reminder of just how much CSS is super powerful and brand new just in the last... about a year?
(Some a bit older, browser support varies from super solid to just one browser.)
The
@emmetio
upgrade we rolled out on
@CodePen
is pretty sweet. The most noticeable feature is probably the HTML previews. But it also now works in the Vue SFC editor, JSX, and has a handful of other new features.
is a
@gatsbyjs
site on
@netlify
All the content is in Markdown files in a public
@github
repo.
Yet, I can manage all the content right from the site itself like a CMS, because
@NetlifyCMS
. 🆒
All the changes become git commits or PRs.
If you're into CSS trickery, check out
@fcorradini
idea on using logic to set text to white or black depending on the background color entirely in CSS.
Got the new office pretty dialed in, pretty slick right? The next change is when the sound dampener things come in for the walls/ceiling (the glass ain’t great for echo).
I’m supposed to be on a plane to London for
@jamstackconf
- but instead I crashed my bike and broke both my arms. Both! It sucks! Nothing gross, but fractures at elbows and wrists. I can barely do a damn thing. Fortunately my angel
@jmm
has me well taken care of.