Hey there,

I have been a hobbyist programmer for quite some years and have a few smaller projects under my belt: mostly smaller GUI applications that have a few classes at maximum, make use of one or two external libraries and are very thoroughly documented and commented.

Since I love the free software movement and philosophy, I wanted to start contributing to projects I like and help them out.

The thing is, the jump from “hobbyist” to “being able to understand super-efficient compact established repos”… seems to be very hard?

Like, looking into some of these projects, I see dozens upon dozens of classes, header files, with most of them being totally oblique to me. They use syntactic constructs I cannot decipher very well because they have been optimized to irrecognizability, sometimes I cannot even find the starting point of a program properly. The code bases are decades old, use half the obscure compiler and language features, and the maintainers seem to be intimately familiar with everything to the point where I don’t even know what’s what or where to start. My projects were usually like four source files or so, not massive repositories with hundreds of scattered files, external configurations, edge cases, factories of factories, and so on.

If I want to change a simple thing like a placement of a button or - god knows! - introduce a new feature, I would not even remotely know where to start.

Is it just an extreme difficulty spike at this point that I have to trial-and-error through, or am I doing anything wrong?

4 points
*

That’s the point. Don’t contribute to software too difficult to understand.

Or at least start with easier ones.

permalink
report
reply

I’m not sure I agree - your definition would almost certainly include the kernel, office suites, and a host of other things.

permalink
report
parent
reply
7 points

It seems like you might be describing two different beasts, which could be part of your difficulty:

A codebase that has “dozens and dozens of classes and header files” sounds like a back-end project (written in C or similar), where the end product is an EXE or server app. A codebase where you’d help by updating “placement of a button” is a front-end project (written in HTML or JavaScript), where the output is HTML.

If you’ve cut your teeth contributing to front-end projects, you’ll likely feel more at home contributing to projects where the output is a website. There is a vast difference between working on a project that uses NextJS and contributing to the NextJS engine codebase itself. Finding a project that is using a library you know would be likely much easier to contribute to than contributing to the library itself.

permalink
report
reply
1 point
*
Deleted by creator
permalink
report
parent
reply
2 points

Personally, I would say to pick a specific implementation instance and debug it.

Let me use a button as an example.

If you have a button, say, Subscribe, attach your debugger where execution will go immediately upon click. Follow the path by stepping into (not over) the base implementation(s). Stop along the way if there are any calls that you do not understand what it is doing or why.

I most scenarios, there is common functionality that all objects would need. All buttons need to do x, y, z. All forms need to validate a, b, c, and forms of this specific type also need to validate d.

Usually the tradeoff in complexity upon first learning the code base is offset by the ease of extensibility once you are familiar with it.

permalink
report
reply
1 point

That is a good strategy I use for middle-sized projects. But in LibreOffice I wouldn’t know where to set the breakpoint, the code base is so large and complex. Same in Firefox.

permalink
report
parent
reply
3 points

I guess it could help to talk to someone familiar with it, maybe they would know the lay of the land. Otherwise it’s a matter of deciphering the architecture of the ancients. Your ability to do that entirely depends on how obscure it all is to you. Many software projects have been born out of the incomprehensibility and unmaintainability of older otherwise-perfectly-functional codebases ☺️

permalink
report
reply
4 points
*

I agree that a lot of free software are old now and big enough to be lost.

Maybe you can find a new and simple project, like https://github.com/lemmygtk/lemoa to improve your skills?

permalink
report
reply

Programming

!programming@programming.dev

Create post

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



Community stats

  • 3.5K

    Monthly active users

  • 1.7K

    Posts

  • 28K

    Comments