2,169 questions
Best practices
1 vote
0 replies
28 views
Calling a method from a parallel mixin in Python without breaking MRO or responsibilities
I am working on a multifunctional quite old game bot with the followng implementation: There are tons of mixins in different files/folders (each inherits GameBase). Each mixin: - uses attributes + ...
6 votes
1 answer
169 views
Type-hinting a combined Mix-in class and subclass leads to TypeErrors
The following code-snippet bridges some dataclasses and GUI-classes using PySide6 (the Qt library). The HasDataobject class is key here. It defines a mix-in for subclasses of QGraphicsItem. It adds an ...
2 votes
0 answers
73 views
How do I prevent a PlayerEntity from making sounds in Minecraft Fabric 1.21.1?
I'm trying to make a mod that adds a new material which can be made into armor, tools, and at some point some other stuff. The material is called Vibral, and it's found in the deep dark and ancient ...
1 vote
0 answers
63 views
Is there a way to shift mixin injection after a return opcode
I am writing an injector for a method that looks like this: protected ItemInteractionResult useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ...
0 votes
2 answers
134 views
How to access a private nested record
The MinecraftServer.class has a private Record named ReloadableResources that is used to hold managers for resource managing. ... record ReloadableResources(CloseableResourceManager resourceManager, ...
0 votes
0 answers
212 views
minecraft fabric 1.21.5 mixin how to send message as Player
How to replace one message to other in minecraft fabric 1.21.5 I writed simple Mixin that insert code into writen method package org.emil.chatmod.mixin; import net.minecraft.client.gui.hud.ChatHud; ...
0 votes
1 answer
176 views
Font Awesome not working after migrating from Mix to Vite
I have been trying to figure out for a while how to fix this issue where Font Awesome icons are loaded correctly. However Bootstrap is working fine. app.scss $fa-font-path: "@fortawesome/...
2 votes
3 answers
99 views
Why I can't use Mixins with class expressions in TypeScript
I was learning about Mixins in JavaScript and decided to implement them in TypeScript. Everything works fine when I declare classes normally, but when I assign them to variables, I encounter ...
13 votes
0 answers
101 views
Are Mixins in C++ simply Policy-Oriented Design, or is there more to them?
Explanations of Mixins in a C++ context, but many of them seem to describe use cases that are essentially Policy-Oriented Design. This has led to some confusion on my part. From what I understand, ...
0 votes
0 answers
35 views
Make my IDE recognise methods from VUE mixin returned by a function
I use mixins retuned from a function, mixin: [getMixin({})] function getMixin(config) { return defineComponent({ mixin: [myMixin, myOtherMixin] }) } but WEBSTORM fails to ...
1 vote
0 answers
71 views
How can I modify the sqlalchemy query object's onclause directly?
I am using SQLAlchemy==2.0.37. I am developing an enhanced mixin and one of my needs is to modify the query object before compile. I have set up an event listener like so: @event.listens_for(Query, &...
1 vote
0 answers
98 views
Unable to use fontsource roboto face mixins ( fontsource roboto v5.2.5 )
I am trying to use @fontsource/roboto by importing it with face mixins, offered with the library. Since the latest version v5.2.5, it adviced to use the 2 libraries @fontsource-utils/scss and @...
0 votes
0 answers
100 views
Migrating mixin faces for @fontsource/roboto from v5.1.1 to v5.2.5 on Angular App
After the introduction of @fontsource/roboto v5.2.5, it had some breaking changes including not supporting mixin faces anymore. However, it recommends using 2 other libraries to achieve this. "@...
0 votes
0 answers
47 views
Facing Issue for $breakpoint and $prefix while migrating from carbon-components to @carbon/styles in Angular 19
I am upgrading one angular app from 18 to 19 While upgrading I am facing issues related to carbon styles. Basically I have uninstalled carbon-components as its deprecated and installed @carbon/styles. ...
0 votes
2 answers
168 views
How to override @JsonProperty(value = "id", access = JsonProperty.Access.READ_ONLY) on object mapper
I've a model class which I can't change its source, it is annotated with public class Announce { @JsonProperty(value = "id", access = JsonProperty.Access.READ_ONLY) @Id @...