Skip to content

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.

  1. Codemancers
    Never Wrap a component with HOC inside the render method. This will cause numerous unmount and mount of same component on each render.
  2. Codemancers
    Vim tip - Hitting g Ctrl-g will show you some tech info about the current file, like number of words or how many bytes it has
    -- Col 1 of 25; Line 184 of 184; Word 471 of 472; Byte 4266 of 4291
  3. Codemancers
    In ssh url [email protected]:code-mancers/engineering-blog.git git is the user on github.com server. Even ssh://[email protected]/engineering-blog.git is a valid git url since git tries to clone it but since there is no code-mancers user on github hence git is not able to clone it.
  4. Codemancers
    always use default props while writing react component, reduces the number of unexpected bugs which are hard to reproduce.
  5. 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.
  6. 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.
  7. Codemancers
    In Tmux, prefix+t shows the current time in big font size
  8. 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.
  9. Codemancers
    ansible lets u use ansible_distribution ( values : Ubuntu, CentOS etc), ansible_distribution_release (values : xenial, precise etc) to write dist specific commands
  10. Codemancers
    There is a global location for git ignore *nix - ~/.config/git/ignore
  11. 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
  12. Codemancers
    Array.from() takes a second argument which is a map. Example: Array.from(Array(10), (element, index) => //some logic to fill the array)
  13. Codemancers
    Rails console does lazy connection to database and this behaviour can be changed with by adding ActiveRecord::Base.connection to console config block.

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.

Book a free discovery call