# form
-
JavaScript _ 2020-11-29
Replacing code for production with Babel transformation
If you are building some sort of an app, Babel is probably part of your build system. It is that thing which converts our fancy code to valid, working in a browser, JavaScript. Just recently at work I had to design a solution that swaps a class based on the environment. Or in another words, we have logic that should not reach our users. The file should be available locally and on our staging environment but not in production. A tiny Babel plugin was the cheapest solution for me so I decided to share the result.
-
JavaScript _ 2020-09-12
You Really Don't Need All That JavaScript, I Promise by Stuart Langridge
JavaScript is your behavior layer; the way to add interactivity to your sites, to provide a slick and delightful user experience, to make everything fast and easy and clean. But at some point everything changed: the tail started to wag the dog instead and development became JavaScript-first.
-
JavaScript _ 2020-07-21
React: 50 shades of state
We all know that one of the most challenging task in software development is state management. This is especially true for the JavaScript world. There are thousands of articles on this topic and so I decided to write another one π. I wanted to share my current thoughts on the different state types. I found that answering "What lives where?" question is far more important than the actual state management. Which more or less is an implementation detail.
-
JavaScript _ 2020-07-12
Recreating Facebook's Recoil library
This weekend I decided to play with the new kid on the block - Facebook's Recoil library for managing state. I did the trivial counter example to see how it works. It's pretty simple idea so I wondered how much it takes to replicate its features. I found the exact answer - 70 lines of code. Obviously, my implementation didn't cover everything but it was fun so I decided to share my findings.
(A side note: I did not look at the code of Recoil. I didn't want to be bias on how to write my version.)
-
JavaScript _ 2019-07-03
React: rendering vs running your components
Recently I stumbled upon on an interesting bug which reminded me what is actually happening with my components when React is rendering them.
-
JavaScript _ 2016-01-05
The return statement is not the end (but it should be)
Well, I kind of lied in the title of this article. Of course that it is the end of the function. Once we call
returneverything else after that is simply not executed. Ops β¦ I did it again, I kind of lied again. -
Must-see _ 2014-08-25
My front-end performance case study
Iβm reading and watching a lot of interesting things regarding client-side performance. Iβm interested in the browserβs processes happening before and just after the pageβs load. There are tons of stuff to think about. Before a couple of days, I joined the online workshop of Vitaly Friedman. I had a great time and learned some clever facts about performance optimization.
-
Must-see _ 2014-07-10
Mobile Web performance auditing
Building high performance sites and apps is crucial to your success on the web, and never more so as people start using smartphones as their primary means of internet access. But how can you make sure you're squeezing out every last bit of performance from your projects? In this talk we'll look at the tools you need to succeed and how to integrate them into your workflow.
-
CSS3 _ 2014-02-12
Simple, good looking separator made with pure CSS
-
HTML5 _ 2013-05-15
Web Highlights #4
Everyday I'm reading or watching something which I find helpful. Normally I bookmark those things, but at the end I have dozen of folders and subfolders which I never check. So, I decided to make such blog post where I'll share valuable things in the net.
-
HTML5 _ 2013-03-10
The Breakpoint
A bunch of useful things about our lovely browser - Chrome. Dev tools theming, console tips, editing of SASS directly inside the browser.
-
HTML5 _ 2013-02-28
Web assets - tips for better organization and performance (discussion at VarnaLab)
A screencast of the discussion at VarnaLab on subject "Web assets - tips for better organization and performance". The slides are available here.
-
Inspiration _ 2013-02-20
sugru - self-setting rubber that can be formed by hand
sugru is the exciting new self-setting rubber that can be formed by hand. It moulds like play-dough, bonds to almost anything and turns into a strong, flexible silicone rubber overnight.
-
HTML5 _ 2013-02-09
Chrome Devevelopment Tools could be really helpful
"Your browser is one of the most and best instrumented development platforms -- you may just not realize it yet. In this episode we'll take a whirlwind tour of how to analyze network performance, rendering and layout pipeline, as well as detecting memory leaks in your Javascript code, and using audits and extensions to build faster and better apps!". A nice screencast by Ilya Grigorik. I strongly recommend the subscription to GoogleDevelopers channel.
-
ActionScript _ 2011-11-20
Adobe\'s strategic transformation and the Flash Platform
Adobe is in the midst of a fundamental transformation. We are transforming from software in boxes to solutions in the cloud, and to a world of touch interfaces on devices, and social connections everywhere. This is a time of both innovation and change for Adobe and for the Adobe community ...Read the full article here.
-
ActionScript _ 2011-07-22
A RobotLegs Book
@Stray and @Joel Hooks finished their book for RobotLegs. Definitely it is something that you should read. More information here.
-
ActionScript _ 2011-05-04
AS3: dynamic text field to curve (TextField on an arcing path)
[2]Most of the articles here are tightly connected to my daily work. As you probably know from one of my latest posts (runtime font loading/embedding) I worked a lot with texts these days. There was a request for producing curved text from a dynamic field. Of course it wasn't so easy to create such a feature. I wrote a simple class that did the job and I decided to share it.
-
ActionScript _ 2011-04-25
AS3: runtime font loading (embedding)
Flash is wonderful technology and has many advantages. Before a couple of years it was really popuplar to use it for displaying fonts that are not installed on the user's machine. Flash is still powerfull tool for such kind of tasks. These days I worked on a project which had to use a lot of fonts. It wasn't possible to embed all of them so I decided to implement runtime embedding.
-
ActionScript _ 2010-12-28
AS3: Using custom Metadata in Flex (part 1)
I'm sure that you've already used metadata tags in your flex applications. There are several reserved keywords like [Bindable], [Embed], [Event] and so on (the full list is available here). The function of the metadata tags is to provide additional information to the flex compiler. For example information about embeding assets, dispatching events. This article doesn't explain how to use the default flex tags (you can learn that from here). It shows you how to create your own metadata tags and how to use them.
-
PHP _ 2010-11-11
How to import images directly into the html code (base64)
-
ActionScript _ 2010-07-17
Trace JSON object in AS3
I'm absolutely sure that all of you are working with JSON objects. It's pretty helpful to be able to print them and find out what exactly they contain. I wrote a simple function that makes this possible.