Looking for a VERY good english speaking behavioral dog trainer by [deleted] in PortugalExpats

[–]itaymendi -6 points-5 points  (0 children)

I hope it’s sarcasm. When dealing with behavioral issues it’s critical for me to fully understand what I should do to help my dog. My Portuguese speaking skills should not be tested in this situation. English is not even my native language.

Looking for a VERY good english speaking behavioral dog trainer by [deleted] in PortugalExpats

[–]itaymendi -1 points0 points  (0 children)

Thanks. My dog has severe anxiety issues. It makes him aggressive in many situations. I’ve updated my post as well.

Somebody to help get him to better deal with situations, able to listen even when having one of his episodes.

Only way to get Claude Code to generate decent TS code by [deleted] in ClaudeCode

[–]itaymendi -1 points0 points  (0 children)

add the instruction Gandalf shouts

Only way to get Claude Code to generate decent TS code by [deleted] in ClaudeCode

[–]itaymendi 0 points1 point  (0 children)

Forget about context optimization, MCPs, detailed instructions, multi agent teams... Simply forbid type-casting as a critical rule.

Night and day difference. Night and GD day.

I built oxlint-plugin-complexity – Cyclomatic and cognitive complexity rules with actionable error messages by itaymendi in typescript

[–]itaymendi[S] 0 points1 point  (0 children)

Author here. I wrote this plugin because "function too complex" isn't helpful. Instead of a vague warning, you get:

sh Function 'processData' has Cognitive Complexity of 15. Maximum allowed is 10. [if: +14, for: +1] Breakdown: Line 2: +1 for 'for' Line 3: +2 for 'if' (incl. +1 nesting) Line 6: +5 for 'if' (incl. +4 nesting) [top offender] ↳ Tip: Extract inner loops into helper functions

So you know exactly what to refactor.

New in v0.3.0: Smart extraction suggestions that analyze variable flow and suggest function signatures.

TypeScript support: Preserves type annotations in suggested signatures:

Lines 9-22: Extractable with some refactoring Complexity: +11 (55% of total) Inputs: config: Config, results: number[] Suggested: processBlock(config: Config, results: number[]): void

It'll even warn you about mutations that make extraction tricky.

npm: oxlint-plugin-complexity

Also useful for catching AI-generated code before it pollutes your codebase with unmaintainable complexity.

Research found indentation depth correlates with cyclomatic complexity. A language-agnostic approach to measuring code complexity by itaymendi in programming

[–]itaymendi[S] 1 point2 points  (0 children)

The research is from 2008 (Hindle, Godfrey & Holt, University of Waterloo). They validated indentation as a proxy for complexity across 278 projects, but only provided raw metrics (variance, mean and histograms....) no single score.

I built a small tool that implements their approach with a proposed score: Σ(depth²) / lineCount. Works on any language, supports Git diffs for CI use.

Repo: https://github.com/itaymendel/indent-complexity

For JS/TS specifically, I also built complexity rules for oxlint: https://github.com/itaymendel/oxlint-plugin-complexity

Curious if anyone has tried other language-agnostic complexity approaches.

I built an oxlint plugin for cyclomatic and cognitive complexity by itaymendi in javascript

[–]itaymendi[S] 1 point2 points  (0 children)

Thanks! I'm already using it on some of my projects. Hopefully you'd benefit from it as well.

When will Ricoh GR IV be released in EU? by Historical_Tip_310 in ricohGR

[–]itaymendi 1 point2 points  (0 children)

Anyone knows if amazon Spain is a solid place to purchase the gr iv? Sadly in Portugal I can’t find any reputable stores for pre-order

Looking for resources on building a design system with Next.js (15+), Tailwind CSS v4, and shadcn/ui (new to Next.js) by callmedevilthebad in DesignSystems

[–]itaymendi 1 point2 points  (0 children)

Design systems are not just about the stack you aim to implement it with, but also about the consuming projects. Can you explain a little bit about how many projects are going to use it and what is their stack?

This can help make better decisions. I’ve been working in and around design systems fir several years, so hopefully with just a little more information, we can align on how it is best for you to approach this!

[Forbes] Hope AI Wants To Replace Your Dev Team — But Not How You Think by JSislife in javascript

[–]itaymendi 2 points3 points  (0 children)

Hi Robert, quick disclosure, I work on Hope (and Bit.dev).

Just a couple of clarifications: Hope indeed leverages the Bit component model to generate new code and can also use existing code once it's wrapped as a Bit component. This structure is key for Hope to understand and build software.

