how do ppl rmb coding techniques?

Trader11

Banned
Joined
Oct 14, 2018
Messages
15,697
Reaction score
5,235
repeatedly doing the problems builds basic intuition. if you want higher intuition you must cast the net wide, read latest research papers, and try to apply your old intuition onto new, more complicated problems. Basic syntax of "clever", "concise" coding techniques require memory one; one wrong syntax and the compiler will f**k us up
Very cool
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,550
Reaction score
1,302
repeatedly doing the problems builds basic intuition. if you want higher intuition you must cast the net wide, read latest research papers, and try to apply your old intuition onto new, more complicated problems. Basic syntax of "clever", "concise" coding techniques require memory one; one wrong syntax and the compiler will f**k us up
You mean you remember and always practice codes like this ?

Code:
$ echo -e "COL1COL2    COL3      \nA\"AABB BB   CCCCCCCCCC" | perl -ne '@_=$_=~/(.{4})(.{8})(.{10})/; s/"/""/g,s/\s*$//,s/^\s*// foreach (@_); print "\"",join("\",\"",@_),"\"\n"'
"COL1","COL2","COL3"
"A""AA","BB BB","CCCCCCCCCC"

Nope I don't repeatedly write them. In fact, I wrote this out of fun recently to demonstrate some ideas to my juniors. I wrote this the first time using this programming language for this form of parsing. My experience tell me memorising wouldn't be sustainable. Reading research papers helps, reading any literature in any form helps. Memorising don't work, at least for me. :)
 

TheLordOfGifts65x

Junior Member
Joined
May 19, 2021
Messages
54
Reaction score
15
You mean you remember and always practice codes like this ?

Code:
$ echo -e "COL1COL2    COL3      \nA\"AABB BB   CCCCCCCCCC" | perl -ne '@_=$_=~/(.{4})(.{8})(.{10})/; s/"/""/g,s/\s*$//,s/^\s*// foreach (@_); print "\"",join("\",\"",@_),"\"\n"'
"COL1","COL2","COL3"
"A""AA","BB BB","CCCCCCCCCC"

Nope I don't repeatedly write them. In fact, I wrote this out of fun recently to demonstrate some ideas to my juniors. I wrote this the first time using this programming language for this form of parsing. My experience tell me memorising wouldn't be sustainable. Reading research papers helps, reading any literature in any form helps. Memorising don't work, at least for me. :)
You sound like my senior, he mentored me for a while in sch
 

TheLordOfGifts65x

Junior Member
Joined
May 19, 2021
Messages
54
Reaction score
15
You mean you remember and always practice codes like this ?

Code:
$ echo -e "COL1COL2    COL3      \nA\"AABB BB   CCCCCCCCCC" | perl -ne '@_=$_=~/(.{4})(.{8})(.{10})/; s/"/""/g,s/\s*$//,s/^\s*// foreach (@_); print "\"",join("\",\"",@_),"\"\n"'
"COL1","COL2","COL3"
"A""AA","BB BB","CCCCCCCCCC"

Nope I don't repeatedly write them. In fact, I wrote this out of fun recently to demonstrate some ideas to my juniors. I wrote this the first time using this programming language for this form of parsing. My experience tell me memorising wouldn't be sustainable. Reading research papers helps, reading any literature in any form helps. Memorising don't work, at least for me. :)
the fact that you can integrate several chunks of concepts to express parsing/regex/scripting shows that you did perform some form of memory imprint for each of these individual chunks, now that you can string them together to demo an idea.

In short, it is clear that you have mastery over what you do :)

to answer your question, I break them into chunks, combine piece by piece, while understanding the purpose they perform each time sth is integrated.
 

TheLordOfGifts65x

Junior Member
Joined
May 19, 2021
Messages
54
Reaction score
15
coding challenge website normally do not perform linting as a criteria to pass each challenge, how to even make sure the candidate do not write spaghetti code?
correct me if i'm wrong, cuz i'm still not as experienced as some of you here, spaghetti code is usually due to lack of intuition and experience for the particular class of problems related to one specific DS or Algo concept ( I use concept here cuz most infra/distro jobs utilize lots of DSA concepts)

This is a common problem experienced by those new to the game, as intuition is needed to identify and dissect the problem.

Prolly need the guy to build his intuition from scratch, either by spamming practice or some special sandbox for him to practice the concept related to his job.

In short, a lot of patience needed, like how when u first play MMORPG you wld spend some time in the training game to figure out what each button does, how to launch combo smoothly, etc etc
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,550
Reaction score
1,302
the fact that you can integrate several chunks of concepts to express parsing/regex/scripting shows that you did perform some form of memory imprint for each of these individual chunks, now that you can string them together to demo an idea.

