The advice which I would give them, once you are given a problem to solve, first solve it on a paper.
Design first and then start crunching the code, if you can develop this pattern, you will automatically stumble across many common patterns.
Also try to read some good books on code written by likes of Uncle Bob or Martin Fowler, these guys give you simple and clear advice as regards to your code.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The advice which I would give them, once you are given a problem to solve, first solve it on a paper.
Design first and then start crunching the code, if you can develop this pattern, you will automatically stumble across many common patterns.
Also try to read some good books on code written by likes of Uncle Bob or Martin Fowler, these guys give you simple and clear advice as regards to your code.