- Published
- Author
- Soniya Rayabagi
views-and-controllers all the major stages a request goes through when it enters a Rails app. Like adding route to handle requests , generating controller , worked on first view template .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.
views-and-controllers all the major stages a request goes through when it enters a Rails app. Like adding route to handle requests , generating controller , worked on first view template .rm -rf .git by running this command you are essentially deleting the entire Git repository, including all the commit history, configuration files, and any other Git-related data, from the current directory as it permanently removes the Git version control .var, final and constvar is used for dynamic typing, allowing the type of the variable to be inferred at runtime.final is used to declare a variable that can only be assigned once. It must be initialised when declared, and its value cannot change.const is used to declare a compile-time constant. It must be initialised with a constant value, and its value cannot change.emitDecoratorMetadata that, when enabled, emits metadata about the types used in our code. This metadata is accessible at runtime using reflect-metadata library.class-transformer and class-validator leverage this metadata to transform plain JavaScript objects into instances of specific classes and validate them against certain rules. Even though TypeScript types don't exist at runtime, the information about those types does, this provide us a more structured and safe way of working with data in JavaScript.await new Promise((r) => setTimeout(r, 2000));const and final cannot be reassigned, there is a subtle difference between them.const variables are used for compile-time constants whereas final variables are used for run-time constants.const current_time = new DateTime.now() // DON'T do it as the value is computed at run time
const name = 'Rahul' // DO it as the value is known at compile timefinal in such casesgitignore to add the .DS_STORE files into it by deleting the ds.store file first , and then using echo ".DS_Store" >> .gitignore to add the .ds_store file.git url to clone repo instead of https will not ask password on every git push/pullShowing page 41 of 83
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.