This post was originally published on my blog: https://www.abdullahgira.com/blog/2023-01-23-week-1-how-to-code-simple-data
Last week's course was How to code simple data. Most of the content in the first weeks was introducing a new language called beginning student language, and some concepts that I liked and want to share in this post.
How to design functions
It talks about how to test your functions before implementing them and make sure you test the edge cases (TDD).
Data-driven templates
Data-driven templates are saying, given that I know what type of data this function consumes, what do I know about the structure of this function?
Templates are an idea that you can use throughout your career, no matter how sophisticated a programmer you get to be. When you get a hard problem and don't quite know how to do it, you first say, well, what do I know about the program's basic structure before I get to the details? That's an incredibly powerful idea.
White box testing
White box testing is when we know how the function is implemented so we test against that, in the opposite you have black box testing where you only care about the input and the output.
Oh one last thing, you can copy-paste images into the editor of this language!
Top comments (0)