- Published
- Author
- Codemancers
always use default props while writing react component, reduces the number of unexpected bugs which are hard to reproduce.
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.
a tags without an href are not links, they are placeholders for links. Also, capybara only click on links which have the href attribute.COUNT(*) queries. Good article on the same - http://work.stevegrossi.com/2015/04/25/how-to-count-with-activerecord/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. all is very inefficient (it tries to instantiate all objects at once) and should resort to batch processing methods eg: find_each. ~/.config/git/ignoreArray.from() takes a second argument which is a map. Example: Array.from(Array(10), (element, index) => //some logic to fill the array)ActiveRecord::Base.connection to console config block. [...Array(100).keys()] will return a range from 0 to 100const 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
AI is everywhere but it's unclear which investments will actually move your metrics and which are expensive experiments.
Most AI projects fail at the data layer. Pipelines, quality, access all need work before LLMs can deliver value.
Your engineers are shipping product. They don't have capacity to also become AI specialists with production-grade experience.
Aging, undocumented codebases make AI integration slow, risky, and expensive. They need to move first.