The discussion revolves around the limited code comments in the Discourse codebase on Github. 1c7 is attempting to customize Discourse and finds the lack of comments challenging. zogstrip explains that comments often become outdated and useless over time. 1c7 suggests that a moderate number of comments would be helpful.
1c7 also requests that the Discourse core team write about the big picture view of the codebase, including topics such as the folder structure, differences between GlobalSetting and SiteSetting, and the core model of Discourse.
vinothkannans and pfaffman advise 1c7 to use plugins for customization, as they offer more flexibility and allow for future upgrades. 1c7 thanks them for the suggestion and 1c7 agrees to look into themes and plugins.
I hope you guys(Discourse core team) can write few post about the big picture view on Discourse codebase..
(not like “why chose Ember.js” I already read that one. deeper than that)
like:
Why this folder structure(Ruby on Rails & Ember.js put together)
I guess if you guys make Discourse from scratch in 2018,
would decide separated Rails&Ember into 2 repo?
or different folder structure
What’s the different between GlobalSetting & SiteSetting?
What’s the core model of Discourse? (Users&Post&Topic)?
why preload_script is needed? example <%= preload_script 'break_string' %>
preload_script return
# ... some other code
<link rel='preload' href='#{path}' as='script'/>
<script src='#{path}'></script>".html_safe
so it’s for SEO or some other reason?
and few other question I couldn’t recall right now
Unless you have a team of full time programmers or want never to take advantage of future upgrades to discourse, you want a plugin. Those who have forked are all sorry.
Almost anything can be accomplished with a plugin.