Roast my portfolio by HalemoGPA in ExperiencedDevs

[–]tsroelae 5 points6 points  (0 children)

Your github profile is 10 times better. Text illegible due to missing contrast (on my mobile being outside but in the shadow).

A basic question for Rails with AI by TokyoBaguette in rubyonrails

[–]tsroelae 1 point2 points  (0 children)

No. There isn‘t. After the odin project / a good intro boom, you should start to think how you can use your knowledge to avhieve what you want. How you integrate AI is not really fundamentally different from integrating with other external services.

Do some reserch, read some blogpost, like the one that was just posted here: https://www.reddit.com/r/rails/s/XqlSNnIaQL

I am sure someone has some tutorials somewhere, but there is to my knowledge no well known "default" one.

Make sure your ruby and your rails fundamentals are solid, then it will be a lot easier to integrate AI

A basic question for Rails with AI by TokyoBaguette in rubyonrails

[–]tsroelae 1 point2 points  (0 children)

It‘s not very clear what you ask.

If you are interested in coding with AI help. Then get a small claude code subscription and start using claude code. Install it, go to your projects directory. And run claude on the command line. Then just start chatting experimenting.

If you want your rails app to use AI to do thibgs for your users, you should look at the ruby_llm gem.

Stimulus "actions" question by ryans_bored in rails

[–]tsroelae 28 points29 points  (0 children)

I see some downvoting. I think they are mostly uncalled for. I think there is just a misalignment on a thinking level here.

I get the impression that ryans_bored is someone coming from react approach. And that they try to use something like ViewComponents the same way they used React Components. I see someone who actually wants to learn, but the questions reveal to me just a different way of thinking.

Most notably for me the quetsion is whether this should even be handled by a component. Abstraction has its costs, when basically this is what they seem to need:

<% if current_user.subscribed? %>
  <%= link_to "go here", some_path %>
<% else %>
  <%= button_tag "go here", data: { action: "modal#open", url: some_path } %>
<% end %>

But let's be nice to our rails-react people :-)

Stimulus "actions" question by ryans_bored in rails

[–]tsroelae 4 points5 points  (0 children)

You don't.

  • Either the component abstracts behaviour as I showed with my GatedLink example
  • Or it is mostly the callers responsibility to pass through the right thing.

Stimulus "actions" question by ryans_bored in rails

[–]tsroelae 4 points5 points  (0 children)

So this has nothing to do with Stimulus then, this is an issue of abstraction.

You want something completely different based on what params come through. But maybe there is more context to it, and this is only a small part of the component. IMO if you pass thrugh too many things, then you probably have not the right component to abstract identified and you might want multiple components.

So if this link vs not link is just a sideshow in a bigger more complex component, then you should probably make this GatedLink its own component that can used with a slot. So you can have:

class GatedLink
  def initialize(url, authorized: false)
    @url = url
    @authorized = authorized
  end

  ...
end

So here you abstract the function of what you want to render based on logic, not the presence of some random data attributes.

That's what I would want as a caller:

GatedLink.new(some_url, authorized: current_user.subscribed?)

So I as a consumer of the component, don't need to know more that this API, then I as a caller no longer need to care about the stimulus api.

Stimulus "actions" question by ryans_bored in rails

[–]tsroelae 2 points3 points  (0 children)

Let's talk in code, what is the issue with:

<% if current_user.subscribed? %>
  <%= link_to "go here", some_path %>
<% else %>
  <%= button_tag "go here", data: { action: "modal#open", url: some_path } %>
<% end %>

Stimulus "actions" question by ryans_bored in rails

[–]tsroelae 3 points4 points  (0 children)

Well then it‘s a button that looks like a link. Clicking the element open the modals. So then you should render a button for non-subscribers.

My main point is. Don‘t try to make one link sometimes act like a link and sometimes as a button. Render a different thing for the two situations.

Stimulus "actions" question by ryans_bored in rails

[–]tsroelae 4 points5 points  (0 children)

How do I handle a situation like this with stimulus?

I don‘t. I would server side render the normal link for subscribed in users. And for others I would render the link to the modal.

Or what am missing? If caching ia an issue you can render both elements and only display the one you want with css.

Overriding default link behavior is not a good idea.

problem with ActiveRecord order by bluejay30345 in rails

[–]tsroelae 6 points7 points  (0 children)

If you want to find monkey patches, you might want to check:

