TILs - Fueling Curiosity, One Insight at a Time

At Codemancers, we believe every day is an opportunity to grow. This section is where our team shares bite-sized discoveries, technical breakthroughs and fascinating nuggets of wisdom we've stumbled upon in our work.

Published
Author
user-image
Codemancers
always use default props while writing react component, reduces the number of unexpected bugs which are hard to reproduce.
Published
Author
user-image
Codemancers
a tags without an href are not links, they are placeholders for links. Also, capybara only click on links which have the href attribute.
Published
Author
user-image
Codemancers
Rspec's subject is a special variable that refers to the object being tested. It's instantiated implicitly but can also be done explicitly. Handy to be used with shoulda matchers.
Published
Author
user-image
Codemancers
In Tmux, prefix+t shows the current time in big font size
Published
Author
user-image
Codemancers
looping through a collection of records in database using methods like all is very inefficient (it tries to instantiate all objects at once) and should resort to batch processing methods eg: find_each.
Published
Author
user-image
Codemancers
ansible lets u use ansible_distribution ( values : Ubuntu, CentOS etc), ansible_distribution_release (values : xenial, precise etc) to write dist specific commands
Published
Author
user-image
Codemancers
There is a global location for git ignore *nix - ~/.config/git/ignore
Published
Author
user-image
Codemancers
open chrome devtools, press cmd(ctrl) + shift + p and type show coverage and press enter, once you reload the page you can see the amount of JS fetched and how much is actually getting used on that page
Published
Author
user-image
Codemancers
Array.from() takes a second argument which is a map. Example: Array.from(Array(10), (element, index) => //some logic to fill the array)
Published
Author
user-image
Codemancers
Rails console does lazy connection to database and this behaviour can be changed with by adding ActiveRecord::Base.connection to console config block.
Published
Author
user-image
Codemancers
"localization" referred as "l10n", and "internationalization" referred as "i18n". cause,
l10n => "l" in between 10chars(o, c, a, l, i, z, a, t, i, o) and then "n"
i18n => "i" in between 18chars and then "n"
Also Globalization (g11n), Localizability (l12y).
I didnt knew, never noticed, and I feel stupid now :P
Published
Author
user-image
Codemancers
[...Array(100).keys()] will return a range from 0 to 100
Published
Author
user-image
Codemancers
in es6 you can now proxy your object's operation like get, set etc. All you need to do it create a proxy on a object like const proxyObj = new Proxy(initialObj, handler) the initial object is the object that you want to create proxy for and handler object is the place where you override object's method like get and set.

Showing page 37 of 42

Your competitors are already using AI.
The question is how fast you want to unlock the value.

Don't know where to start?

AI is everywhere but it's unclear which investments will actually move your metrics and which are expensive experiments.

Your data isn't ready

Most AI projects fail at the data layer. Pipelines, quality, access all need work before LLMs can deliver value.

Internal teams are stretched

Your engineers are shipping product. They don't have capacity to also become AI specialists with production-grade experience.

Legacy systems block everything

Aging, undocumented codebases make AI integration slow, risky, and expensive. They need to move first.

Don't worry. We've got you covered.

Start with the audit.