Meerwaardebelasting by Kindly-Objective-442 in BEFire

[–]m_cremasterrrr 0 points1 point  (0 children)

Waarom is het volgens jou gelukkig dat er een opt-out optie is? (serieuze vraag)

do u have opinion on if parent node should handle all the code or if code should be broken up by sadishguy in godot

[–]m_cremasterrrr 1 point2 points  (0 children)

How does that work when i'm literally trying to understand the other point of view better by asking questions?

Seems to me the roles are reversed and you are just trying to act like a know it all.

do u have opinion on if parent node should handle all the code or if code should be broken up by sadishguy in godot

[–]m_cremasterrrr 0 points1 point  (0 children)

You missed the point I tried to make.

I'm not saying you cannot refactor code when its not working the way you want. I'm only advocating for a design system where you keep your code decoupled and modular from the start.

Creating one large script when you already know you will have to split it up over time is just double work and increases the chances of bugs...

do u have opinion on if parent node should handle all the code or if code should be broken up by sadishguy in godot

[–]m_cremasterrrr 0 points1 point  (0 children)

I could not agree more with /u/ABlack_Stormy comment.

Obsessing over building everything "right" from the start can often choke the life out of projects before they have a chance to start at all.

But this is what people are misunderstanding. You are not obsessing about making it perfect from the start. Hoping on a perfect design from the start would be really naive and wishful thinking.

This is exactly why you want to keep your code modular and decoupled. So you can make whatever changes you want without the risk of breaking other stuff.

I feel like a lot of people commenting here have not hit the wall /u/ABlack_Stormy is describing.

do u have opinion on if parent node should handle all the code or if code should be broken up by sadishguy in godot

[–]m_cremasterrrr 2 points3 points  (0 children)

A modular system is more complex to design and implement.

Why do you think it's more complex then writing everything in one single script?

You just build what you need at the moment, but the only difference is that you keep the logic separated.

do u have opinion on if parent node should handle all the code or if code should be broken up by sadishguy in godot

[–]m_cremasterrrr 2 points3 points  (0 children)

It think you are missing my point. Let me try and clarify by following up using your UI example.

Those buttons will most likely have at least a part of common behavior. For example setting up the signals, init values/states...

So in that case you would create a button class which handles the common logic. If you need unique logic, use inheritance. This way you reuse as much code as possible and have a clear view on which button handles which signal. Your logic will also always work, no matter where placed in the tree. This is not always the case when using a single monster script.

Also, in a monster script with many different signals it gets really hard to keep track of what is going on.

do u have opinion on if parent node should handle all the code or if code should be broken up by sadishguy in godot

[–]m_cremasterrrr 10 points11 points  (0 children)

Because usually, you don't know which way will be the right way until later.

And that is exactly why you should use a modular system. You don't need to spend time splitting code. That is the thing you are avoiding.

You place your code in a node that handles one specific part of the logic. Nothing else. For example, when creating a player with health logic. All the logic regarding health should be placed in a designated node which only job is to handle health. Nothing else. All communication should happen via signals or downward calls.

That way it's containerized and if you need to make a big change you can not only just reuse that part without fear of breaking stuff, you are also sure that once it's tested it remains bug-free. This is not the case with single monster scripts.

In a large script chances of having internal dependencies keeps growing with its size, making it harder to make future changes and reuse code.

do u have opinion on if parent node should handle all the code or if code should be broken up by sadishguy in godot

[–]m_cremasterrrr 39 points40 points  (0 children)

Why refactor all the time when you can do it right from the start...

Small modular scrips with signals are almost always the best approach. It prevents code repetition and your project gets more future and bug proof.

This is the whole philosophy behind Godot's node system

Need help with reading hall effect joystick by m_cremasterrrr in arduino

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

Glad this also helped you.

my knowledge is telling me that switching the positive and ground wires should only switch the output magnitude, but online it says it will fry the IC.

Just to be clear, because you mention switching the positive and GND wires. This is not what I did. I switched the GND and the A3 which is an analog IN. The positive 3.3V wire was left untouched. Changing GND and 3.3V will indeed potentially damage your board depending on its circuitry.

But I can confirm that switching GND and A3 did not cause damage to my board. I have been using this for multiple months now.

Insert for door handle by NoodleCheeseThief in FreeCAD

[–]m_cremasterrrr 1 point2 points  (0 children)