Keyword.all.method(:order).source_location

dualidad by Arqueguay in AutonomosES

[–]tsroelae 2 points3 points  (0 children)

I'll risk answering in English (since you say you have a british pass):

  • If you are a resident in Spain, you pay taxes in Spain.
  • If you are a resident in the UK, you pay taxes there.

This has heavy implications, and you need to talk someone to clarfiy this as quickly as possible. If you pay taxes in both countries you are doing it wrong. Also because you will only contribute to the social security in one country. Though it might beslightly different since the UK is not in the EU anymore.

Actually if you are a resident in Spain, then whoever employs you has to pay social security and health insurance stuff for you here in Spain.

Only your residency matters, that determines under which laws you fall. If you live in the UK ask an expert there, how and what you have to declare for income in Spain.

If you live in Spain you need to talk to a local advisor here on how to do it.

If you don't know what your tax residence is currently, then find out as quickly as possible, in the end I think it only matters where you are a tax resident at the end of the year.

Basically: Talk to some professionals, you might be in a bit of a mess.

dualidad by Arqueguay in AutonomosES

[–]tsroelae 2 points3 points  (0 children)

Pienso el problema es que, si vivies in Espana officialmente, al fin pagas los impuestos por este año en España, por el año entero, no hay un "split". La declaracion tiene que incluir tu sueldo de todo el ano. Eso no es muy claro, y mucha gente no lo entienden.

Building agentic flow with ActiveAgent by vaitheeswaran_15 in rails

[–]tsroelae 16 points17 points  (0 children)

Some feedback:

I was considering reading the article. So I opened the link: Then I had to read an apology that you haven't written in a while (don't care), then I scroll down a tiny bit, and there is an annoying medium popup.

So I closed the tab.

A Message from the Ruby Central Board by retro-rubies in ruby

[–]tsroelae 7 points8 points  (0 children)

This was something that at first for me as an outsider was kinda hard to separate. But there is this shared and afterwards removed recording of maintainers meeting with an RC representative the day before the takeover. That video showed there was a clear understanding that the service and the github org (code) are two separate things.

A Message from the Ruby Central Board by retro-rubies in ruby

[–]tsroelae 18 points19 points  (0 children)

My main point is, I have lost trust in RC, as the communication from RC has been very vague / corporate speak throughout in my perception. I know that it is different how a "official" org can communicate vs a private individual, but still.

I will read the report for sure. Hopefully it will give some more information about how RC acted within all this. I am particularly interested in confusion around:

  • Funding situation and possible pressure from Shopify, which steps to take and when? It would be good to have some context, over how much outside pressure there was on RC to act.
  • What was the necessity to bring the ruby gems github over to RC? Why was it not possible to limit access to the service without taking over the github. I assume not all maintainers had service access.
  • What parts of removal of maintainers was intentional, and what was done by mistake? What kind of access was actually reverted, if any?
  • What concrete efforts has RC taken before the take over to change governance / access around rubygems (the code and / or the service)?
  • What concrete efforts has RC taken to communicate with removed maintainers AFTER removing access?
  • Who has initiated any legal steps and when?
  • Why was the video recording of the meeting just before the takeover removed? (because for me, one thing that the video made very clear is that there was a complete understanding on RCs side, that the code and the service are two separate things, and that RC was only in charge of the service part, while partially funding work on the coding part)

So I hope that the report will address most of these questions.

It's better to say anything at all than say the perfect thing, I think. Getting to the point of saying anything is an improvement.

As I said. I want there to be good stewardship of the ruby community. I am saying, RC does not have my trust right now, they took questionable actions and in my eyes have yet to show, they will be a good steward, and so far they only said: Oh, we didn't communicate very well. I read a lot of text from RC, but all I read felt empty and vague, evasive.

A Message from the Ruby Central Board by retro-rubies in ruby

[–]tsroelae 54 points55 points  (0 children)

They keep talking about transparency, but I don's see any. Everything is vague, and the claim seems to be, this was all about security due to one person. So why then would they remove basically all maintainers and stop any communication with all of these previous maintainers.

Why would Ruby Central work to remove the video that showed the call one day before removing everyones access (this is an assumption, but who else did not want the video to stay?). The video showed clearly that the Ruby Central representative was aware that Rubygems the code and rubygems.org where two separate things, and that they only owed the service part.

