3 ms·
Code is drastically different from prose, as code has a lot of repetition. For example: some_long_variable_name = 42 new_value = description_function_name(
by kstrauser 5y ago
Code is drastically different from prose, as code has a lot of repetition. For example:
some_long_variable_name = 42
new_value = description_function_name(some_long_variable_name)
do_something_with(new_value)
All of the above has 5 unique tokens, several of them repeated. Unless you’re using lots of global variables, most of those tokens will be scoped entirely within that function, so you can also infer an awful lot of meaning just from the context.