How to make your code not to sink into oblivion?
Jesus Oroya
Bilbao, february 2019
Instal ruby
Before to start...
WHY DOES THE CODE DIE?
The code Doesn't MAtter
WHAT'S MOST IMPORTANT: THE PAPER OR THE CODE?
Main programming errors
CONCEPT PROBLEM
Main programming errors
CONCEPT PROBLEM
Main programming errors
Be too specific code
CONCEPT PROBLEM
Main programming errors
Be too specific code
If we need to modify some parameter inside the code,
The Best is to extract it as an input parameter.
CONCEPT PROBLEMs
Main programming errors
OVERENGINEERING
Design a product to be more complex than necessary
CONCEPT PROBLEMs
Main programming errors
OVERENGINEERING
CONCEPT PROBLEMs
Main programming errors
OVERENGINEERING
Be too specific
VS
CONCEPT PROBLEMs
Main programming errors
Reinvent the wheel
CONCEPT PROBLEMs
Main programming errors
Reinvent the wheel
TECHNICAL PROBLEMs
Main programming errors
TECHNICAL PROBLEMs
Main programming errors
So Long Files
TECHNICAL PROBLEMs
Main programming errors
IT DOES NOT HAVE A CLEAN CODE
TECHNICAL PROBLEMs
Main programming errors
IT DOES NOT HAVE A CLEAN CODE
if (l == true){
x++;
a.DoIt(x)
}
TECHNICAL PROBLEMs
Main programming errors
IT DOES NOT HAVE A CLEAN CODE
if (HaveLive == true){
GameAttempts = GameAttempts + 1;
ScoreService.AddAttempts(GameAttempts)
}
TECHNICAL PROBLEMs
Main programming errors
Do not have version control
TECHNICAL PROBLEMs
Main programming errors
Do not have version control
TECHNICAL PROBLEMs
Main programming errors
Dont' USE oop
Object-oriented programming is the most powerful tool
TECHNICAL PROBLEMs
Main programming errors
Dont' USE oop
TECHNICAL PROBLEMs
Main programming errors
Dont' USE oop
TECHNICAL PROBLEMs
Main programming errors
Dont' USE oop
functions L²
Operators
Main programming errors
divulgation PROBLEM
Main programming errors
The Scientific Paper Is ObsoletE
divulgation PROBLEM
The Scientific Paper Is ObsoletE
The Scientific Paper Is ObsoletE
- The scientific article dates from the seventeenth century
- Before the results were published in private letters
The Scientific Paper Is ObsoletE
-
The data set could be represented on a single page.
-
Today, the topics have become complex, and depend on code
The Scientific Paper Is ObsoletE
Paper is sometimes unable to perform its most basic task. Report what has been discovered.
WHAT IS THE FOLLOWING?
A example
Gravitational Waves From Black Holes Are Detected for Third TimE
Gravitational Waves From Black Holes Are Detected for Third TimE
-
Notebooks contain both computer code and rich text elements.
-
Notebook documents are both human-readable documents.
MARKDOWN
MARKDOWN
divulgation PROBLEM
Main programming errors
Let'S Start with your Blog of Computational Experiments
Your First Blog of Computational Experiments
install ruby
Before to start...
gem install jekyll bundler
jekyll new myblog
cd myblog
bundle exec jekyll serve
Markdown SYNTAX
gem install
bundle exec jekyll server
¿Publish this page?
YOUR COMPUTATIONAL BLOG
Computational
By Deyviss Jesus Oroya
Computational
- 57