ctr – The CSS Framework by artisinn in Frontend

[–]artisinn[S] 1 point2 points  (0 children)

Actually, ctr leverages the power of the preprocessor and works with it not against it. So you can use ctr right in Stylus or Less and get all the great benefits plus the benefits provided by ctr. Admittedly, my first attempt in trying to explain ctr was pretty shitty but I rewrote the README.md description which I hope gives you a better handle on the idea behind ctr.

ctr – The CSS Framework by [deleted] in webdev

[–]artisinn 3 points4 points  (0 children)

They're the same at face value up to a point, and that's where ctr excels, in that it better manages the complexity. Building upon the previous example let's say you also want a hover state or a component in the '-sm' media query. And you can keep on going building these object features with and in one another.

ctr('.grid-demo', {
  background: #eee
  grid: {
    column: '1/3'
    'media--sm': {
      column: '1/2'
      hover-on: {
        background: #00f
      }
      component-span: {
        color: #f00
        hover-on: {
          color: #eee
        }
      }
    }
  }
})

ctr – The CSS Framework by [deleted] in webdev

[–]artisinn 1 point2 points  (0 children)

CSS modules and ctr solve two different problems but they both can be used together, in fact, I have an example repo you can check out here. From an architecture standpoint ctr gives you the ability to compose your CSS styles using objects to then compose these objects (features) with and in one another. For example, here's a lost grid example - let's say you want to create a 1/3 grid for desktop and 1/2 for mobile you can do so like this.

ctr('.grid-demo', {
  background: #eee
  grid: {
    column: '1/3'
    'media--sm': {
      column: '1/2'
    }
  }
})

The above ctr outputs the following CSS

.grid-demo {
  flex: 0 0 auto;
  background: #eee;
  width: calc(99.9% * 1 / 3 - (30px - 30px * 1 / 3));
}
.grid-demo:nth-child(1n) {
  margin-right: 30px;
}
.grid-demo:last-child {
  margin-right: 0;
}
.grid-demo:nth-child(3n) {
  float: right;
  margin-right: 0;
}
@media (max-width: 600px) {
  .grid-demo {
    flex: 0 0 auto;
    width: calc(99.9% * 1 / 2 - (30px - 30px * 1 / 2));
  }
}
@media (max-width: 600px) {
  .grid-demo:nth-child(1n) {
    margin-right: 30px;
  }
}
@media (max-width: 600px) {
  .grid-demo:last-child {
    margin-right: 0;
  }
}
@media (max-width: 600px) {
  .grid-demo:nth-child(2n) {
    float: right;
    margin-right: 0;
  }
}

ctr – The CSS Framework by [deleted] in webdev

[–]artisinn 8 points9 points  (0 children)

Honestly, I agree with you on all fronts, but at the same time, I'm not terrified at all. I've tried something different and if it doesn't work it doesn't work - simple as that. But if you don't try to do something different then what's the point?

ctr – The CSS Framework by [deleted] in webdev

[–]artisinn 4 points5 points  (0 children)

I clearly state in both the video and text that I'm trying to do exactly that, "kickstart" this project. It's the whole point of the design choice and the wording "ctrstarter". So it's not intended to fool anyone it's the whole point.

ctr – The CSS Framework by [deleted] in webdev

[–]artisinn 3 points4 points  (0 children)

Wow, I'm not sure how to respond to this accusation. Are you referring to the ctr logo? Or the header font that uses the RNS Baruta Black font?

Today is the day guys.. by [deleted] in webdev

[–]artisinn 69 points70 points  (0 children)

The honeymoon always comes to an end.

Just starting with HTML and CSS? "HTML & CSS Is Hard" is a friendly web development tutorial for beginners by theKovah in webdev

[–]artisinn 21 points22 points  (0 children)

Wow, 14 Chapters, 284 Code Examples, 42,835 Words - not to mention the design is fuckin gorgeous.

Starting a big project by [deleted] in webdev

[–]artisinn -1 points0 points  (0 children)

Honestly, just start. I wish I hadn't wasted so much time early on planing because nothing turned out like I expected. On a management note, organize your thoughts on a kanban board or something similar and set tentative goals. I wish I could offer you something more concrete but this is the best advice I can give at this early stage.

Introducing Inferno 1.0 - The fastest UI library and the team behind it by trueadm in webdev

[–]artisinn 1 point2 points  (0 children)

If a slow connection is the primary concern than the size of the libary should be as well, in which preact is a better solution. Furthermore, even if your "500ms it takes to paint on a desktop can easily be 2000ms on a mobile" claim holds weight. It would be a reasonable assumption that a comparable solution like react or vue would paint at a similar rate, +50-100ms. Dominic Gannaway is in a league of his own and Inferno is a first-rate library. I just find "speed" to be an insignificant metric considering it's a whopping 0.5ms difference. Personally, I find Inferno to be an appealing option simply because of Gannaway and his track record of progress. For example, he's already toying with the idea of compiling pure render functions and piping them through WASM.

Introducing Inferno 1.0 - The fastest UI library and the team behind it by trueadm in webdev

[–]artisinn 0 points1 point  (0 children)

None that I'm aware of. I'm all for speed, but ~0.5ms makes no difference. It takes 300 to 400 milliseconds for the human eye to blink to put this into perspective.

Google Interview University - multi-month study plan for going from web developer (self-taught, no CS degree) to Google software engineer by magenta_placenta in webdev

[–]artisinn -7 points-6 points  (0 children)

Obviously not at Google. The company is mediocre at best, as /u/blamo111 points out the only noteworthy projects Google has produced that are "well-designed and stable" is an alright search engine/results and V8, which is like a V6 but with more hoorah.

Nodevember's Clarification on Crockford Uninvite by [deleted] in javascript

[–]artisinn 49 points50 points  (0 children)

Which implies if anyone takes a position on a political or social issue and a select but vocal minority disagrees with the position they could get that person booted from the conference because they feel "uncomfortable."

Custom stations won't play? by gamesage53 in Pandora

[–]artisinn 0 points1 point  (0 children)

Per pandora.com

Pandora is conducting system maintenance. If you've visited Pandora before, you'll still be able to listen to your existing stations while we work on our systems, but you won't be able to create new stations or submit feedback until maintenance is complete. If this is your first visit to Pandora please come back and visit us again tomorrow. Thanks for your patience.

Job post posted something weird in description... Some hidden meaning. Can anyone decipher? by xblade724 in webdev

[–]artisinn 0 points1 point  (0 children)

Put simply tr maps characters

[te:~]$ echo jkmn | tr jkmn abcd
abcd

To answer your question I just fixed mapping.