In short, it is clear that you have mastery over what you do :)

to answer your question, I break them into chunks, combine piece by piece, while understanding the purpose they perform each time sth is integrated.
You can choose your way of memorising. I'm just sharing with you my way which don't rely on memory as the main mode of thoughts. We all have memory, that's necessary, but creativity and divergence is not memory, it's a dynamic form of forming memory on the go using familiarity and understanding of the topic. All these do have to store somewhere, but is it because mainly due to memory that allows me to write the same thing using multiple different languages, and customise them in favour of the language features.

You can choose your style, it's your life :)
 
Last edited:

TheLordOfGifts65x

Junior Member
Joined
May 19, 2021
Messages
54
Reaction score
15
You can choose your way of memorising. I'm just sharing with you my way which don't rely on memory as the main mode of thoughts. We all have memory, that's necessary, but creativity and divergence is not memory, it's a dynamic form of forming memory on the go using familiarity and understanding of the topic. All these do have to store somewhere, but is it because mainly due to memory that allows me to write the same thing using multiple different languages, and customise them in favour of the language features.

You can choose your style, it's your life :)
yes, it is not just because of memory that you have the polyglot ability. You put it quite succinctly, it is familiarity and understanding of the concept that gives us a broad network of nodes in our brain which we can choose to fire up and link up in creative and divergent ways, which is quite often necessary when developing solutions to a hard problem
 

jgyy1990

Arch-Supremacy Member
Joined
Apr 28, 2012
Messages
12,422
Reaction score
88
correct me if i'm wrong, cuz i'm still not as experienced as some of you here, spaghetti code is usually due to lack of intuition and experience for the particular class of problems related to one specific DS or Algo concept ( I use concept here cuz most infra/distro jobs utilize lots of DSA concepts)

This is a common problem experienced by those new to the game, as intuition is needed to identify and dissect the problem.

Prolly need the guy to build his intuition from scratch, either by spamming practice or some special sandbox for him to practice the concept related to his job.

In short, a lot of patience needed, like how when u first play MMORPG you wld spend some time in the training game to figure out what each button does, how to launch combo smoothly, etc etc
I dunno about others, but I do encounter a person who can write functional code, but his code is all spaghetti cause he wishes to stand out and learn "new" ways to solve a problem. It is very annoying and simply repels teamwork.
 

jgyy1990

Arch-Supremacy Member
Joined
Apr 28, 2012
Messages
12,422
Reaction score
88
yes, it is not just because of memory that you have the polyglot ability. You put it quite succinctly, it is familiarity and understanding of the concept that gives us a broad network of nodes in our brain which we can choose to fire up and link up in creative and divergent ways, which is quite often necessary when developing solutions to a hard problem
I think I do things opposite from the others, I am unable to absorb fundamentals quickly by reading on theory, hence having to rely on memory work by practicing over and over again. I give 1 example, you can go watch YouTube all you like on how TLS certificate is being managed and certified by the certificate authority, but if tasked you to do it manually with openssl command, can you do it without some muscle memory? Can you troubleshoot the issue by yourself if there is certificate issue like wrong certificate key used and etc?
 

Trader11

Banned
Joined
Oct 14, 2018
Messages
15,697
Reaction score
5,235
I think I do things opposite from the others, I am unable to absorb fundamentals quickly by reading on theory, hence having to rely on memory work by practicing over and over again. I give 1 example, you can go watch YouTube all you like on how TLS certificate is being managed and certified by the certificate authority, but if tasked you to do it manually with openssl command, can you do it without some muscle memory? Can you troubleshoot the issue by yourself if there is certificate issue like wrong certificate key used and etc?
I believe davidktw also said you need real life practice
 

Trader11

Banned
Joined
Oct 14, 2018
Messages
15,697
Reaction score
5,235
I dunno about others, but I do encounter a person who can write functional code, but his code is all spaghetti cause he wishes to stand out and learn "new" ways to solve a problem. It is very annoying and simply repels teamwork.
Where is the tech lead? They are suppose to enforce standards...unless they are ****
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,550
Reaction score
1,302
I believe davidktw also said you need real life practice
On which account are you quoting this on me? Can you stop representing me when you are replying to someone else? Thanks

If you are interested to make a point, make a point on ur own opinions. okay?
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,550
Reaction score
1,302
I think I do things opposite from the others, I am unable to absorb fundamentals quickly by reading on theory, hence having to rely on memory work by practicing over and over again. I give 1 example, you can go watch YouTube all you like on how TLS certificate is being managed and certified by the certificate authority, but if tasked you to do it manually with openssl command, can you do it without some muscle memory? Can you troubleshoot the issue by yourself if there is certificate issue like wrong certificate key used and etc?
The answer to not using memory as the main domain is not that you don’t need to use memory. It takes memory just to type anything. I think you have grossly misunderstood the meaning of not memorising vs using fundamental understanding of the work to infer.