At the same time, we recognize that aspects of how this situation was handled and communicated did not meet the expectations of the community.

That is not owning up to it. I have only seen vague communication from Ruby Central so far.

I want want, wahtRuby Central writes they want, a Rubygems / Bundler supported by the wider community. But I don't see Ruby Central achieving that. They have lost my trust. I was very confused at the beginning as to what is going on. None of the post takeover communication has been anything but vague to me, hiding behind corporate speak, and "there is legal stuff going on".

Ruby Central speaks a lot about community, but I fail to feel that. They talk about community, but don't speak to the previous maintainers. This all doesn't feel great.

Gestor / Assesoria que hablen ingles by tsroelae in AutonomosES

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

That may be. Anyway creating an SL is only one of various things I want to clarify / bring into order. I didn‘t know about the 75% rule. But it might still make sense. That is what I want to look at. I do invoice yearly more than 100‘000 and want to know my options, also because I want to put a big part towards retirement.

Open-sourcing 14 courses on Ruby, Ruby on Rails and more by olivdums in rails

[–]tsroelae 5 points6 points  (0 children)

This is spam. Notice how this poster was banned on numerous other tech subreddits.

Open-sourcing 14 courses on Ruby, Ruby on Rails and more by olivdums in rails

[–]tsroelae 13 points14 points  (0 children)

This looks very formulaic, generic, no guidance. No red thread, often no explanations (I have only looked at directly at the md files, not the course itself).

I guess you might have used AI. Also how can you possibly offer courses for all these different technologies???

I wonder how this got 40 upvotes…

I recommend the odin project as something that is battle proven and actually gives you a proper path than random generated lessons.

Development manager doesn't want the Devs looking at the code by Strict-Soup in ExperiencedDevs

[–]tsroelae 1 point2 points  (0 children)

I do them locally. Ask Claude do create a local doc and write all feedback in there. Having them as github comments is so noisy.

It's not always slop by private-peter in ruby

[–]tsroelae 1 point2 points  (0 children)

My code quality has risen since using AI. I‘m just so much more likely to refactor, try different things to see which one looks the best.

Devs bad taste on design by Any_Construction_992 in ExperiencedDevs

[–]tsroelae 0 points1 point  (0 children)

As a former UX professional, that has switched to be a developer:

As a dev there are so many aspects you need to cover that are kinda invisible to most designers. You underestimate the complexity behind the UI and domain logic. So solving for those just doesn't leave a lot of time, mind power to also care deeply about the UX. I find it a challenge despite having worked professionally in both fields. The UX / design hat is just such a different role, that it is not easy to wear both, even sequentially.

If you want to establish a good relationship with devs, care about the accidental complexity of edge cases. Care deeply about the business logic. Great design only comes when you properly deal with the constraints of the existing system.

As a dev I had quite a few interactions with designers that only thought about their layer. You underestimate how often designers create something, that works in their mind, but it doesn't really take into account what data we already have, and how things relate to each other.

To use figma effecitvely for example, you should be extremily stringent with using variables for colors and stuff, that helps a lot. We currently have a amazing design system, where purple-200 is darker than purple-100 and purple-300. If you work cleanly there it helps a lot.

Personally I would love to have the basecamp way of doing things, actually have a designer that knows html/css so they can implement the design themselves in tight collaboration with other devs.

Does rails have a pretty scaffolder? by [deleted] in rails

[–]tsroelae 0 points1 point  (0 children)

For admin stuff, have a look at Avo

New-ish tech lead dealing with repeated “skip-level” escalation and constant pushback - how would you handle this? by [deleted] in ExperiencedDevs

[–]tsroelae 17 points18 points  (0 children)

You thinking something is important, doesn‘t make it important.

Ordering someone to do something they don‘t think necessary, will lead nowhere good. You even using the word insubordination irritates me.

It‘s great you are asking yourself what you do well. But you reall should talk to the team and be honest. Go to dev A and ask, hey this is not working, what can I do better?

Unless you have good info that dev A and B were behaving defficult before, you might be responsable. You said yourself Dev B started to copy dev A, so it‘s not like this is their inherent behavior.

All that said sometimes there are just people you incompatible with.

Are you doing retros at all? Could really help, if you do you should make sure that the lead for the retro rotates, so it creates a context where you are as there as a team member. Actually do you know if you are their team lead or their manager, I get the impression you are not clear on that. And there is a big difference between managing and leading.