Skip to content

Module 2 Eval: ReReddit#224

Open
meccacodes wants to merge 6 commits intoprojectshft:masterfrom
meccacodes:master
Open

Module 2 Eval: ReReddit#224
meccacodes wants to merge 6 commits intoprojectshft:masterfrom
meccacodes:master

Conversation

@meccacodes
Copy link

Cohort 14 - Part Time
Mecca Conway

</head>
<body>
<div class="container-fluid">
<h1>Forum</h1>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of h1 and h2, you can use display-1, display-2 from bootstrap.

</div>
</div>`;

let posts = [

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great, good practice to decouple logic

});
};

const handleComments = function () {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this function is too big and its handling too much, you can extract some responsibilities to other functions like toggling visibility, adding comments, deleting comments. This will be very hard to debug or maintain and scale. Whenever you see such a big function in your code, that should turn a red or yellow flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments