- spent time to generate/optomize your indexes.
- faster storage/cpu/ram for your rdbms
- get the data needed by specific services into the service, only get the data from a central place if you have to (spinning up a new instance, another service changes state of data you need, which is a warning sign in itself that your architecture is brittle…)
- faster storage/cpu/ram
- generate indexes
- 2nd level cache shared between services
- establish a faster datastore for often requested data thats used by multiple services (that might be something like redis, or another rdbms on beefier hardware)
- optimize queries
- generate indexes
- faster storage/cpu/ram
- 0 Posts
- 33 Comments
Dunstabzugshaubitze@feddit.orgto Programming@programming.dev•Codeberg, self-hosting Gitea, or something else?14·20 days agogittea ltd was founded without adhering to the governance model gittea had and also claimed copyright on atleast the name and logo of gittea. many felt a non-profit would be a better way to organize development and thats how codeberg e.v. came to be.
the problem is not, and never was offering support and service against money, you can right now start selling forgejo if you’d desire to, it was allways about how the project itself should be organized.
Dunstabzugshaubitze@feddit.orgto Programming@programming.dev•Programming book recommendations?1·28 days agothat is the selling point of the head first books, they all feature bad jokes and other oddities to help you remember what you’ve read. it works.
Dunstabzugshaubitze@feddit.orgto Programming@programming.dev•Programming book recommendations?2·29 days agooh, i was not aware that there is a head first just about desgin patterns, thanks for the heads up.
And Archicture is something that gets more and more important for devs, because it’s likely that the code we write is just a part of a complex system of which we don’t control every part and understanding communication channels and the reasoning behind the setup of the system allows us to write our part in a way that it works well in the bigger thing and not something others (or worse, we) have to work around later.
Dunstabzugshaubitze@feddit.orgto Programming@programming.dev•Programming book recommendations?191·30 days ago- Refactoring by Martin Fowler, having patterns to help identify parts of code that could be changed for the better helps a lot.
- Test-Driven Development with Python, because testing is important and you should atleast have tests in mind when writing you code, even if you dont write them first. I like this one, because it’s very hands-on.
- Head first java by Sierra and Bates, good introduction to programming with languages that offer object orientation and not as dry as the gang of four book, but definitely aimed at beginners
- Fundamentals of Software Architecture by Richards and Ford, working as a programmer often means talking with big picture people or being one yourself, and they have their own strange language.
- Domain Driven Design by Evans, for a similiar reason as Fundamentals of Software Architecture.
- Neuromancer by William Gibson, because fun is important ;)
Dunstabzugshaubitze@feddit.orgto Programming@programming.dev•Where can I find a debugger with a GUI for Linux?41·2 months agohttps://github.com/j6t/kdbg might be to your liking, but it is still a gdb frontend.
depending on the language you use there might be an IDE with a good debugger for it, if so i’d have a look at that.
Dunstabzugshaubitze@feddit.orgto Selfhosted@lemmy.world•Custom Attributes in Authentik OIDCEnglish1·3 months agodoes authentik offer an option to preview a jwt for a given user? might be as simple as that the claim is not named “ocisAdmin” or is not a toplevel entry in the jwt.
Dunstabzugshaubitze@feddit.orgto Selfhosted@lemmy.world•Custom Attributes in Authentik OIDCEnglish3·3 months agonot an authentik user, but after skimming their docs i think you have to:
- create a role “ocisAdmin” via authentiks admin interface
- give this role to a group in the admin interface or create one.
- assign a user thats supposed to be an owncloud admin to the group
it might be that you also have to define somekind of mapper to include this in the informations owncloud receives from authentik, but as i said i only skimmed the docs and would personally just try it without the mapper.
Dunstabzugshaubitze@feddit.orgto Selfhosted@lemmy.world•Docker Hub limiting unauthenticated users to 10 pulls per hourEnglish2·3 months agooh, thats good to know, forgejo seems way nicer for self hosting than the limited gitlab open source core.
Dunstabzugshaubitze@feddit.orgto Selfhosted@lemmy.world•Docker Hub limiting unauthenticated users to 10 pulls per hourEnglish21·3 months agohttps://distribution.github.io/distribution/
is an opensource implementation of a registry.
you could also self host something like gitlab, which bundles this or sonatype nexus which can serve as a repository for several kinds of artifacts including container images.
Dunstabzugshaubitze@feddit.orgto Programming@programming.dev•[Noob here] Can someone explain to me the advantage of mutable objects?11·3 months agomultiple other objects might be holding a reference to the object you want to change, so you’d either have to recreate those too or mutate them to let them point to the new object.
however if you can do what you want to do in a side effect free way i suggest doing that, as it is indeed easier to reason about what happens this way.
Dunstabzugshaubitze@feddit.orgto Programming@programming.dev•How do you structure your models save/load code?2·3 months agomainly java dev here:
if i only have few classes i want to serialize/deserilize i implement the logic for that in the class, if they need special logic for that, and implement the serilizable interface. writing objects to somewhere or reading them from somewhere belongs in a different class.
if i have a lot of classes or use a framework like spring i’ll employ whatever they offer for serilization and deserilization or more likely a databinding library like jackson.
other languages with classes or structs offer simmiliar options(pythons pickling and unpickling or the json package in their standardlib for example) so my approach would stay mostly the same.
Dunstabzugshaubitze@feddit.orgto Programming@programming.dev•How to become a competent coder? - I was advised to cross post here.5·3 months agothat this does not make us fools is exactly what i wrote.
i am just tired of that “joke” that developers don’t understand their own work. its neither funny nor does it help anyone.
Dunstabzugshaubitze@feddit.orgto Programming@programming.dev•How to become a competent coder? - I was advised to cross post here.131·3 months agoi hate this joke.
yes, trial and error is part of the process, but that does not mean we are bumbling fools that don’t know how or why things work. trial and error is part of any complex endeavour or learning new things.
when i started programming i struggled with getting stuff to compile, because i didn’t know the language i was using well, i later struggled with getting my code to work on other machines because i didn’t understood how to package it.
we absolutely get more competent, but we use complex tools to do complex stuff and we seldom have to produce the exact same thing twice, so of course we often find ourselves in somewhat uncharted territory.
Dunstabzugshaubitze@feddit.orgto Programming@programming.dev•How am i supposed to learn C# ?2·4 months agono, i don’t think there is a big difference in ‘difficulty’ between both languages.
there is just more material for java, and as i said the languages are very similar, so learing to program in java wont be a waste of time if you plan to only use c# after that, because the concepts you learned a long the way will easily carry over.
Dunstabzugshaubitze@feddit.orgto Programming@programming.dev•How am i supposed to learn C# ?18·4 months agolearn java, way more material for that, but conceptionally very similar to c#. I suggest a book like “Head first Java”.
after that c# will be much easier to grasp.
Dunstabzugshaubitze@feddit.orgto Programming@programming.dev•How do i ask for contributors to my open source projects?8·4 months agoi mean: provide a link to the repo in your posts body, do not just link to your blog ;)
Dunstabzugshaubitze@feddit.orgto Programming@programming.dev•How do i ask for contributors to my open source projects?24·4 months agoit would be a good start to include a link to a git repo in your posts, when you share your blog posts.
if your code is hosted somewhere where you can create issues and tag them, create issues and tag them as “contribution welcome” or “good first issue”.
github is probably the best plattform to get contributions, simply because it’s the biggest and so many people already have an account there.
but complex reworks or new features are probably nothing a random contributor will provide, but you or close collaborators.
not a course but a book Eloquent Javascript, especially chapters 13 to 19.
The Book is about plain JavaScript and a big chunk of it is about javascript in Websites.