Mariaagnesi-fangirl-blog - The Farmer's Daughter

mariaagnesi-fangirl-blog - The Farmer's Daughter

More Posts from Mariaagnesi-fangirl-blog and Others

A Good Old-Fashioned Midwestern Apocalypse

A Good Old-Fashioned Midwestern Apocalypse

food is THE love language. let me bake you some fucking bread.

Generic Coding Tips

>> Know the intent of your code. What is the purpose of your code? What should the inputs be? What should it output? It can be useful (especially for larger projects) to write out a flow chart that maps how information moves from task to task through the program.

>> Divide your code into sections that fulfill specific tasks, then chain them together. Sometimes it’s worth devoting a code section to its own file to be used by multiple programs rather than coding multiple instances of the same thing into each program. Consider what tasks might be useful for future programs.

>> Create a main project folder and don’t be afraid to use subfolders. Folder hierarchies are your friend when it comes to juggling multiple files in an easy-to-understand manner.

>> Consider having a “resources” subfolder, with pdfs, webpages, etc. of information relevant to your project. For example, I’m currently working on a program to calculate relic densities, so my project folder has a resource subfolder with research papers about relic densities. 

>> Comment your code! Seriously, future you will appreciate it. (I usually also keep a README.txt file in the same folder which describes how to implement the code.)  In the same vein, explicitly state any conventions you’re using and where you’re getting any data you import.

>> Test each section as you build it. Throw in sample values (preferably where you know what the output should be) periodically and make sure it’s doing what you want it to do!

>> SAVE WORKING VERSIONS OF YOUR CODE. Do you have a working build? Save it, then–before augmenting anything–create a new file and work on the next version of the code there. I do this usually via “save” and then “save as”.  Version control is to coding as save points are to video games.

>> Generating a lot of data? Consider saving a sample instance of that data in a subfolder. It can be a massive pain to troubleshoot portions of your program if you have to wait to generate hundreds of data points every time you run it. 

>> Getting an unknown error in a massive amount of code? Isolate the section of code containing the error(s), then create a minimal working example of the section, and keep adding to that example until you either figure out 1. why your original code failed, or 2. until you’ve constructed a new functioning code.

Big Beautiful Spiral Galaxy M101

Big beautiful spiral galaxy M101

“People can’t anticipate how much they’ll miss the natural world until they are deprived of it. I have read about submarine crewmen who haunt the sonar room, listening to whale songs and colonies of snapping shrimp. Submarine captains dispense “periscope liberty” - a chance to gaze at clouds and birds and coastlines - and remind themselves that the natural world still exists. I once met a man who told me that after landing in Christchurch, New Zealand, after a winter at the South Pole research station, he and his companions spent a couple of days just wandering around staring in awe at flowers and trees. At one point, one of them spotted a woman pushing a stroller. “A baby!” he shouted, and they all rushed across the street to see. The woman turned the stroller and ran. Nothing tops space as a barren, unnatural environment. Astronauts who had no prior interest in gardening spend hours tending experimental greenhouses. “They are our love,” said cosmonaut Vladislav Volkov of the tiny flax plants - with which they shared the confines of Salyut 1, the first Soviet space station. At least in orbit, you can look out the window and see the natural world below. On a Mars mission, once astronauts lose sight of Earth, they’ll be nothing to see outside the window. “You’ll be bathed in permanent sunlight, so you won’t eve see any stars,” astronaut Andy Thomas explained to me. “All you’ll see is black.””

— Mary Roach. Packing for Mars: The Curious Science of Life in the Void.  (via hummeline)

Our Lady Of Snow In Prague, Czech Republic

Our Lady of Snow in Prague, Czech Republic

Picture taken by Me.

Leonid Meteors Tonight And Tomorrow Night
Leonid Meteors Tonight And Tomorrow Night

Leonid meteors tonight and tomorrow night


Tags
  • lotuspirit73
    lotuspirit73 reblogged this · 4 years ago
  • lotuspirit73
    lotuspirit73 liked this · 4 years ago
  • todadejesusemaria
    todadejesusemaria liked this · 4 years ago
  • sunflowers-and-caterpillars
    sunflowers-and-caterpillars liked this · 4 years ago
  • dianis678-blog
    dianis678-blog liked this · 5 years ago
  • ars-mangus
    ars-mangus reblogged this · 5 years ago
  • ars-mangus
    ars-mangus liked this · 5 years ago
  • yahveh-nissi
    yahveh-nissi reblogged this · 5 years ago
  • darthshone
    darthshone liked this · 5 years ago
  • larssonustic
    larssonustic liked this · 5 years ago
  • shyheartrunaway
    shyheartrunaway liked this · 5 years ago
  • servant-of-the-king22
    servant-of-the-king22 liked this · 5 years ago
  • cheerful-suffering
    cheerful-suffering reblogged this · 5 years ago
  • puritycat
    puritycat reblogged this · 5 years ago
  • cissypc
    cissypc reblogged this · 5 years ago
  • cissypc
    cissypc liked this · 5 years ago
  • cantcomeupwithusername
    cantcomeupwithusername reblogged this · 5 years ago
  • cantcomeupwithusername
    cantcomeupwithusername liked this · 5 years ago
  • blueicealice
    blueicealice liked this · 5 years ago
  • gagnemiss
    gagnemiss reblogged this · 5 years ago
  • colormipretty
    colormipretty reblogged this · 5 years ago
  • colormipretty
    colormipretty liked this · 5 years ago
  • tradcatmaria
    tradcatmaria reblogged this · 5 years ago
  • einstein-rosen-bridge
    einstein-rosen-bridge reblogged this · 5 years ago
  • nonigurl
    nonigurl liked this · 5 years ago
  • remanlover98
    remanlover98 liked this · 5 years ago
  • duchesspeggy
    duchesspeggy liked this · 5 years ago
  • littlegirl-arise
    littlegirl-arise reblogged this · 5 years ago
  • kokariookami
    kokariookami liked this · 5 years ago
  • enbeeeah
    enbeeeah reblogged this · 5 years ago
  • o-sacra-virgo-laudes-tibi
    o-sacra-virgo-laudes-tibi reblogged this · 5 years ago
  • thenopetrain
    thenopetrain liked this · 5 years ago
  • moni915
    moni915 liked this · 5 years ago
  • ave-maria-ora-pro-nobis
    ave-maria-ora-pro-nobis reblogged this · 5 years ago
  • hislittleflower-throughconcrete
    hislittleflower-throughconcrete reblogged this · 5 years ago
  • bagheera82
    bagheera82 reblogged this · 5 years ago
  • bagheera82
    bagheera82 liked this · 5 years ago
  • that-devout-catholic-woman
    that-devout-catholic-woman reblogged this · 5 years ago
  • angels-roses
    angels-roses liked this · 5 years ago
mariaagnesi-fangirl-blog - The Farmer's Daughter
The Farmer's Daughter

"There is a pre-established harmony between thought and reality. Nature is the art of God." - Gottfried Willhelm Leibniz

164 posts

Explore Tumblr Blog
Search Through Tumblr Tags