- Published
- Author
- Iffyuva
Shopify has released LSP for Ruby which has been quite stable for sometime https://github.com/Shopify/ruby-lsp
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.
Fields "cars" conflict because they have differing arguments. Use different aliases on the fields to fetch both if this was intentional.{
cars(filter: "name = Cars") {
edges {
node {
name
speed
}
}
}
cars {
edges{
node{
name
}
}
}
}{
slowCars: cars(filter: "Cars") {
edges {
node {
name
}
}
}
fastCars: cars {
edges{
node{
name
}
}
}
}aliases here. Aliases let us change the names of the data that is displayed in a query’s results. It is incredibly helpful when we need to fetch the same data using different filters.Fields "cars" conflict because they have differing arguments. Use different aliases on the fields to fetch both if this was intentional.{
cars(filter: "name = Cars") {
edges {
node {
name
speed
}
}
}
cars {
edges{
node{
name
}
}
}
}Pick Omit Partial NonNullable React.ComponentProps React.MouseEventHandler and special one React.PropsWithChildrenPropsWithChildren enables components to take both props and child elements as input.const Track = ({ children }:PropsWithChildren) => {
return (
{children}
);
};classnames, further conditions can be added depending on whether the initial condition is true or false.{icons &&
icons.map((icon: any, index: number) => {
return (
{icon.icon}
{icon.name}
);
})}index % 2 (modulus) evaluates to true, the class name col-span-4 will be added. The second className which is col-span-3 and it is added if the expression !(index % 2) evaluates to true. However the ! mark changes the Boolean to falsecol-span-4 is added when the index is even, whereas the class col-span-3 is added when the index is odd.sx prop to add css to individual components without using styled or tailwind classes.npm install @mui/material @emotion/react @emotion/styledimport { Box, IconButton, Paper, Typography } from "@mui/material";sx prop. The sx prop allows us to use a superset of css classes making it very intuitive to use.React.ChildrenReact.Children APIs to modify elements created by React before they’re rendered. It provides utilities for dealing with the this.props.children opaque data structure.React.Children.count(children)children, equal to the number of times that a callback passed to map or forEach would be invokedShowing page 49 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.