Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added all blog posts to blogs.js #500

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dcho-jaewook
Copy link

Overview

Changes

  • Added all the remaining blog posts to blogs.js
  • Adjusted the headings of all posts to a correct format

Notes

  • The author was set to be "ACM Hack" for those posts without specification on authors

Copy link
Contributor

@nathanzzhang nathanzzhang left a comment

Choose a reason for hiding this comment

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

went through some files! only changes requested were for spacing issues! when going through all files once more, ensure that spacing issues are addressed at every code block (I didn't read through all files). re-request review when done!

excellent job on the pr, though :DD

time.style.color = color;
hex.style.color = color;
}
let date = new Date();
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: will this extra spacing show up on the blog? is it still readable? if so, then feel free to ignore this comment. Otherwise, you might need to revert these tabs back to spaces.

sum(...args); // equivalent to sum(1, 2)
product(...args, 3); // equivalent to product(1, 2, 3)
product(0, ...args); // equivalent to product(0, 1, 2)
sum(...args); // equivalent to sum(1, 2)
Copy link
Contributor

Choose a reason for hiding this comment

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

revert back to original spacing for readability

const { count } = this.state;
return (
<div>
<h1>count: {count}</h1>
Copy link
Contributor

Choose a reason for hiding this comment

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

same nit here: if this extra spacing leads to less readability, revert back to original spacing. Otherwise, feel free to ignore!

{/* We instead use an arrow function here */}
<button
onClick={() => {
this.incrementCounter();
Copy link
Contributor

Choose a reason for hiding this comment

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

i fear this one might need to be reverted back to original formatting for readability

return (
<div>
<h3>{this.state.count}</h3>
<button onClick={this.onIncrement}>Increment</button>
Copy link
Contributor

Choose a reason for hiding this comment

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

same spacing nit as above

return (
<div>
<h2>Hour: {time.hour}</h2>
<h2>Minute: {time.minute}</h2>
Copy link
Contributor

Choose a reason for hiding this comment

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

spacing + formatting

setSuggestions(results);
});
}, 500); // by 500ms
}, [search]);
Copy link
Contributor

Choose a reason for hiding this comment

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

revert back to original spacing here for readability

if (search === '') {
setSuggestions([]);
return;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

revert back to original spacing/formatting for this

getSearchSuggestions(search).then(results => {
setSuggestions(results);
});
}, 500);
Copy link
Contributor

Choose a reason for hiding this comment

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

revert to original spacing/formatting for this

<div>
<input onChange={updateSearch} value={search} />
<ul>
{suggestions.map(s => (
Copy link
Contributor

Choose a reason for hiding this comment

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

spacing/formatting

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.

Add remaining blog posts
2 participants