I guess what I want to ask is - is it common for developers to be able to write code to that level of eloquence with some experience (and if so, typically after how long?) or is the code displayed in the book something only writeable by coding prodigies/ super talented CS grads?
a program to take a string and identify what percentage of whatever Unicode scripts are present in it out of the total. the program also accounts for Unicode characters which take up more than one code unit
each unicode script is modelled as such and placed in an array called SCRIPTS:
As of the time taken to get to this level… I guess it’s like everything else in this world. You just practice and you’ll find out yourself
I noticed myself getting stuck on exercises and what I’d do is repeat over and over until I get it. I would read other’s codes, comments, check other sites’ definitions to get a better perspective until I truly get it. I realize the examples can be hard but there’s a reason why this book is considered to be one of the best.
I’m also stuck on the Dominant Writing Direction problem in Ch.5. It’s not just the complexity of the code, but also understanding what the question is asking and understanding unicode. I think it’s doable step by step, but it’s just hard managing all the information in one run as the brain isn’t used to keeping track of all these different variables and nested data, etc. So I’m kind of stuck on what the question is actually asking as I even see one parameter example with two languages in it…??