codexdesign

code and design experiences for beginners

Modular and Reusable Code Design ( javascript )


code notes: Modular and Reusable Code Design introduces important and powerful approraches to organizing code including functions and objects.

design notes: Modular and Reusable Code Design enables the integration of complex ideas, properties, and methods. This is the beginning of sophisticated programming.


design card

code: review
modularity/reusability: built-in, system, or available functions

design card

code: month, day, year functions
modularity/reusability: time functions

design card

code: map function
modularity/reusability: time functions

design card

code: millis, system function
modularity/reusability: time functions

design card

code: millis, noLoop
modularity/reusability: time functions, conditional

design card

code: frameCount
modularity/reusability: time functions

design card

code: seconds, mouseX, mouseY
modularity/reusability: time functions

design card

code: custom or user-defined function
modularity/reusability: function definition and call

design card

code: millis timer with conditionals
modularity/reusability: function definitions and calls

design card

code: complex collision detection
modularity/reusability: function definitions and calls

design card

code: color choice experience
modularity/reusability: function definitions and calls

design card

code: arguments, returnType
modularity/reusability: function definitions and calls

design card

code: arguments, parameters, returnType
modularity/reusability: function definitions and calls

design card

code: review, synchronous program
modularity/reusability: review

design card

code: intro, object-oriented programming
reusability: basic object

design card

code: intro, object-oriented programming
reusability: class and object

design card

code: intro, object-oriented programming
reusability: class, object, returnType, properties, methods

design card

code: createElement, createInput, createButton
reusability: object properties and methods

design card

code: createSlider
reusability: object properties and methods