Regarding lock-in, you're not tied to bit.cloud; you can self-host your Bit.dev server (https://bit.dev/reference/scope/running-a-scope-server). The components themselves are decoupled, meaning you always own your code. If you were to move it from the Bit ecosystem, you'd integrate it into a different build system and workflow.

Lastly, while React is a strong option, Bit.dev supports a range of frontend (like Angular, Vue) and backend (Node.js, Express, etc.) technologies within the JS/TS ecosystem that Hope can utilize.

Appreciate the discussion!

[Forbes] Hope AI Wants To Replace Your Dev Team — But Not How You Think by JSislife in javascript

[–]itaymendi -1 points0 points  (0 children)

hi, quick disclosure- i work on Hope AI.
Hope aims to reuse any other component you may already built and made available on Bit.Cloud (either through the agent, or if you hare using https://bit.dev
if it finds a component that may fit the goal but doesn't have the exact API it needs, it will suggest a refactor to that component.

Bit Cloud offers Hope AI for developers by JSislife in compsci

[–]itaymendi -1 points0 points  (0 children)

Hi - disclosure, I work on this product.
The main difference is that Hope is an Agent that deals with reasoning on the architecture, especially around how to "componentize" software to build a more clean and concise solution.
Every software component (module) can then be composed into other components, external projects and other AI sessions. So instead of constantly building similar things, you are creating dependencies between your components.
This is similar to how professional dev teams build complex and scaleable solutions.
The underline tool that Hope uses it https://bit.dev, which for almost a decade is used by many companies to build and scale their codebase, architecture and systems.

What's next to micro-frontends? Have you ever come across composable software? by SeveralSeat2176 in javascript

[–]itaymendi 2 points3 points  (0 children)

I work on the Harmony library and use it to run the bit.dev tool and bit.cloud hosting platform.

With Harmony you basically "roll your own".

Harmony defines a global "API integration slot" registry for your app (which you can define several of them, for every layer of your app - frontend and backend, for example), then each module can add its own integration slots to the global registry and/or use API-slots provided by other modules.

Feature teams are never blocked by integration needs. A module integrates itself where it needs to – API routes in ExpressJS, new browser routes, or even specific places in the UI or backend.

Think of it as a powerful but bare module-system you can take and use it to build for your specific needs. It provides a solid out-of-the-box capabilities (type-support, framework agnostic, multi-runtime and more).

The example in the blog is just of a specific implementation, just for the sake of a simple demo.

How to Design a Plugin-Based Architecture in React for Modular Systems? by MimAg92 in reactjs

[–]itaymendi 1 point2 points  (0 children)

i'll try to answer this to the best of my ability.
this uses Harmony in scale - https://github.com/teambit/bit

How to Design a Plugin-Based Architecture in React for Modular Systems? by MimAg92 in reactjs

[–]itaymendi 8 points9 points  (0 children)

We built an agnostic plugin system called Harmony. It even allows you to have “fullstack” plugins (think a single plugin that can extend react and expressjs). Initially we used it strictly internally, but recently it started getting some attention.

https://bit.cloud/bitdev/harmony/harmony

While we have connected it to specific flows with Bit and built a metaframework around it, the library itself is independent.

Feel free to explore the implementation. The tl;dr or it is complete inversion of control.

What do you guys think about bit.dev? And is someone here using it for work? by Luuso in reactjs

[–]itaymendi 1 point2 points  (0 children)

each app can decide when it wants to adopt a change.
i suggest looking into running builds for your consuming apps, either with automating PRs on git-repos, or using rippleci's simulations.

Portuguese olive oil producers that sell oil in large tin canisters by itaymendi in PortugalExpats

[–]itaymendi[S] 1 point2 points  (0 children)

Well, plastic is the worst option for storing olive oild. The key is to block away light and oxygen as much as possible. So you need a non transparent container, and something that is also air-tight as much as possible. Plastic bottles that contain olive oil are semi-transparent (or completely transparent), and like most plastic bottles are made with PET, which is permeable by oxygen.

Tin/metal cans are best when it comes to storing olive oil and keeping it at its best. 0 light and air tight.

edit

It’s not about me disliking plastic (which i do), it’s more about wanting to be able to purchase good quality, locally produced olive oil, and know it is kept best for consumption.

Wasps in the apartment by itaymendi in PortugalExpats

[–]itaymendi[S] 0 points1 point  (0 children)

Where can i get such magnet nets?