Ok. I Am Going To Let You In On A Secret About How To Make Programming Projects.

Ok. I am going to let you in on a secret about how to make programming projects.

You know how people write really good code? Easy to read, easy to work with, easy to understand and very efficient?

By refactoring.

The idea that you write glorious nice code straight is an insane myth that comes from thinking tutorials is how people actually code.

That is because programming is just writing. Nothing more. Same as all other writing.

The hobbit is ~95000 words.

Do you think Tolkien created the Hobbit by writing 95 thousand words?

Of course not! He wrote many many times that. Storylines that ended up scrapped or integrated in other ways, sections that got rewritten, dialog written again and again as the rest of the story happened. Background details filled in after the story had settled down

Writing. Is. Rewriting.

Coding. Is. Refactoring.

Step 1 in programming is proof of concept. Start with the most dangerous part of your project ( danger = how little experience you have with it * how critical it is for your project to work )

Get it to do... anything.

Make proof of concept code for all the most dangerous parts of the project. Ideally there is only 1 of these. If there is more than 3 then your project is too big. ( yes, this means your projects needs to be TINY )

Then write and refactor code to get a minimum viable pruduct. It should do JUUUUUST the most important critical things.

Now you have a proper codebase. Now everytime you need to expand or fix things, also refactor the code you touch in order to do this. Make it a little bit nicer and better. Write unit tests for it. The works.

After a while, the code that works perfectly and never needs to be touched is hard to read. Which does not matter because you will never read it

And the code that you need to change often is the nicest code in the codebase.

TRYING TO GUESS AHEAD OF TIME WHAT PARTS OF THE CODE WILL BE CHANGED OFTEN IS A FOOLS ERRAND.

( also, use git. Dear god use git and commit no more than 10 lines at once and write telling descriptions for each. GIT shows WHAT you did. YOU write WHY you did it )

Is this how to make your hobby project?

Yes. And also how all good software everywhere is made.

More Posts from Mintie-chip and Others

3 weeks ago

Let's write a C++ program together. I'll start us off.

int main() {

1 month ago

i fucking hate writing java dude what do you mean list.stream().forEach(list2::add)??!

syntax written by clowns

1 month ago
Clockwork UConsole CM4

Clockwork uConsole CM4


Tags
1 month ago

You all disappoint me. Not one (1) drawing of a personified tumblr mourning the lifeless corpse of 4chan? Not ome? They were our rivals you sick fucks. Nary a whiff of 1 (one) fix-it AU? Im going to hibernate now..youve pirssed me off

1 month ago

coding got me saying shit like “target the child” “assign its class” “override its inheritance” like the third wife of a dying oil baron discovering his of-age son born out of wedlock

1 month ago

i post from here. if you even care.

I Post From Here. If You Even Care.
1 month ago

I distinctly remember ranting on tumblr about a problem in my code like half a year ago and I was frustrated with arrays of strings in c++ and I REMEMBER a furry adding a comment that just said “you could try parsing the string uwu” and I did it and it WORKED and I was so relieved because I had been fighting with it for like a week.

The only problem is I can’t find that post and I think I dreamt it up. I think God came to me in a dream as a furry responding to my tumblr post to help me fix my code. I am going insane why did my brain do this.


Tags
1 month ago

Computers be like "omg bestie so true" and it's just the number 1

1 month ago

I don't expect porn games to have top-notch gameplay, but I do at least expect them to engage with the mechanical conventions of the genres they're pornifying. "RPG where you have sex with the monster when you lose a fight" bullshit – I want to see porn versions of those tedious filler puzzles every indie RPG is apparently contractually required to have. Let's see an erotic version of the Towers of Hanoi.

  • secretkryptoniteangel
    secretkryptoniteangel liked this · 4 days ago
  • furankou
    furankou reblogged this · 4 days ago
  • beepeircings
    beepeircings reblogged this · 5 days ago
  • kyrathor
    kyrathor reblogged this · 1 week ago
  • kyrathor
    kyrathor liked this · 1 week ago
  • jasminuwu
    jasminuwu reblogged this · 1 week ago
  • jasminuwu
    jasminuwu liked this · 1 week ago
  • urara04
    urara04 reblogged this · 2 weeks ago
  • autbot
    autbot reblogged this · 2 weeks ago
  • autbot
    autbot liked this · 2 weeks ago
  • undergroundchy
    undergroundchy liked this · 3 weeks ago
  • mariebstudying
    mariebstudying reblogged this · 3 weeks ago
  • trigonometricallyaccurateangle
    trigonometricallyaccurateangle liked this · 3 weeks ago
  • nimosza
    nimosza liked this · 3 weeks ago
  • jacovii
    jacovii liked this · 3 weeks ago
  • complexly-simple
    complexly-simple reblogged this · 3 weeks ago
  • complexly-simple
    complexly-simple liked this · 3 weeks ago
  • lololilylae
    lololilylae liked this · 3 weeks ago
  • spilloverlove
    spilloverlove liked this · 4 weeks ago
  • sebbywebster
    sebbywebster liked this · 4 weeks ago
  • discontinued-diabolical
    discontinued-diabolical liked this · 1 month ago
  • teflonsamurai
    teflonsamurai liked this · 1 month ago
  • sunsetlobster
    sunsetlobster liked this · 1 month ago
  • hellhog
    hellhog liked this · 1 month ago
  • gamzeescript
    gamzeescript liked this · 1 month ago
  • profoundly-parker
    profoundly-parker liked this · 1 month ago
  • artionn
    artionn liked this · 1 month ago
  • star-studded-zweilous
    star-studded-zweilous liked this · 1 month ago
  • mintie-chip
    mintie-chip reblogged this · 1 month ago
  • colgatecock
    colgatecock liked this · 1 month ago
  • afternooncereal
    afternooncereal reblogged this · 1 month ago
  • mothdork
    mothdork reblogged this · 1 month ago
  • dirtcatty
    dirtcatty liked this · 1 month ago
  • obsessivepenguin
    obsessivepenguin reblogged this · 1 month ago
  • obsessivepenguin
    obsessivepenguin liked this · 1 month ago
  • capricious-frog
    capricious-frog reblogged this · 1 month ago
  • capricious-frog
    capricious-frog liked this · 1 month ago
  • phinatheeeper
    phinatheeeper reblogged this · 1 month ago
  • sleepywyrldbuilder
    sleepywyrldbuilder liked this · 1 month ago
  • skyeqt
    skyeqt reblogged this · 1 month ago
  • finlizziah
    finlizziah reblogged this · 1 month ago
  • catboy-tiramisu
    catboy-tiramisu reblogged this · 1 month ago
  • its-fucking-tangerine
    its-fucking-tangerine liked this · 1 month ago
  • sqrt-73
    sqrt-73 liked this · 1 month ago
  • patronsaintofdemons
    patronsaintofdemons liked this · 1 month ago
  • nayapima
    nayapima liked this · 1 month ago
mintie-chip - actual fucking trainwreck
actual fucking trainwreck

he/they/it | cuntputer science

43 posts

Explore Tumblr Blog
Search Through Tumblr Tags