Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)
0101100101 @programming.dev
Posts 6
Comments 46
Critique This! A Simple Qt Dock Widget which enables the whole widget to be 'folded' to use less screen space
  • Thanks for your response.

    should never embed classes within other classes)

    Why is this? I have to admit that coming from other languages, it feels dirty, but is there a pythonic good reason for this? The class 'belongs' to the FoldableDockWidget class, so I figure it's the best place to put it.

  • Critique This! A Simple Qt Dock Widget which enables the whole widget to be 'folded' to use less screen space
  • Thanks. I wondered why I instinctively text-transformed the title of the widget to uppercase! I commented it out thinking perhaps it doesn't look grammatically correct! Reduced the font size a bit and I think it looks a heck of a lot better now!

  • Critique This! A Simple Qt Dock Widget which enables the whole widget to be 'folded' to use less screen space

    I'm working on a project that needs lots of toolbars on screen at once, even though not all of them will be used at the same time. So, I'm modelling this 'foldable' dock widget after what I remember Photoshop panels used to be like.

    It's a work in progress, but would like to hear constructive suggestions.

    https://blocks.programming.dev/0101100101/42c5d67f86c049baa3500aa38e439f8a

    14
    Coders or lemmy, what editors do you use? Is it worth learning a new one?
  • I get this, but an IDE should be invisible and grow as you do and not require you to learn lots of janky things before it becomes a little bit useful for you.

    Need the basics, great, here they are. Don't understand some advanced feature? Well the IDE has it here, but it isn't in your way, mess with it as and when you want. It'll still be there.

    I don't think one IDE does everything for different languages and its ok to swap editors depending on your workflow, your project and your ever-changing skillset.

  • What's your favourite keyboard switch and why?

    Might as well help get this channel off to a flying start!

    What's your favourite switch (key type) and why? What would you like to try but haven't yet and what have you tried but wasn't for you?

    4
    Python in Visual Studio Code - February 2025 Release
  • You can do it in launch.json.

    Exactly, what a god-for-saken horrid solution! I'm all for JSON configuration for really low-down dirty stuff, but for something as simple as this? Eugh, no! Refactoring in Pycharm is fine as far as I can tell, never had any issues with it.

    VSCode/ium is fine for single-file python or other such simple stuff, but not for big projects and was an instant deal breaker for me. I hated pycharm when I first started using it, but as I get more used to it, it's way more usable and has some nice little features, so I'll stick with it for now.

    I get VSCode from a product marketing point of view and understand why it was created, but I wish it wasn't. One size fits all never works out in the long-term

  • So... is the IBM Model M the greatest keyboard ever created? Or has that phase passed now?
  • case of a model M

    I'm absolutely confused as to why not other manufacturer has adopted a little lip at the top of the keyboard above either the number or F keys to rest a pen. It was made in the days when scientists had their pen in one hand, log book on the desk and keyboard in the other hand. A place to rest the pen was necessary. It's 'still important today!

  • Do you use a macro keyboard for shortcuts? If so, what for and what size?
  • I’m using ch57x-keyboard-tool to configure it

    Great! I've bought similar without the dials (I wish I didn't have to pay extra for the stupid LEDs) and was hoping there was something open sourcey to configure it with rather than their dodgy codebase for the same reasons you list!

  • Go buy a linux book at a charity shop or a library sale!
  • Your opinions don't align with mine, so I'm going to personally insult you.

    It's this toxic attitude that we reject. If you prefer to stare at screens all the time causing damage to your retinas, then I'm happy for you.

  • Is it ok to post code (~250 LOC) for critique here?

    Working on a class that I'd like to use in a library (not for work) and think I'd appreciate external opinions!

    If not, where else could I post code for critique? Thanks

    14

    So... is the IBM Model M the greatest keyboard ever created? Or has that phase passed now?

    They're noisy, clacky, impossible to use in an office, in your house without headphones, perhaps even annoying neighbours, need effort to make them work on USB, so why do people love them so much?

    I've tested two. Didn't like them because sometimes if you don't hit the keys head on, they move a bit to the side with the spring and that's jarring on your fingers.

    Where do you stand on the debate?

    Also, first post, so what better a topic!

    12

    Go buy a linux book at a charity shop or a library sale!

    A great way to learn the basics. It'll be old, but that's ok. It's going to cover all the shell basics and then more. It's still going to be useful, it'll cost you pennies, you'll be able to dip into it when you want, and you'll be giving to a good cause.

    21

    Do you use a macro keyboard for shortcuts? If so, what for and what size?

    Macro keyboards are mini programmable USB keyboards that can be pressed to trigger shortcuts, a sequence of keypresses etc. They can have several layers so switching to a different one will trigger different keypresses from the same key, so e.g. different IDEs can be represented.

    I've just bought one with a view to setting up shortcuts for debugging. Each IDE has its own unique keys for navigating through the code, so I figure it'll be nice to just press one key to start debugging and one key to step into instead of a combination of ctrl+whatever etc

    Do you use one? If so, what do you use it for and what size do you use? Is it too big / too small?

    52