Fully-Faltoo blog by Pratyush

Bio Twitter Screener

6th Jan. 2021

Designing Engineering Organizations - Jacob Kaplan-Moss

I have often read about Conway's Law. But never really understood it at practical level. This post by Jacob explains it well. It also provides a good framework on how to structure teams.

The guiding principle here is that Conway’s Law is inescapable – you ship your org chart. And, wherever possible, you should optimize for delivery. In other words: design your organization to match what you want to ship.

...

Generally, product-aligned teams deliver better products more rapidly. Again, Conway’s Law is inescapable; if delivering a new feature requires several teams to coordinate, you’ll struggle compared …

5th Jan. 2021

Snapshot testing in Django


One of the features I loved when using React was snapshot testing. I adopted some of it for Django.


I use snapshot testing mostly for emails. I also use it for standalone templates like invoices.


The function saves the output (eg html) in test files. It then checks if the output has changed.


The advantage is that it works great with version control. Plus it provides a visual update.


So if a test fails, it opens the new version. And we can do a git diff to see actual change in output.

class SnapshotChanged(Exception): pass def compare_snapshot(html, save_path): existing = …

4th Jan. 2021

How to Stop Endless Discussions - RFC framework

The RFC (request for comments) process uses a document written by someone about their proposal on a topic. It has a specific timeframe and everyone can give feedback on it. The RFC and feedbacks are posted publicly. Everyone can join the discussion. The goal is to include as many people as possible to access more points of view and spread the knowledge simultaneously. The good thing is that people focus on the proposed idea and give their feedback based on facts instead of only beliefs. On the other hand, it has a way bigger effect.

...

The RFCs …

4th Jan. 2021

Let's go! The 12 Startups in 12 Months Challenge Starts Now

Wow, this is an interesting idea. I would do this if I had to start from grounds-up again.

This is great way to actually launch the ideas we have. It also increases our chances to find a thing that ticks.


1st Jan. 2021

Content editable remove unnecessary tags with content and all html tags on paste

Good snippet to control what formatting is retained in a rich text editor on pasting data.

We have been wanting to create a rich-text editor where we can control the tags and attributes that are permitted.

Tags added in a rich text editor (through contenteditable) in multiple ways:
- On pasting some rich text
- Keyboard shortcuts such as ctrl b, ctrl i
- Our own commands executed through document.execCommand

We can use a similar technique of tag replacement by tying the clean-up to oninput event.


29th Dec. 2020

10 best family board games for 2021 - CNET

This is a pretty exciting list of board games. It has one of my favorite games, Decrypto.

Will go through rest of them too.

Update

I liked Magic Maze from this list. This is also available in print-and-play.


29th Dec. 2020

A Utility Class for Covering Elements

Nice little trick to create "layers" in CSS.

.original-element { position: relative; } .covering-element { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }

I have been using layers a lot lately. Mostly for small animations during festival season.


« first previous
Page 13 of 64.
next last »