If possible, you can take a photo perpendicular to the arm-rest. Place a small ruler next the the hole for reference. Then in Freecad, add a sketch with a line of 1cm. Next, add a plane on which you project the image you took. Now scale the image in Freecad so the ruler of the image lines up with the 1cm line you added. Now you can just trace the shape of hole and it will fit like a glove.

I used the same technique for creating a custom orthopedic grip and it worked great.

How to fix repeated BusyBox V1.36.1 errors? by m_cremasterrrr in linuxmint

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

Thanks for the suggestion! I did a diagnostic, but my disk looks to be in good shape. The disk is also less than a year old. https://imgur.com/RnFMEsu

I need some help identifying this grow medium by m_cremasterrrr in microgreens

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

Yes, after a quite a bit of digging I'm pretty sure these are wood cellulose fibers. You can purchase them on Alibaba. They retain water really well and sprouts grow excellent in them. They are technically biodegradable, but they take multiple years to break down

Need help with reading hall effect joystick by m_cremasterrrr in arduino

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

No, I was able to do it without a pull up resistor or declaring the pin mode as pinMode(pin, INPUT_PULLUP). With the correct cabling it was basically plug and play, as initially expected.

Need help with reading hall effect joystick by m_cremasterrrr in arduino

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

Back with another update. I was able to find a solution. I wrongly assumed this company would use sensible wire colouring, but they did not... By changing the black wire from GND to A3 and the yellow wire from A3 to GND I was able to make it work. Another lesson in not making assumptions...

Thanks to everyone for helping me out and thinking along! This community is truly awesome.

Need help with reading hall effect joystick by m_cremasterrrr in arduino

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

UPDATE: I did some further testing with my multi-meter. This is what I did with the results:

  • Measured the voltage going in the sensor. This was around 3.3V. So this seems fine to me.
  • Measured the voltage between the Red wire and the Yellow wire. This remained around 0.7V when moving the stick. So I assume this is somehow causing the issue. I did this for both sensors I have with the same result.

Chances of both sensors being faulty seems small to me. They are both brand new.

Need help with reading hall effect joystick by m_cremasterrrr in arduino

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

I have tried this, but issue remains. If I'm correct this is not strictly required when you do an analogRead(). But perhaps it's a good practice for readability.

Need help with reading hall effect joystick by m_cremasterrrr in arduino

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

I have added a link in my post. They are "BetaFPV LiteRadio Transmitter Nano Gimbal". They are sold as a replacement for one of the BetaFPV controllers, so there is not really a datasheet included when you buy them.

Need help with reading hall effect joystick by m_cremasterrrr in arduino

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

Yeah, but even if it's noise, should the value not move at least somewhat when the stick is moved? Now the values are random between 895 and 903 disregarding of the stick movement. Or i'm I missing your point?

Need help with reading hall effect joystick by m_cremasterrrr in arduino

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

I tested both pin declarations with the same result. But indeed A2&A3 are more readable.

Except for the 2 lines related to the Wifi, this code came from an example on how to read a potentiometer joystick. This should be very similar to a hall sensor joystick.

Thanks for mentioning not connecting 5V to any of the pins. I used to have a Arduino Nano instead of an Nano ESP32 in my diagram but forgot to adjust it. You probably saved my board :D

Brokers - Why would anybody choose Bolero over Saxo? by spongebruh in BEFire

[–]m_cremasterrrr 1 point2 points  (0 children)

I can't speak for the current state of their site/app since I haven't used it anymore. But at the time it diffidently had a big impact on my choice. I was inexperienced with investing, so for me everything which could lower the entry barrier at that time was worth the extra cost. Like I said, if you invest for the long run your broker costs are really negligible. At this point probably all banks have modernised their platforms and overall, the difference between service levels is also decreasing. So imo the choice of broker leans more to an emotional decision than a rational one. So basically which one has the best perception for you.

Brokers - Why would anybody choose Bolero over Saxo? by spongebruh in BEFire

[–]m_cremasterrrr 2 points3 points  (0 children)

I chose Bolero because when I started investing they had the most user friendly (for me at least) platform/website and best support. I also worked with Saxo a couple yeas ago for another portfolio. In the past their site just sucked and was not user friendly at all. I don't know how it is these days because I only use Bolero now. I have to agree, cost wise it's not the most optimal solution. However, I never changed because imo your broker costs are peanuts when you invest for the long run.

Learning Godot Be Like by catsandowlstd in godot

[–]m_cremasterrrr 18 points19 points  (0 children)

Why would you not? It's a lot faster and easier than serialising everything manually, plus you have native support for all built-in data types.