Hi All
i have written a basic twitter clone to learn golang as a first programming language i need some suggestions to improve the code. especially timeline.go where it looks like function hell.
any help would be greatly appreciated
thankw
Hi All
i have written a basic twitter clone to learn golang as a first programming language i need some suggestions to improve the code. especially timeline.go where it looks like function hell.
any help would be greatly appreciated
thankw
A quick look into timeline.go tells me that this function
So the purpose of the function is clear, and the code looks easy to maintain. Granted, it does call a whole lot of other functions in order to collect the data (I guess this is what you mean by “function hell”), but this increases only length, but not complexity.
(Edit: fix wording.)
thank you for the feedback Christoph
Any time