Like I have mentioned. Memory is necessarily in all works, but the fundamentals here is not about remembering which commands and options to use to validate the certs and keys and the certs requests in them. If you really understand how to validate them, you would have understood the thing you are validating are the “public key” which is the denominator in all of them. That way you can google all you like and still find or remember what you are actually testing, and not because you need to strictly follow the actual options used in the openssl tool. You could have also validated these items without using openssl and using other tools which can do the same thing. It is also means between giving you a binary file and an ascii armored file, you will know how to use different openssl options to open and read the file properly.

If you are tracing the certs for validity to all the way up to the root certs, you will also need to _understand_ the concept of how the signing works and hence you know what are necessarily in the validation, such as knowing the existence of intermediary certificates and so forth.

That is what I mean by using understanding of something vs memorising something.
 

jgyy1990

Arch-Supremacy Member
Joined
Apr 28, 2012
Messages
12,422
Reaction score
88
Where is the tech lead? They are suppose to enforce standards...unless they are ****
standards they got enforce but still got teamwork issues. anyway try not focus too much on ****, really not helping in the workplace.
 

jgyy1990

Arch-Supremacy Member
Joined
Apr 28, 2012
Messages
12,422
Reaction score
88
The answer to not using memory as the main domain is not that you don’t need to use memory. It takes memory just to type anything. I think you have grossly misunderstood the meaning of not memorising vs using fundamental understanding of the work to infer.

Like I have mentioned. Memory is necessarily in all works, but the fundamentals here is not about remembering which commands and options to use to validate the certs and keys and the certs requests in them. If you really understand how to validate them, you would have understood the thing you are validating are the “public key” which is the denominator in all of them. That way you can google all you like and still find or remember what you are actually testing, and not because you need to strictly follow the actual options used in the openssl tool. You could have also validated these items without using openssl and using other tools which can do the same thing. It is also means between giving you a binary file and an ascii armored file, you will know how to use different openssl options to open and read the file properly.

If you are tracing the certs for validity to all the way up to the root certs, you will also need to _understand_ the concept of how the signing works and hence you know what are necessarily in the validation, such as knowing the existence of intermediary certificates and so forth.

That is what I mean by using understanding of something vs memorising something.
Thanks for explaining to me in great details for multiple posts. Generally speaking, the fundamental understanding of a domain is important in order to work or resolve any issues on certificates.

Memory comes in later for troubleshooting steps.
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,550
Reaction score
1,302
Thanks for explaining to me in great details for multiple posts. Generally speaking, the fundamental understanding of a domain is important in order to work or resolve any issues on certificates.

Memory comes in later for troubleshooting steps.
Remember I'm not in this public forum to _win_ you. I share what I feel is helping me to grasp concepts around the world readily and possibility also into the future, not knowing what is ahead and not knowing if someone has done it before me. If it helps you, good. If it doesn't, then you probably just need to find your own way. Either way I don't get recognition nor pay rise :)
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,550
Reaction score
1,302
Where is the tech lead? They are suppose to enforce standards...unless they are ****
You can be the tech lead, if you choose to act with leadership qualities. No doubt tech leads are to play this role, but trust me, there will be some that are in that position not because they necessarily possess the qualities to do so. Hence if you feel the need to raise topics as awareness to the rest of the team, do it.
Refrain from mentioning where the people come from, just tackle to the individual you have met. There are always outliers. :)
 
Last edited:

Azzizz81

Suspended
Joined
May 4, 2001
Messages
49,375
Reaction score
2,288
I think I do things opposite from the others, I am unable to absorb fundamentals quickly by reading on theory, hence having to rely on memory work by practicing over and over again. I give 1 example, you can go watch YouTube all you like on how TLS certificate is being managed and certified by the certificate authority, but if tasked you to do it manually with openssl command, can you do it without some muscle memory? Can you troubleshoot the issue by yourself if there is certificate issue like wrong certificate key used and etc?
There is no need to. Learn the basic concepts and google what you need.
Like a computer, our memory is limited.
Like a computer also, we can get data from the Internet.
Not everything needs to be stored locally.
 

Trader11

Banned
Joined
Oct 14, 2018
Messages
15,697
Reaction score
5,235
There is no need to. Learn the basic concepts and google what you need.
Like a computer, our memory is limited.
Like a computer also, we can get data from the Internet.
Not everything needs to be stored locally.
This sound like Sherlock holmes modelling of the memory
 
Important Forum Advisory Note
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ Forums. Forum members and moderators are responsible for their own posts. Please refer to our Community Guidelines and Standards and Terms and Conditions for more information.
Top