Styled-Components: CSS-in-JS Library for the Modern Web

2018-06-25 11 min read Uncategorized

This post was written by Jeremy Davis, JavaScript Developer for Toptal.

 

CSS was designed for documents, what the “old web” was expected to contain. The emergence of preprocessors like Sass or Less shows that the community needs more than what CSS offers. With web apps getting more and more complex over time, CSS’ limitations have become increasingly visible and difficult to mitigate.

Styled-components leverages the power of a complete programming language—JavaScript—and its scoping capabilities to help structure the code into components. This helps to avoid the common pitfalls of writing and maintaining CSS for large projects. A developer can describe a component’s style with no risk of side effects.

Continue reading

Python Class Attributes: An Overly Thorough Guide

2018-05-21 26 min read Uncategorized

This article is originally published at Toptal.

I had a programming interview recently, a phone-screen in which we used a collaborative text editor.

I was asked to implement a certain API, and chose to do so in Python. Abstracting away the problem statement, let’s say I needed a class whose instances stored some 

  <td>
    <div class="text codecolorer">
      data
    </div>
  </td>
</tr>
1

 and some 

  <td>
    <div class="text codecolorer">
      other_data
    </div>
  </td>
</tr>
1

.

Continue reading

Rails Service Objects: A Comprehensive Guide

2018-05-07 20 min read Uncategorized

This post was written by Amin Shah Gilani, Ruby Developer for Toptal.

Ruby on Rails ships with everything you need to prototype your application quickly, but when your codebase starts growing, you’ll run into scenarios where the conventional Fat Model, Skinny Controller mantra breaks. When your business logic can’t fit into either a model or a controller, that’s when service objects come in and let us separate every business action into its own Ruby object.

Continue reading

asciinema – video for your terminal session

2017-10-16 1 min read Fedora Uncategorized

Info about asciinema:

Name         : asciinema
Version      : 1.4.0
Release      : 1.fc26
Arch         : noarch
Size         : 144 k
Source       : asciinema-1.4.0-1.fc26.src.rpm
Repo         : @System
From repo    : fedora
Summary      : Command line client (terminal recorder) for asciinema.org service
URL          : http://asciinema.org
License      : GPLv3
Description  : Asciinema is a free and open source solution for recording the terminal sessions
and sharing them on the web.

To install, you can do:

Continue reading
Older posts Newer posts