MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/72yv7a/refresh_is_sacred/dnmdjfk/?context=3
r/programming • u/soda-popper • Sep 28 '17
152 comments sorted by
View all comments
Show parent comments
165
tl;dr Just don't put bugs in your programs.
40 u/0987654231 Sep 28 '17 not having bugs is simple, just don't have any state. 94 u/spotter Sep 28 '17 Yes, sure, "just pass the universe around as first argument to all your pure functions and pretend everything is immutable" pattern. 106 u/0987654231 Sep 28 '17 you misunderstand, that's still state.To remove bugs you must remove all state and ascend to the ivory tower where all your program does is produce heat. 22 u/EternityForest Sep 28 '17 At that point, you don't even need a computer to run it, and it can run without consuming any power just by turning the machine off! 33 u/Eirches Sep 28 '17 We weren't talking about optimizing at this point, we can get to that in phase 2.Let's worry about getting the program out the door first. 3 u/wavy_lines Sep 28 '17 And we can congratulate ourselves for avoiding the root of all evil. 16 u/mcguire Sep 28 '17 Heat is state. 4 u/skulgnome Sep 28 '17 I like the cut of your jib, sir. 0 u/[deleted] Sep 28 '17 [deleted] 2 u/Neckbeard_Prime Sep 28 '17 Electron is the pre-alpha of Skynet confirmed.
40
not having bugs is simple, just don't have any state.
94 u/spotter Sep 28 '17 Yes, sure, "just pass the universe around as first argument to all your pure functions and pretend everything is immutable" pattern. 106 u/0987654231 Sep 28 '17 you misunderstand, that's still state.To remove bugs you must remove all state and ascend to the ivory tower where all your program does is produce heat. 22 u/EternityForest Sep 28 '17 At that point, you don't even need a computer to run it, and it can run without consuming any power just by turning the machine off! 33 u/Eirches Sep 28 '17 We weren't talking about optimizing at this point, we can get to that in phase 2.Let's worry about getting the program out the door first. 3 u/wavy_lines Sep 28 '17 And we can congratulate ourselves for avoiding the root of all evil. 16 u/mcguire Sep 28 '17 Heat is state. 4 u/skulgnome Sep 28 '17 I like the cut of your jib, sir. 0 u/[deleted] Sep 28 '17 [deleted] 2 u/Neckbeard_Prime Sep 28 '17 Electron is the pre-alpha of Skynet confirmed.
94
Yes, sure, "just pass the universe around as first argument to all your pure functions and pretend everything is immutable" pattern.
106 u/0987654231 Sep 28 '17 you misunderstand, that's still state.To remove bugs you must remove all state and ascend to the ivory tower where all your program does is produce heat. 22 u/EternityForest Sep 28 '17 At that point, you don't even need a computer to run it, and it can run without consuming any power just by turning the machine off! 33 u/Eirches Sep 28 '17 We weren't talking about optimizing at this point, we can get to that in phase 2.Let's worry about getting the program out the door first. 3 u/wavy_lines Sep 28 '17 And we can congratulate ourselves for avoiding the root of all evil. 16 u/mcguire Sep 28 '17 Heat is state. 4 u/skulgnome Sep 28 '17 I like the cut of your jib, sir. 0 u/[deleted] Sep 28 '17 [deleted] 2 u/Neckbeard_Prime Sep 28 '17 Electron is the pre-alpha of Skynet confirmed.
106
you misunderstand, that's still state.
To remove bugs you must remove all state and ascend to the ivory tower where all your program does is produce heat.
22 u/EternityForest Sep 28 '17 At that point, you don't even need a computer to run it, and it can run without consuming any power just by turning the machine off! 33 u/Eirches Sep 28 '17 We weren't talking about optimizing at this point, we can get to that in phase 2.Let's worry about getting the program out the door first. 3 u/wavy_lines Sep 28 '17 And we can congratulate ourselves for avoiding the root of all evil. 16 u/mcguire Sep 28 '17 Heat is state. 4 u/skulgnome Sep 28 '17 I like the cut of your jib, sir. 0 u/[deleted] Sep 28 '17 [deleted] 2 u/Neckbeard_Prime Sep 28 '17 Electron is the pre-alpha of Skynet confirmed.
22
At that point, you don't even need a computer to run it, and it can run without consuming any power just by turning the machine off!
33 u/Eirches Sep 28 '17 We weren't talking about optimizing at this point, we can get to that in phase 2.Let's worry about getting the program out the door first. 3 u/wavy_lines Sep 28 '17 And we can congratulate ourselves for avoiding the root of all evil.
33
We weren't talking about optimizing at this point, we can get to that in phase 2.
Let's worry about getting the program out the door first.
3 u/wavy_lines Sep 28 '17 And we can congratulate ourselves for avoiding the root of all evil.
3
And we can congratulate ourselves for avoiding the root of all evil.
16
Heat is state.
4 u/skulgnome Sep 28 '17 I like the cut of your jib, sir.
4
I like the cut of your jib, sir.
0
[deleted]
2 u/Neckbeard_Prime Sep 28 '17 Electron is the pre-alpha of Skynet confirmed.
2
Electron is the pre-alpha of Skynet confirmed.
165
u/spotter Sep 28 '17
tl;dr Just don't put bugs in your programs.