Keeping it Simple: The Power of "Boring" Code

  Рет қаралды 2,923

Cyan Code

Cyan Code

12 күн бұрын

Looking for affordable Minecraft server hosting? Check out campfirehosting.com and learn more at • I Made a Minecraft Ser...

Пікірлер: 13
@angelo71463
@angelo71463 10 күн бұрын
I find boring code easier to debug, its often harder to add breakpoints, print statements to clever code.
@ZombieWarriorGaming
@ZombieWarriorGaming 9 күн бұрын
For the server host, can you make it so that you've run out of credits It will automatically bill you for a predetermined amount of credits So that you don't have to buy credits manually
@CyanCodeUs
@CyanCodeUs 9 күн бұрын
Yep! That's actually on the roadmap of features to implement :)
@vende6137
@vende6137 7 күн бұрын
This topic is where you can determine the quality of a developer. I've had a lot of projects in which i needed to analyse 40 year old code and complex processes. Some guy might think it elegant to just throw 5 pointers around and somehow, by magic i guess, a string pops out with incredibly important data. Where does it come from? What does it mean? Even if people laugh at me, i always program as simple as possible. Banging rocks together is better than bugs and errors because of unreadable code. I learned this way of thinking by replacing an extremely important 2000 lines of code long SQL. Why use multiple SQLs if you can do it in one? Why use variables to compute certain formulas, that's what SQL does! ... Well too bad one table in this monster needed to be replaced and it wouldn't work anymore. Even worse, where does the 1 Cent difference come from?! Do it as simple as possible, it will safe everyone a lot of grey hairs and money.
@mohamadothman9208
@mohamadothman9208 10 күн бұрын
You don 't need to split it into too many functions, you could break by "function" or responsibility: reading the file is one and printing the output (the `then` callback) as another named function instead of anonymous. you are breaking it because you assume each part could change... and you are clearly defining the expected input and output of each function. it's great especially when using typescript
@fuadd2509
@fuadd2509 9 күн бұрын
bro, where can I contact you?
@CyanCodeUs
@CyanCodeUs 7 күн бұрын
My email has been added to my channel’s info :)
@vadymstupakov2531
@vadymstupakov2531 10 күн бұрын
IMO, First version of csv reader is more readable.
@CyanCodeUs
@CyanCodeUs 10 күн бұрын
That’s fair! A better example may have been some more complicated validation logic, image manipulation, etc. I was more trying to think of an example that could be easily understood by more junior/beginner programmers edging their way into more advanced SE topics but I can understand that it may not be the best way to relay the overarching point.
@sioma9420
@sioma9420 10 күн бұрын
I agree, its just the "functional" approach over an "imperative" code solution. Doesn't change the point of OP which I agree with
@majixx
@majixx 9 күн бұрын
How is this easier to read? It adds so much cognitive complexity and overload that my brain starts to hurt. In the first example you are literally letting the language lead you to the answer, by piping function calls by passing the result of the first function as an argument to the next one. Imperative code is sometimes good to have, but in this particular case, I would never do what you did and I wouldn't be so strongly opinionated about something like this.
@vitalyl1327
@vitalyl1327 9 күн бұрын
Code.using more.lines and wrong abstracrions is harder to read than code using less lines.and a right abstraction. What is more readable - a SQL query or a mess of nested loops over arrays of structures? And in your example it should have never been javascript at all, even with map and filter. Should have used a Datalog. Or SQL.
My 10 “Clean” Code Principles (Start These Now)
15:12
Conner Ardman
Рет қаралды 94 М.
Fetching Data Doesn't Get Better Than This
6:58
Josh tried coding
Рет қаралды 52 М.
Conforto para a barriga de grávida 🤔💡
00:10
Polar em português
Рет қаралды 96 МЛН
Don't eat centipede 🪱😂
00:19
Nadir Sailov
Рет қаралды 22 МЛН
The best home workout !! 😱😱
00:27
Tibo InShape
Рет қаралды 10 МЛН
indian coding tutorials be like
1:40
NEFOS
Рет қаралды 1,7 МЛН
My "as few deps as possible" monorepo setup
4:03
Matt Pocock
Рет қаралды 26 М.
JavaScript Arrays Crash Course
6:04
Web Dev Simplified
Рет қаралды 93 М.
Build a JS Runtime in Rust
3:49
Deno
Рет қаралды 19 М.
You don't need a frontend framework
15:45
Andrew Schmelyun
Рет қаралды 57 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 240 М.
Python Lambda Functions??
4:30
b001
Рет қаралды 150 М.
What's the farthest you can travel in Minecraft Bedrock?
1:00
OscarCanSpell
Рет қаралды 2,9 М.
Edit My Photo change back coloured with Bast Tech
0:45
BST TECH
Рет қаралды 335 М.
Power up all cell phones.
0:17
JL FUNNY SHORTS
Рет қаралды 42 МЛН