Contact Us

© 2018 by #LabEveryday  -  Site Designed by J. Wilburn Design Co.

  • White YouTube Icon
  • Facebook - White Circle
Oct 25

Infrastructure is code now.


A very dear friend of mine is an AD(Active Directory) engineer(he also is responsible for designing and implementing their Azure infrastructure) that more or less runs the ENTIRE AD forest for a mid-sized Federal Agency. He is a pretty sharp guy, and often runs circles around Microsoft's own AD engineers.....

We talk often, and once in a while he will hit me up after interviewing potential candidates for his team....and often the conversation ends up like this.....

Eduardo : "Hey MB...….had interviews today......take a wild guess how it turned out?"

Me: "is that so ? How many souls where taken by FizzBuzz( today?

Eduardo: "Bro....seriously ? You list all these awesome things you have done in an NT shop that you have done with Power$hell on your resume...but when I try to get into the weeds about those projects....or when I ask you 'tell me what you think this block of code does...'....well you know the rest"

The above is the future....scratch that....the above is NOW. to be accurate....scripting out automation has ALWAYS been a thing...especially in the *nix world...….but now it is is pretty much inescapable if you plan on lording over the "IT enterprise" of your grandmother's laptop.

I won't bother getting into the "whys" of it all. You guys pretty much can discern that all on your own, and it's really not the point of this post. I am a software engineer......I build systems that the government uses to basically aid them in the maintenance of our society. Dev/Ops and Software Development are increasing overlapping in some ways.....and as such...I am seeing "development" practices in the Dev/Ops community that makes me cringe(It's not their fault....they aren't Devs….and we all are noobs outside of our very narrow areas of expertise)

So...with all that being advice:

"Knowing Python is cool....but do you know how to write code that isn't complete garbage ?"

0. Learn how to write and verify algorithms....from there...pick a programming language...and then start implementing that algorithm in that language. When you start feeling really confident....start looking for coding challenges on the web, and learn what REST is. It's 2019 and no matter what niche you have decided to call your own in the general IT industry....please know that you will at some point will be targeting a network api…….and more often than will be based on REST( Google has REST APIs that you can play with when you are ready.

1. Take some time to learn the significance of the data types and collections that are available to you and when to use them.

2. Always(if possible) to include the type annotations of the variables/values you declare in your code...this includes the declaration of function/method arguments. If your code is going into production....and is want to be able to come back(or have a team member be able to) weeks/months/years later for maintenance or feature addition/enchancement, etc....and actually understand what the code is actually doing.

3. Learn what modularization/encapsulation is. Will this always be necessary ? No....especially if your script/program isn't particularly large....but once it does start getting over 100 will start noticing that it becomes less readable...and much more diffuclt to maintain. Modularization/Encapsulation mitigates this....greatly.

4. Learn other programming languages.

Python isn't always going to be an available options for you....and even when it isn't always the best tool to use. The following programming languages/environments are also commonly used for Dev/Ops(though I will concede that Python is likely the most popular language used for these purposes):

- Groovy

- Power$hell

- Ruby


5. Learn Git.....No....seriously....learn it.

At this point in the game.....not having a source code/documentation versioning regime is laughable and a sure portents of guaranteed future disaster....and NO......your current routine of saving different versions of your source code on your machine is NOT an adequate substitute. Trust me on this. Also.....remember that Git was meant to be used as a distributed source control application....meaning that you should treat it as such. Do not use GitHub or your internal git server as a central repo......for what should be obvious reasons....

6. Git isn't just for source code.

It's for documentation......docker files.....whatever you think you might need to keep track of versions for. Use it.

7. Make it a habit to implement unit testing.....

Unit and Integration testing catches bugs before you discover that they even existed in the first place. I's boring...and eats up time....but again...if your code base is no longer trivial.....or you know that it's going to be a fairly complex code base from the start....then just man-up and start testing out the gate.

8. Always come up with a design first...verify it's logic...and then code. ALWAYS.

I have yet in all my years doing this seen code that was the product of an on-the-spot-hack that wasn't to some degree complete garbage. Software Development whether you are writing the next must-have mobile app or writing an automation about developing algorithms that solve a specific problem other words...come up with a plan first. Test it's logic.....and if it pans out...then you start implementing that solution in code. Do it write the first time.

Well that's all I have for now......Let me know what you think. #Peace

New Posts
  • first off for relevance I am @battlenerd on Twitter or iNetwork. I am looking to get some input on a major choice I have been considering which is changing my major from networking and security to data science and data management. So one of my main questions here is is networking and security innovation being driven by data science and will the python and automation skills offered in this program also be a value add to my networking and security skill set? Program guide; Main programs of interest; Applied Probability and Statistics Applied Probability and Statistics is designed to help students develop competence in the fundamental concepts of basic statistics including: introductory algebra and graphing; descriptive statistics; regression and correlation; and probability. Statistical data and probability are often used in everyday life, science, business, information technology, and educational settings to make informed decisions about the validity of studies and the effect of data on decisions. This course discusses what constitutes sound research design and how to appropriately model phenomena using statistical data. Additionally, the content covers simple probability calculations, based on events that occur in the business and IT industries. No prerequisites are required for this course. ------------------------------------------------------------------------------------------------------------------------- Introduction to Programming in Python Introduction to Programming in Python provides the fundamentals of the Python language and its features to control program flow and to manipulate data sets. This course teaches how to develop Python scripts that extract and manipulate data from unstructured data sources. Python libraries including acquisition and configuration are also covered. Scripting and Programming Foundations and Web Development Foundations are prerequisites to this course. ------------------------------------------------------------------------------------------------------------------------- Scripting and Programming - Applications for undergraduates explores the various aspects of the C++ programming language by examining its syntax, the development environment, and tools and techniques to solve some real-world problems ------------------------------------------------------------------------------------------------------------------------- Introduction to Data Science This Introduction to Data Science course introduces the data analysis process and common statistical techniques necessary for the analysis of data. Students will ask questions that can be solved with a given data set, set up experiments, use statistics and data wrangling to test hypotheses, find ways to speed up their data analysis code, make their data set easier to access, and communicate their findings. ------------------------------------------------------------------------------------------------------------------------- Machine Learning This course presents the end-to-end process of investigating data through a machine learning lens. Topics covered include: techniques for extracting data, identifying useful features that best represent data, a survey of commonly-used machine learning algorithms, and methods for evaluating the performance of machine learning algorithms. ------------------------------------------------------------------------------------------------------------------------- Data Structures and Algorithms I Data Structures and Algorithms I covers the fundamentals of dynamic data structures, such as bags, lists, stacks, queues, trees, hash tables, and their associated algorithms. With Python software as the basis, the course discusses object-oriented design and abstract data types as a design paradigm. The course emphasizes problem solving and techniques for designing efficient, maintainable software applications. Students will implement simple applications using the techniques learned. This course has one prerequisite: Software 1. ------------------------------------------------------------------------------------------------------------------------- Thanks for reading and replying!