81
all 12 comments
sorted by: hot top controversial new old
[-] kucing@lemmy.ml 24 points 11 months ago

If only our fellow devs would stop using medium, that would be great.

[-] andioop@programming.dev 11 points 11 months ago

Article text:

Taking baby steps helps us go faster.

Much has been written about this topic, but it comes up so often in pairing that I feel it’s worth repeating.

I’ll illustrate why with an example from a different domain: recording music. As an amateur guitar player, I attempt to make recorded music. Typically, what I do is throw together a skeleton for a song — the basic structure, the chord progressions, melody, and so on — using a single sequenced instrument, like a nice synth patch. That might take me an afternoon for a 5-minute piece of music.

Then I start working out guitar parts — if it’s going to be that style of arrangement — and begin recording them (musos usually call this “tracking”.)

Take a fiddly guitar solo, for example; a 16-bar solo might last 30 seconds at ~120 beats per minute. Easy, you might think to record it in one take. Well, not so much. I’m trying to get the best take possible because it’s metal and standards are high.

I might record the whole solo as one take, but it will take me several takes to get one I’m happy with. And even then, I might really like the performance on take #3 in the first 4 bars, and really like the last 4 bars of take #6, and be happy with the middle 8 from take #1. I can edit them together, it’s a doddle these days, to make one “super take” that’s a keeper.

Every take costs time: at least 30 seconds if I let my audio workstation software loop over those 16 bars writing a new take each time.

To get the takes I’m happy with, it cost me 6 x 30 seconds (3 minutes).

Now, imagine I recorded those takes in 4-bar sections. Each take would last 7.5 seconds. To get the first 4 bars so I’m happy with them, I would need 3 x 7.5 seconds (22.5 seconds). To get the last 4 bars, 6 x 7.5 seconds (45 seconds), and to get the middle 8, just 15 seconds.

So, recording it in 4 bar sections would cost me 1m 22.5 seconds.

Of course, there would be a bit of an overhead to doing smaller takes, but what I tend to find is that — overall — I get the performances I want sooner if I bite off smaller chunks.

A performance purist, of course, would insist that I record the whole thing in one take for every guitar part. And that’s essentially what playing live is. But playing live comes with its own overhead: rehearsal time. When I’m recording takes of guitar parts, I’m essentially also rehearsing them.

The line between rehearsal and performance has been blurred by modern digital recording technology. Having a multitrack studio in my home that I can spend as much time recording in as I want means that I don’t need to be rehearsed to within an inch of my life like we had to be back in the old days when studio time cost real money.

Indeed, the lines between composing, rehearsing, performing, and recording have been completely blurred. And this is much the same as in programming today.

Remember when compilers took ages? Some of us will even remember when compilers ran on big central computers, and you might have to wait 15–30 minutes to find out if your code was syntactically correct (let alone if it worked.)

Those bad old days go some way to explaining the need for much up-front effort in “getting it right”, and fuelled the artificial divide between “designing” and “coding” and “testing” that sadly persists in dev culture today.

The reality now is that I don’t have to go to some computer lab somewhere to book time on a central mainframe, any more than I have to go to a recording studio to book time with their sound engineer. I have unfettered access to the tools, and it costs me very little. So I can experiment. And that’s what programming (and recording music) essentially is, when all’s said and done: an experiment.

Everything we do is an experiment. And experiments can go wrong, so we may have to run them again. And again. And again. Until we get a result we’re happy with.

So biting off small chunks is vital if we’re to make an experimental approach — an iterative approach — work. Because bigger chunks mean longer cycles and longer cycles mean we either have to settle for less — okay, the first four bars aren’t that great, but it’s the least bad take of the 6 we had time for — or we have to spend more time to get enough iterations (movie directors call it “coverage”) to better ensure that we end up with enough of the good stuff.

This is why live performances generally don’t sound as polished as studio performances, and why software built in big chunks tends to take longer and/or not be as good.

In guitar, the more complex and challenging the music, the smaller the steps we should take. I could probably record a blues-rock number in much bigger takes because there’s less to get wrong. Likewise in software, the more there is that can go wrong, the better it is to take baby steps.

It’s a basic probability, really. Guessing a 4-digit number is an order of magnitude easier if we guess one digit at a time.

[-] Doombot1@beehaw.org 2 points 11 months ago

Out of curiosity, what’s wrong with medium? (Serious question)

[-] learningduck@programming.dev 5 points 11 months ago

They start a paywall if an author wants to monetize their work, which is fine. It's not Medium's fault as authors are the ones who decide to monetize their articles or not.

[-] twelvefloatinghands@lemmy.world 1 points 11 months ago

It's small steps, not medium steps dammit!

[-] epyon22@programming.dev 12 points 11 months ago

This is the basis behind scrum. Throw some customer feedback on those smaller releases and plan correction good to go.

[-] benjhm@sopuli.xyz 12 points 11 months ago* (last edited 11 months ago)

This principle works most but not all the time. I develop an interactive climate-system model that evolved with many small steps over 23 years. So it has many patchy fixes as climate policy structure changed, gases and sectors added etc. Then converted from java to scala module by module (out of ±50) , each step checking the plots looked as before. Result is it works, but parts are messy with legacy options and outdated code style. So sometimes it's necessary to radically rethink the structure, take big bold steps before it works again, that's hard. Scala strong type system, with hints from compiler (and "metals") help make such refactoring easier.

[-] benjhm@sopuli.xyz 9 points 11 months ago

Some of us will even remember when compilers ran on big central computers, and you might have to wait 15–30 minutes to find out if your code was syntactically correct (let alone if it worked.)

My father remembers when he wrote code printed on a set of punched cards, they traveled several hours on an evening train to a warehouse with a big government statistics computer (that was too busy during daytime), the result came back by train next morning. Syntax error? try again tomorrow...

[-] alanstateq@sh.itjust.works 1 points 6 months ago

When I decided to create my own website, I was stumped, not knowing where to start. But thanks to the service https://sloboda-studio.com/ my process has become much easier. Their team of professionals provided me with a complete solution, from design to programming and support. The result was a stylish and functional website that caught the attention of my clients. I am grateful to the service for their professionalism and efficiency in helping me realize my goals in the online space.

[-] mcqueenjosh@lemdro.id 1 points 2 weeks ago

Absolutely agree! Taking smaller steps in software development can significantly streamline the process. As highlighted in the article on how long it takes to create an app, breaking the project down into phases, like starting with an MVP, allows for quicker iterations and faster feedback. This approach not only helps in refining the app but also minimizes development time, making it easier to adapt to changes and market needs. Embracing this strategy can lead to more efficient and successful app development!

this post was submitted on 03 Dec 2023
81 points (100.0% liked)

Programming

17398 readers
94 users here now

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



founded 1 year ago
MODERATORS