Merge pull request '(FIXES): This is pre-link tags.' (#37) from feature/fixes into main
Reviewed-on: #37
This commit is contained in:
commit
234bc42e2b
2
Makefile
2
Makefile
@ -40,7 +40,7 @@ $(BUILD_DIR)/%.o: $(LIB_DIR)/%.cpp
|
|||||||
$(CXX) $(CXXFLAGS) $(INCLUDES) -c $< -o $@ -pie
|
$(CXX) $(CXXFLAGS) $(INCLUDES) -c $< -o $@ -pie
|
||||||
|
|
||||||
test: all
|
test: all
|
||||||
./$(TARGET)
|
./$(TARGET) test/journal.md -o output.html
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(BUILD_DIR) $(TARGET)
|
rm -rf $(BUILD_DIR) $(TARGET)
|
||||||
|
|||||||
@ -24,4 +24,7 @@ string BoldItalicNode::ToHtml() const {
|
|||||||
|
|
||||||
string CodeNode::ToHtml() const { return "<code>" + this->content + "</code>"; }
|
string CodeNode::ToHtml() const { return "<code>" + this->content + "</code>"; }
|
||||||
|
|
||||||
string RawTextNode::ToHtml() const { return this->content; };
|
string LinkNode::ToHtml() const {
|
||||||
|
return "<a href=\"" + this->link + "\" target=\"_blank\">" + this->content +
|
||||||
|
"</a>";
|
||||||
|
}
|
||||||
|
|||||||
@ -118,15 +118,20 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @desc A raw text node.
|
* @desc An anchor/link container node.
|
||||||
*
|
*
|
||||||
* This node returns only it content, with no formatting at all.
|
* This node is used to create an inline anchor tag. This node returns the
|
||||||
|
* following <a href="{link}" target="_blank">{content}</a>.
|
||||||
*
|
*
|
||||||
* @author Hayden Hargreaves (hhargreaves2006@gmail.com)
|
* @author Hayden Hargreaves (hhargreaves2006@gmail.com)
|
||||||
*/
|
*/
|
||||||
class RawTextNode : public InlineNode {
|
class LinkNode : public InlineNode {
|
||||||
|
protected:
|
||||||
|
std::string link;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
RawTextNode(std::string content) : InlineNode(content) {};
|
LinkNode(std::string link, std::string content)
|
||||||
|
: InlineNode(content), link(link) {};
|
||||||
std::string ToHtml() const;
|
std::string ToHtml() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
139
lib/parser.cpp
139
lib/parser.cpp
@ -138,7 +138,7 @@ std::unique_ptr<Node> Parser::ParseHeading() {
|
|||||||
ConsumeWhiteSpace();
|
ConsumeWhiteSpace();
|
||||||
|
|
||||||
// This should call parse inline
|
// This should call parse inline
|
||||||
auto text_nodes = ParseInline();
|
auto text_nodes = ParseInlineHeading();
|
||||||
for (auto &text_node : text_nodes) {
|
for (auto &text_node : text_nodes) {
|
||||||
node->AddChild(std::move(text_node));
|
node->AddChild(std::move(text_node));
|
||||||
}
|
}
|
||||||
@ -158,12 +158,28 @@ std::unique_ptr<Node> Parser::ParseList(bool ordered) {
|
|||||||
Consume(ordered ? 2 : 1);
|
Consume(ordered ? 2 : 1);
|
||||||
ConsumeWhiteSpace();
|
ConsumeWhiteSpace();
|
||||||
|
|
||||||
|
// std::unique_ptr<Node> Parser::ParseParagraph() {
|
||||||
|
// auto node = std::make_unique<ParagraphNode>();
|
||||||
|
//
|
||||||
|
// // This should call parse inline
|
||||||
|
// auto text_nodes = ParseInline();
|
||||||
|
// for (auto &text_node : text_nodes) {
|
||||||
|
// node->AddChild(std::move(text_node));
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// if (node->IsEmpty())
|
||||||
|
// return nullptr;
|
||||||
|
//
|
||||||
|
// return node;
|
||||||
|
// }
|
||||||
|
|
||||||
// Parse until either '\n\n' (exit) or the next list element is found ('* '
|
// Parse until either '\n\n' (exit) or the next list element is found ('* '
|
||||||
// or '1.') If '\n\n', then create a node and exit
|
// or '1.') If '\n\n', then create a node and exit
|
||||||
auto children = ParseInlineListContent();
|
auto element = ParseInlineListContent();
|
||||||
for (auto &child : children) {
|
node->AddChild(std::move(element));
|
||||||
node->AddChild(std::move(child));
|
// for (auto &child : children) {
|
||||||
}
|
// node->AddChild(std::move(child));
|
||||||
|
// }
|
||||||
|
|
||||||
char c = Peek();
|
char c = Peek();
|
||||||
char c_next = Peek(1);
|
char c_next = Peek(1);
|
||||||
@ -212,7 +228,7 @@ std::unique_ptr<Node> Parser::ParseCodeBlock() {
|
|||||||
Consume();
|
Consume();
|
||||||
}
|
}
|
||||||
|
|
||||||
auto text_node = std::make_unique<RawTextNode>(str);
|
auto text_node = std::make_unique<TextNode>(str);
|
||||||
node->AddChild(std::move(text_node));
|
node->AddChild(std::move(text_node));
|
||||||
|
|
||||||
return node;
|
return node;
|
||||||
@ -229,6 +245,14 @@ vector<std::unique_ptr<Node>> Parser::ParseInline() {
|
|||||||
if (c == '\n' && Peek(1) == '\n')
|
if (c == '\n' && Peek(1) == '\n')
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
if (c == '[') {
|
||||||
|
PushTextNode(nodes, str);
|
||||||
|
auto node = ParseLink();
|
||||||
|
if (!node->IsEmpty())
|
||||||
|
nodes.push_back(std::move(node));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (c == '*' && Peek(1) == '*' && Peek(2) == '*') {
|
if (c == '*' && Peek(1) == '*' && Peek(2) == '*') {
|
||||||
PushTextNode(nodes, str);
|
PushTextNode(nodes, str);
|
||||||
auto node = ParseBoldItalic();
|
auto node = ParseBoldItalic();
|
||||||
@ -277,6 +301,14 @@ vector<std::unique_ptr<Node>> Parser::ParseInlineHeading() {
|
|||||||
if (c == '\n')
|
if (c == '\n')
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
if (c == '[') {
|
||||||
|
PushTextNode(nodes, str);
|
||||||
|
auto node = ParseLink();
|
||||||
|
if (!node->IsEmpty())
|
||||||
|
nodes.push_back(std::move(node));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (c == '*' && Peek(1) == '*' && Peek(2) == '*') {
|
if (c == '*' && Peek(1) == '*' && Peek(2) == '*') {
|
||||||
PushTextNode(nodes, str);
|
PushTextNode(nodes, str);
|
||||||
auto node = ParseBoldItalic();
|
auto node = ParseBoldItalic();
|
||||||
@ -315,50 +347,70 @@ vector<std::unique_ptr<Node>> Parser::ParseInlineHeading() {
|
|||||||
return nodes;
|
return nodes;
|
||||||
}
|
}
|
||||||
|
|
||||||
vector<std::unique_ptr<Node>> Parser::ParseInlineListContent() {
|
std::unique_ptr<Node> Parser::ParseInlineListContent() {
|
||||||
vector<std::unique_ptr<Node>> nodes;
|
vector<std::unique_ptr<Node>> children;
|
||||||
string str;
|
string str;
|
||||||
|
|
||||||
while (!IsEOF()) {
|
while (!IsEOF()) {
|
||||||
char c = Peek();
|
char c = Peek();
|
||||||
char c_next = Peek(1);
|
// char c_next = Peek(1);
|
||||||
// If this char and next char are both newlines: then we have an empty line,
|
// If this char and next char are both newlines: then we have an empty line,
|
||||||
// we should stop.
|
// we should stop.
|
||||||
if (c == '\n' && Peek(1) == '\n')
|
if (c == '\n' && Peek(1) == '\n')
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// Check if a list block has been found
|
// A single newline: We should consume whitespace and check if the next
|
||||||
if ((c == '*' || c == '-' || c == '+') && (c_next == ' ' || c_next == '\t'))
|
// character is a list item and the following item is a space
|
||||||
break;
|
if (c == '\n') {
|
||||||
|
PushTextNode(children, str);
|
||||||
|
ConsumeWhiteSpace();
|
||||||
|
char new_c = Peek();
|
||||||
|
char new_c_next = Peek(1);
|
||||||
|
|
||||||
if (std::isdigit(c) && c_next == '.')
|
if ((new_c == '*' || new_c == '-' || new_c == '+') &&
|
||||||
break;
|
(new_c_next == ' ' || new_c_next == '\t'))
|
||||||
|
break;
|
||||||
|
|
||||||
|
if (std::isdigit(new_c) && new_c_next == '.')
|
||||||
|
break;
|
||||||
|
|
||||||
|
str += ' ';
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (c == '[') {
|
||||||
|
PushTextNode(children, str);
|
||||||
|
auto node = ParseLink();
|
||||||
|
if (!node->IsEmpty())
|
||||||
|
children.push_back(std::move(node));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (c == '*' && Peek(1) == '*' && Peek(2) == '*') {
|
if (c == '*' && Peek(1) == '*' && Peek(2) == '*') {
|
||||||
PushTextNode(nodes, str);
|
PushTextNode(children, str);
|
||||||
auto node = ParseBoldItalic();
|
auto node = ParseBoldItalic();
|
||||||
if (!node->IsEmpty())
|
if (!node->IsEmpty())
|
||||||
nodes.push_back(std::move(node));
|
children.push_back(std::move(node));
|
||||||
continue;
|
continue;
|
||||||
} else if (c == '*' && Peek(1) == '*') {
|
} else if (c == '*' && Peek(1) == '*') {
|
||||||
PushTextNode(nodes, str);
|
PushTextNode(children, str);
|
||||||
auto node = ParseBold();
|
auto node = ParseBold();
|
||||||
if (!node->IsEmpty())
|
if (!node->IsEmpty())
|
||||||
nodes.push_back(std::move(node));
|
children.push_back(std::move(node));
|
||||||
continue;
|
continue;
|
||||||
} else if (c == '*') {
|
} else if (c == '*') {
|
||||||
PushTextNode(nodes, str);
|
PushTextNode(children, str);
|
||||||
auto node = ParseItalic();
|
auto node = ParseItalic();
|
||||||
if (!node->IsEmpty())
|
if (!node->IsEmpty())
|
||||||
nodes.push_back(std::move(node));
|
children.push_back(std::move(node));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c == '`') {
|
if (c == '`') {
|
||||||
PushTextNode(nodes, str);
|
PushTextNode(children, str);
|
||||||
auto node = ParseCode();
|
auto node = ParseCode();
|
||||||
if (!node->IsEmpty())
|
if (!node->IsEmpty())
|
||||||
nodes.push_back(std::move(node));
|
children.push_back(std::move(node));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -368,8 +420,15 @@ vector<std::unique_ptr<Node>> Parser::ParseInlineListContent() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Push the last node, if the string is not empty
|
// Push the last node, if the string is not empty
|
||||||
PushTextNode(nodes, str);
|
PushTextNode(children, str);
|
||||||
return nodes;
|
|
||||||
|
// Create the list node with the children appended
|
||||||
|
auto element = std::make_unique<ListElementNode>();
|
||||||
|
for (auto &child : children) {
|
||||||
|
element->AddChild(std::move(child));
|
||||||
|
}
|
||||||
|
|
||||||
|
return element;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_ptr<Node> Parser::ParseItalic() {
|
std::unique_ptr<Node> Parser::ParseItalic() {
|
||||||
@ -460,6 +519,38 @@ std::unique_ptr<Node> Parser::ParseCode() {
|
|||||||
return std::make_unique<CodeNode>(str);
|
return std::make_unique<CodeNode>(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::unique_ptr<Node> Parser::ParseLink() {
|
||||||
|
// Consume '['
|
||||||
|
Consume();
|
||||||
|
|
||||||
|
string content;
|
||||||
|
while (!IsEOF()) {
|
||||||
|
char c = Peek();
|
||||||
|
if (c == ']')
|
||||||
|
break;
|
||||||
|
|
||||||
|
content += c;
|
||||||
|
Consume();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Consume ']('
|
||||||
|
Consume(2);
|
||||||
|
|
||||||
|
string link;
|
||||||
|
while (!IsEOF()) {
|
||||||
|
char c = Peek();
|
||||||
|
if (c == ')') {
|
||||||
|
Consume();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
link += c;
|
||||||
|
Consume();
|
||||||
|
}
|
||||||
|
|
||||||
|
return std::make_unique<LinkNode>(link, content);
|
||||||
|
}
|
||||||
|
|
||||||
void Parser::PushTextNode(vector<std::unique_ptr<Node>> &nodes, string &str) {
|
void Parser::PushTextNode(vector<std::unique_ptr<Node>> &nodes, string &str) {
|
||||||
if (!str.empty())
|
if (!str.empty())
|
||||||
nodes.push_back(std::move(std::make_unique<TextNode>(str)));
|
nodes.push_back(std::move(std::make_unique<TextNode>(str)));
|
||||||
|
|||||||
@ -127,7 +127,7 @@ private:
|
|||||||
|
|
||||||
// The only differences are the exit condition
|
// The only differences are the exit condition
|
||||||
vector<std::unique_ptr<Node>> ParseInlineHeading();
|
vector<std::unique_ptr<Node>> ParseInlineHeading();
|
||||||
vector<std::unique_ptr<Node>> ParseInlineListContent();
|
std::unique_ptr<Node> ParseInlineListContent();
|
||||||
|
|
||||||
void PushTextNode(vector<std::unique_ptr<Node>> &nodes, string &str);
|
void PushTextNode(vector<std::unique_ptr<Node>> &nodes, string &str);
|
||||||
|
|
||||||
@ -135,6 +135,7 @@ private:
|
|||||||
std::unique_ptr<Node> ParseBold();
|
std::unique_ptr<Node> ParseBold();
|
||||||
std::unique_ptr<Node> ParseBoldItalic();
|
std::unique_ptr<Node> ParseBoldItalic();
|
||||||
std::unique_ptr<Node> ParseCode();
|
std::unique_ptr<Node> ParseCode();
|
||||||
|
std::unique_ptr<Node> ParseLink();
|
||||||
|
|
||||||
char Peek(size_t offset = 0);
|
char Peek(size_t offset = 0);
|
||||||
void Consume(size_t count = 1);
|
void Consume(size_t count = 1);
|
||||||
|
|||||||
@ -61,13 +61,26 @@ string ListNode::ToHtml() const {
|
|||||||
ss << (this->ordered ? "<ol>" : "<ul>") << "\n";
|
ss << (this->ordered ? "<ol>" : "<ul>") << "\n";
|
||||||
|
|
||||||
for (const auto &child : this->GetChilren()) {
|
for (const auto &child : this->GetChilren()) {
|
||||||
ss << "<li>" << *child << "</li>" << "\n";
|
ss << *child;
|
||||||
}
|
}
|
||||||
|
|
||||||
ss << (this->ordered ? "</ol>" : "</ul>") << "\n";
|
ss << (this->ordered ? "</ol>" : "</ul>") << "\n";
|
||||||
return ss.str();
|
return ss.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
string ListElementNode::ToHtml() const {
|
||||||
|
std::stringstream ss;
|
||||||
|
ss << "<li>";
|
||||||
|
|
||||||
|
for (const auto &child : this->GetChilren()) {
|
||||||
|
ss << *child;
|
||||||
|
}
|
||||||
|
|
||||||
|
ss << "</li>" << "\n";
|
||||||
|
|
||||||
|
return ss.str();
|
||||||
|
}
|
||||||
|
|
||||||
string CodeBlockNode::ToHtml() const {
|
string CodeBlockNode::ToHtml() const {
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
|
|
||||||
|
|||||||
@ -111,6 +111,11 @@ public:
|
|||||||
std::string ToHtml() const;
|
std::string ToHtml() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class ListElementNode : public StructureNode {
|
||||||
|
public:
|
||||||
|
std::string ToHtml() const;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @desc A code block container node.
|
* @desc A code block container node.
|
||||||
*
|
*
|
||||||
|
|||||||
@ -1,55 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Document</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>MarkdownToHtmlTranspiler</h1>
|
|
||||||
<h3>Project Overview </h3>
|
|
||||||
<p>The goal is to create a program that reads a file containing text formatted in a simple version of Markdown and converts it into a valid HTML file. The program will need to identify and translate specific syntax (e.g., <code># Heading</code> to <code><h1>Heading</h1></code>, <code>*text*</code> to <code><em>text</em></code>).</p>
|
|
||||||
<h3>Implementation Requirements (Generated by Gemini)</h3>
|
|
||||||
<p>Class Hierarchy: Design a class hierarchy to represent the components of your Markdown document. An abstract base class, Element, can define common behavior. Derived classes would then represent specific types of elements, such as Heading, Paragraph, BoldText, and ListItem. This is a perfect example of inheritance and polymorphism.</p>
|
|
||||||
<p>Object Composition: A Document class can be composed of multiple Element objects, representing the entire file. A Parser class would be composed of helper methods to break down the input string and build the Document object. This shows how you can build a complex system from smaller, self-contained objects.</p>
|
|
||||||
<p>File I/O and Exceptions: You will need to use ifstream to read the Markdown file and ofstream to write the generated HTML file. Your code should use exceptions to gracefully handle potential errors, such as a file not being found.</p>
|
|
||||||
<p>Operator Overloading: Overload the << stream insertion operator for your Element and Document classes. This would allow you to easily print the generated HTML to the console or write it to a file, making your code cleaner and more readable.</p>
|
|
||||||
<p>UML Diagram: The complexity of the class relationships makes a UML diagram an essential part of the project. It will help you plan your design and will be a key component of your submission.</p>
|
|
||||||
<p>Recursive Descent Parser: This is the primary algorithm you'll use. It's a top-down parsing technique where a set of recursive functions "descend" through the grammar of your simple Markdown language. For example, a parse_document() function would call parse_line(), which in turn might call parse_bold_text() or parse_italic_text(). This method is intuitive and easy to implement for a simple grammar.</p>
|
|
||||||
<p>Stack: A stack is essential for handling nested elements. For instance, if you allow bold text inside italic text (_This is <em>bold and italic</em> text_), you can push the _ token onto the stack and then push the <em> token. When you encounter the closing </em>, you check if the top of the stack matches. This ensures that all tags are correctly opened and closed. Your presentation can visually demonstrate this process with a stack diagram.</p>
|
|
||||||
<p>Hash Map or Map: A hash map (std::unordered_map) or a map (std::map) can be used to efficiently store and retrieve the HTML equivalent for each Markdown tag. For example, you could map <code>#</code> to <code><h1></code>or <code>*</code> to <code><em></code>. This provides O(1) average-case lookup time.</p>
|
|
||||||
<h3>Contribution Policy</h3>
|
|
||||||
<h6>Branching When working on this project, please use a feature branch (i.e. <code>feature/parser</code>) with a descriptive name. <code>feature/a</code> is not a descriptive name. These branches should be branched off the most recent <code>main</code> branch, we will not make use of a <code>dev</code> or <code>staging</code> branch since the project is small in scale as well as time. <strong>However, if the project becomes larger or out-of-control, a dev/staging branch will be implemented.</strong></h6>
|
|
||||||
<h6>Commits</h6>
|
|
||||||
<p>When working, it is best practice to commit code as much as possible, without being over zealous. For example, when a feature or bug is complete, its time to commit. But when you have to make a new function, that does not mean its time. Each team member should use their best judgment.</p>
|
|
||||||
<p>Commit messages a little bit more important, when working in a team, it is important to provide strong, clear and concise commit messages. In this project, the team will use a simple formula:</p>
|
|
||||||
<p><strong>(SUBJECT) Title: textual description</strong> </p>
|
|
||||||
<p>i.e. (FIX) Rendering completed: explain what changed in short.</p>
|
|
||||||
<h6>Pushing</h6>
|
|
||||||
<p>When working in a feature branch, pushing and pulling has no restrictions. Feel free to do as much (or as little) as possible. However, you <strong>CANNOT</strong> push directly to <code>main</code>, the VCS will not allow you to do so, but do not make that mistake. When you are ready to merge a feature, you will create a PR and once it has been reviewed and approved it will be automatically merged in.</p>
|
|
||||||
<h6>Pull Requests (PR)</h6>
|
|
||||||
<p>Once a feature is complete, you will create a pull request. Before a request can be merged into <code>main</code>, one approval is required (which cannot be the author). This practice is to promote team work and encourage code reviews. Each team member is expected to check in frequently and review as often as they are able to, however, there is no defined time requirement. Personal communication is totally acceptable as a means to request approval, since I am unsure if this platform will notify members.</p>
|
|
||||||
<h6>Issues</h6>
|
|
||||||
<p>If a bug, issue, or otherwise concern is noticed the first thing the team member should do is create an issue. An issue should be descriptive and contain everything another team member needs to understand the issue and its context. This way, a new team member can tackle the issue without contextual gaps.</p>
|
|
||||||
<p>If a member would like to work on the issue themself, the <code>assignee</code> field is where this should be defined. If a member would like help from another member, they should assign the other team member to the issue, and leave a comment in the issue itself describing what help is needed. </p>
|
|
||||||
<p><strong>Labels</strong> are important for understanding what type of issues/bugs exist in the application. When a bug is created, make sure the proper labels are applied. These labels will be abstract, such as: <code>bug</code>, <code>fix</code> or <code>feature</code> and they will also be specific, such as: <code>parser</code>, <code>i/o</code> or <code>processer</code>. A combination of both styles of labels allows other team members to understand what is going on. If a member feels an issue is missing, they are free to create new ones, but there is a such thing as <strong>too many labels</strong> a few per issue is totally fine. They are not meant to replace the description.</p>
|
|
||||||
<p><strong>Priority</strong> is the final important factor to consider. In this project, priority will be defined using labels as well. The policy defined above will apply here to priority labels as well. However, these labels are <strong>mutually exclusive</strong>.</p>
|
|
||||||
<h6>Projects (Sprints)</h6>
|
|
||||||
<p>The use of the <code>projects</code> tab in the VCS will allow the team to remain organized as create notes and action items that should be completed before one another. These resemble <code>sprints</code> from the <code>AGILE</code> development life cycle. A new "project" should be created when a large piece of functionality needs to be created. Issues can <strong>and should</strong> be attached to the projects they are related too. This will continue to encourage teamwork and organization.</p>
|
|
||||||
<p>Projects should have defined criteria, such as input and outputs, expectations and a semi-defined timeline. Once a description and is defined, tasks can be added and moved around as needed. The team will use <strong>Kanban</strong> project types, as they are simple and easy to understand for new team members. Reference [here](https://www.markdownguide.org/basic-syntax/)</p>
|
|
||||||
<p>Headings, h# tags</p>
|
|
||||||
<h1>Header Level 1 -> <h1> Content </h1> ## Header Level 2 -> <h2> Content </h2> ### Header Level 3 -> <h3> Content </h3> #### Header Level 4 -> <h4> Content </h4> ##### Header Level 5 -> <h5> Content </h5> ###### Header Level 6 -> <h6> Content </h6></h1>
|
|
||||||
<p>Alternate syntax (n number of =/-)</p>
|
|
||||||
<p>Header Level 1 -> <h1> Content </h1> ================</p>
|
|
||||||
<p>Header Level 2 -> <h2> Content </h2> ----------------</p>
|
|
||||||
<p>Paragraph tags</p>
|
|
||||||
<p>Hello world -> <p> Hello world </p></p>
|
|
||||||
<p>This is also a paragraph -> <p> this is also a paragraph regardless </p> regardless </p>
|
|
||||||
<p>However this is a break, because it ends with two spaces -> <p> However <br> this is a break, because it ends with two spaces </p></p>
|
|
||||||
<p>Double returns also</p>
|
|
||||||
<p>yields new paragraphs -> <p> Double returns also</p> <p> yields new paragraphs </p></p>
|
|
||||||
<p><em>italic</em> -> <em>italic</em> <strong>bold</strong> -> <strong>bold</strong> <strong><em>italic bold</em></strong> -> <strong><em>italic bold</em></strong></p>
|
|
||||||
<p>hello <strong>world</strong> -> [TextClass: hello, BoldClass: world] </p>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@ -1,25 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Document</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<p>Reference [here](https://www.markdownguide.org/basic-syntax/)</p>
|
|
||||||
<p>Headings, h# tags</p>
|
|
||||||
<h1>Header Level 1 -> <h1> Content </h1> ## Header Level 2 -> <h2> Content </h2> ### Header Level 3 -> <h3> Content </h3> #### Header Level 4 -> <h4> Content </h4> ##### Header Level 5 -> <h5> Content </h5> ###### Header Level 6 -> <h6> Content </h6></h1>
|
|
||||||
<p>Alternate syntax (n number of =/-)</p>
|
|
||||||
<p>Header Level 1 -> <h1> Content </h1> ================</p>
|
|
||||||
<p>Header Level 2 -> <h2> Content </h2> ----------------</p>
|
|
||||||
<p>Paragraph tags</p>
|
|
||||||
<p>Hello world -> <p> Hello world </p></p>
|
|
||||||
<p>This is also a paragraph -> <p> this is also a paragraph regardless </p> regardless </p>
|
|
||||||
<p>However this is a break, because it ends with two spaces -> <p> However <br> this is a break, because it ends with two spaces </p></p>
|
|
||||||
<p>Double returns also</p>
|
|
||||||
<p>yields new paragraphs -> <p> Double returns also</p> <p> yields new paragraphs </p></p>
|
|
||||||
<p><em>italic</em> -> <em>italic</em> <strong>bold</strong> -> <strong>bold</strong> <strong><em>italic bold</em></strong> -> <strong><em>italic bold</em></strong></p>
|
|
||||||
<p>hello <strong>world</strong> -> [TextClass: hello, BoldClass: world] </p>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
295
test/journal.md
Normal file
295
test/journal.md
Normal file
@ -0,0 +1,295 @@
|
|||||||
|
Date: 2025/02/25
|
||||||
|
Desc: After using Neovim for years, I tried the JetBrains products for a month. Here's what I found.
|
||||||
|
|
||||||
|
# 30 Days of JetBrains: My Vim Cleanse
|
||||||
|
|
||||||
|
<img src="/journal/JetBrains-Logo.png" alt="Jet Brains Logo" width="500">
|
||||||
|
|
||||||
|
###### Author: Hayden Hargreaves
|
||||||
|
|
||||||
|
###### Published: 03/27/2025
|
||||||
|
|
||||||
|
## Background
|
||||||
|
|
||||||
|
I have been using Neovim exclusively for over two years, and in those years I have
|
||||||
|
become *"blazingly fast"* and my developer experience has increased exponentially.
|
||||||
|
Inspired by popular Twitch Streamer, [The Primeagen](https://www.twitch.tv/theprimeagen),
|
||||||
|
I started using Neovim in late 2022. I started with just note-taking using a popular
|
||||||
|
Neovim distribution called [NVChad](https://nvchad.com), which allowed me to get a feel
|
||||||
|
for the tool and how it can be used. But it was too hard, the learned curve was too steep.
|
||||||
|
|
||||||
|
Eventually, a few months later, I ran into a YouTube video from The Primeagen where he was
|
||||||
|
programming live on Twitch. While watching this video, I was in awe of his speed, efficiency,
|
||||||
|
and the tools he was using looked amazing. I decided to give Neovim another try, but this time
|
||||||
|
I didn't use NVChad. I wanted to learn how to configure the editor myself, because that is a
|
||||||
|
huge part of why Neovim is so popular, and why I still use it to this day.
|
||||||
|
|
||||||
|
After countless hours of configuration and problems, I finally had a tool that I could call my
|
||||||
|
own and begin writing software with. At first, I struggled to understand the appeal. Vim motions
|
||||||
|
are confusing and hard to remember. But with time, I became fast, really fast. I started to get
|
||||||
|
comments from my peers in class asking how I type so fast and what editor I am using. Most people
|
||||||
|
have the same response to my response: "Eh, Vim? Isn't that old?" My answer, Neovim is new fork
|
||||||
|
of Vim which is being maintained by a large team of amazing open source developers.
|
||||||
|
|
||||||
|
Over the years, I have tried to convince countless peers to "take the vim pill" and give it a
|
||||||
|
try. But after being rejected by almost everyone, finally realized that the tool each developer
|
||||||
|
uses really doesn't matter as long as they enjoy it and feel comfortable. However, I strongly
|
||||||
|
encourage everyone to give Vim a try at some point. You may love it!
|
||||||
|
|
||||||
|
That final realization is the fuel for this experiment.
|
||||||
|
|
||||||
|
## Why JetBrains?
|
||||||
|
|
||||||
|
In my first semesters at Embry-Riddle, I had the pleasure of meeting many experienced professionals
|
||||||
|
who scoff at my choice of tooling. "To each their own," I say! But after the third or fourth time,
|
||||||
|
I started to think that maybe I am missing something? In my Neovim editor I have everything I could
|
||||||
|
ever need, countless language servers (LS or LSP) with autocomplete and other features, database
|
||||||
|
integration, AI tools like CoPilot, lighting fast navigation via
|
||||||
|
[Telescope](https://github.com/nvim-telescope/telescope.nvim) and
|
||||||
|
[Harpoon](https://github.com/ThePrimeagen/harpoon), syntax highlighting via
|
||||||
|
[TreeSitter](https://github.com/nvim-treesitter/nvim-treesitter), and even git integration from
|
||||||
|
[Fugitive](https://github.com/tpope/vim-fugitive). Needless to say, if I want something new, I can
|
||||||
|
get it. Granted, plugins are not exclusive to Neovim. Visual Studio Code (VSC), another popular
|
||||||
|
integrated development environment (IDE), also has a large plugin ecosystem. However, this argument
|
||||||
|
is to rebut against the frequent complaint that Neovim is lacking in features and cannot serve as a
|
||||||
|
modern IDE.
|
||||||
|
|
||||||
|
That now begs the question, why JetBrains products? The answer is simple: they are the best.
|
||||||
|
There is hardly any competition in the proprietary development tools space, the two biggest competitors
|
||||||
|
being VSCode (as previously mentioned) and the JetBrains suite of tools. I have experience using both
|
||||||
|
tools. I spent lots of time using IntelliJ from JetBrains when I learned Java, and this experience
|
||||||
|
opened my eyes to the power of an IDE vs. a typical text editor (Neovim). However, Java is not a simple
|
||||||
|
language compared to GoLang (my primary language) or Python (what I use in many of my University classes).
|
||||||
|
For that reason, I avoided using such powerful tools when writing code in languages that I did not see
|
||||||
|
a huge benefit from. But I have always had a sweet spot for IntelliJ; It was how I was introduced to the
|
||||||
|
world of software development. For that reason, I decided to choose JetBrains for this experiment.
|
||||||
|
|
||||||
|
## Why Change Now?
|
||||||
|
|
||||||
|
Another great question! If I love Neovim so much and I am so productive with a tool, why try something
|
||||||
|
new? A professor who I have grown particularly fond of, has always poked fun at me for my choice of
|
||||||
|
tooling. He frequently mentions that I should try something else because when I get into the work force,
|
||||||
|
I will not be able to use Vim. I have finally had enough! Just kidding. He is right, if I am only
|
||||||
|
competent with a single tool, I will struggle in the future. So I decided to spend 30 days using only
|
||||||
|
JetBrains products.
|
||||||
|
|
||||||
|
With my student email, I qualify for free access to the JetBrains suite, which is a huge factor in this
|
||||||
|
choice. A subscription for a JetBrains editor is nearly $100 a year, **per editor**. In this experiment,
|
||||||
|
I will be using **PyCharm**, **WebStorm**, **GoLand**, **CLion**, and **DataGrip**. I do not want to spend
|
||||||
|
hundreds of dollars on an editor when so many free options exist, but their education benefits, I cannot
|
||||||
|
use that as an excuse. Furthermore, I may as well take advantage of the benefits while I have them!
|
||||||
|
|
||||||
|
## The Migration
|
||||||
|
|
||||||
|
Switching from such a personal tool to a proprietary tool is a big jump. My biggest concern was the motions
|
||||||
|
I have become so accustomed too. Each JetBrains product has a plugin called **IdeaVim** which implements
|
||||||
|
vim motions natively into the editor. In the past, I have used the **VSCode Neovim** plugin, but it felt
|
||||||
|
slow, buggy and simply just bad. However, even in just the short time writing this article, I have not noticed
|
||||||
|
any large issues with the vim motions in the JetBrains plugin.
|
||||||
|
|
||||||
|
Another thing I will miss during these 30 days is the plugins I use in my Neovim configuration. Below, you
|
||||||
|
can see a collection of each plugin I use in my setup. Quite a few! Some of my favorites being **Harpoon**
|
||||||
|
and **Telescope** which allow me to move between buffers (similar but different from files) with ease. During
|
||||||
|
this experiment, I will not install any of these plugins into my JetBrains editors. I could very easily convert
|
||||||
|
any of these editors into a copy of my Neovim setup, but that defeats the whole purpose of this trial! I will
|
||||||
|
use this editor with very few plugins to allow for more native feel, and to take full advantage of the features
|
||||||
|
provided by the tool without handicapping myself to my comfort zone.
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
#### My Neovim Plugins
|
||||||
|
|
||||||
|
- [dashboard-nvim](https://github.com/glepnir/dashboard-nvim) - A dashboard for Neovim.
|
||||||
|
- [emmet-vim](https://github.com/mattn/emmet-vim) - Emmet support for HTML, CSS, etc.
|
||||||
|
- [github-copilot.vim](https://github.com/github/copilot.vim) - GitHub Copilot integration.
|
||||||
|
- [Harpoon](https://github.com/ThePrimeagen/harpoon) - Quickly jump between files.
|
||||||
|
- [hex.nvim](https://github.com/folke/hex.nvim) - Provides hex editing capabilities.
|
||||||
|
- [lspkind.nvim](https://github.com/simrat39/lspkind.nvim) - Adds icons to LSP completions.
|
||||||
|
- [lualine.nvim](https://github.com/nvim-lualine/lualine.nvim) - A statusline plugin.
|
||||||
|
- [LuaSnip](https://github.com/L3MON4D3/LuaSnip) - A snippet engine.
|
||||||
|
- [markdown-preview.nvim](https://github.com/iamcco/markdown-preview.nvim) - Preview Markdown files.
|
||||||
|
- [Nixvim](https://github.com/nix-community/nixvim) - Integrates Neovim with the Nix package manager for reproducible
|
||||||
|
configurations.
|
||||||
|
- [noice.nvim](https://github.com/folke/noice.nvim) - Replaces Vim's default notification system.
|
||||||
|
- [none-ls.nvim](https://github.com/nvim-lua/none-ls.nvim) - A "null-ls" implementation for non-LSP servers.
|
||||||
|
- [nvim-cmp](https://github.com/hrsh7th/nvim-cmp) - A completion plugin.
|
||||||
|
- [nvim-colorizer.lua](https://github.com/norcalli/nvim-colorizer.lua) - Displays colors in the editor.
|
||||||
|
- [nvim-git signs](https://github.com/lewis6991/nvim-git-signs) - Displays Git changes in the sign column.
|
||||||
|
- [nvim-marks.lua](https://github.com/chentoast/marks.nvim) - Manages marks.
|
||||||
|
- [nvim-notify](https://github.com/rcarriga/nvim-notify) - Another notification plugin.
|
||||||
|
- [nvim-smart-splits](https://github.com/mrjones2014/nvim-smart-splits) - Manages window splits.
|
||||||
|
- [nvim-surround](https://github.com/tpope/nvim-surround) - Easily change surrounding characters (quotes, parentheses,
|
||||||
|
etc.).
|
||||||
|
- [nvim-treesitter-undo](https://github.com/RRRRRRRRRRRRRRRR/nvim-treesitter-undo) - Improves undo/redo with Treesitter.
|
||||||
|
- [nvim-trouble](https://github.com/folke/nvim-trouble.nvim) - Displays diagnostics in a more user-friendly way.
|
||||||
|
- [nvim-ufo](https://github.com/folke/nvim-ufo) - Improves code folding.
|
||||||
|
- [render-markdown.nvim](https://github.com/MeanderingProgrammer/render-markdown.nvim) - Another Markdown renderer.
|
||||||
|
- [rose-pine](https://github.com/rose-pine/neovim) - Rose pine color theme.
|
||||||
|
- [lspsaga.nvim](https://github.com/glepnir/lspsaga.nvim) - Enhances the LSP experience.
|
||||||
|
- [tailwind-tools.nvim](https://github.com/luckasRanarison/tailwind-tools.nvim) - Provides Tailwind CSS integration.
|
||||||
|
- [Telescope](https://github.com/nvim-telescope/telescope.nvim) - A highly extensible fuzzy finder.
|
||||||
|
- [vim-fugitive](https://github.com/tpope/vim-fugitive) - Git integration.
|
||||||
|
- [wakatime.vim](https://github.com/wakatime/vim-wakatime) - WakaTime integration for tracking your coding time.
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
To remain some level of productivity, I did install a handful of select plugins in each of the
|
||||||
|
JetBrains IDEs. They are listed below:
|
||||||
|
|
||||||
|
#### JetBrains Plugins
|
||||||
|
|
||||||
|
- [IdeaVim](https://plugins.jetbrains.com/plugin/164-ideavim) - Vim motions.
|
||||||
|
- [GitHub](https://plugins.jetbrains.com/plugin/13115-github) - GitHub integration, installed by default.
|
||||||
|
- [GitLab](https://plugins.jetbrains.com/plugin/22857-gitlab) - GitLab integration, installed by default.
|
||||||
|
- [Grazie Pro](https://plugins.jetbrains.com/plugin/16136-grazie-pro) - Grammar help and completion.
|
||||||
|
- [Rose Pine](https://plugins.jetbrains.com/plugin/18141-ros-pine) - Rose pine color theme.
|
||||||
|
- [NixIdea](https://plugins.jetbrains.com/plugin/8607-nixidea) - Nix and NixOS tooling.
|
||||||
|
- [WakaTime](https://plugins.jetbrains.com/plugin/7425-wakatime) - WakaTime integration for tracking your coding time.
|
||||||
|
|
||||||
|
## Artificial Intelligence
|
||||||
|
|
||||||
|
With AI on the rise, I am faced with the question of using an AI tool in my editor or not. As you've seen above,
|
||||||
|
I use **GitHub Copilot** in my Neovim config, which has served me well. In my experience, it is bad at generating
|
||||||
|
complex code, but it does an exceptional job with helping me write comments and boilerplate code. However, I have
|
||||||
|
found that I think less and rely on Copilot far too much. During these 30 days, I hope to break this habit, which
|
||||||
|
I have heard called "the Copilot pause." When writing some code, I often wait a second for Copilot to write it for
|
||||||
|
me. This pause proves my reliance on AI has grown too far.
|
||||||
|
|
||||||
|
> "After using copilots for a while, you’ve probably noticed the good ol’ copilot “pause.” You know, that moment when
|
||||||
|
> you’re just waiting for AI to write what you’re thinking so you can press tab and go on with your life. That’s the pause."
|
||||||
|
> ~[Eric Zakariasson](https://anyblockers.com/posts/avoid-the-copilot-pause)
|
||||||
|
|
||||||
|
So, during this experiment, I will not use any AI integration in my editor. This includes the **Jetbrains AI Assistant**,
|
||||||
|
which is advertised ad nauseam in the IDEs. But I am no programming master, and I do still see benefit in using
|
||||||
|
LLMs to help with simple tasks and idea creation. So, I will continue to use chatbots like **ChatGPT** or Google's
|
||||||
|
**Gemini** to help me with day-to-day use cases.
|
||||||
|
|
||||||
|
## Editor Setup
|
||||||
|
I have written this entire document in WebStorm, but up to now, its only been a few hours of the switch. But one thing I
|
||||||
|
have learned is that the IdeaVim plugin allows for configuration in a `~/.ideavimrc` file. Very similar to Vim, yay! In
|
||||||
|
this fill you can configure all kinds of things, however, I tried not to go overboard with the configuration file and tried
|
||||||
|
to configure most of the editor in the application settings. Again, to make the feeling less "vim-like" and to have a more
|
||||||
|
out-of-the-box experience.
|
||||||
|
|
||||||
|
```vim
|
||||||
|
" These do not work very well :(
|
||||||
|
" However, there is a setting for this in the IDE
|
||||||
|
" 'Move Line Up/Down' in 'Keymap' settings
|
||||||
|
"
|
||||||
|
" vnoremap J :m '>+1<CR>gv=gv<CR>
|
||||||
|
" vnoremap K :m '<-2<CR>gv=gv<CR>
|
||||||
|
|
||||||
|
" Indent lines with tab and shift-tab
|
||||||
|
nnoremap <TAB> V>
|
||||||
|
nnoremap <S-TAB> V<
|
||||||
|
vnoremap <TAB> >gv
|
||||||
|
vnoremap <S-TAB> <gv
|
||||||
|
|
||||||
|
" Disable the annoying sounds the IdeaVim plugin likes to make
|
||||||
|
set visualbell
|
||||||
|
set noerrorbells
|
||||||
|
```
|
||||||
|
|
||||||
|
This is a sample `.ideavimrc` file which I used for the month. A lot of the settings I found myself wanting to tweak
|
||||||
|
could be done through the menus in the editor itself. Which at times, proved to be rather difficult.
|
||||||
|
|
||||||
|
## Disclaimer
|
||||||
|
The following sections will review my findings and the results of this experiment. Keep in mind, anything I say is
|
||||||
|
100% my own opinion, and every user will likely have a different experience. Nothing here is **fact** just simply
|
||||||
|
how I feel about each tool.
|
||||||
|
|
||||||
|
## What is Missing
|
||||||
|
After using the JetBrains products for a month, I have noticed a few things that were missing that made my development
|
||||||
|
experience slightly more cumbersome. For example, I did not find a very good way to search for files, options like
|
||||||
|
**class search** or **symbol search** are powerful, but sometimes I want to search for a file or navigate quickly between
|
||||||
|
files. I was not able to find this functionality using the default tooling in the Idea products.
|
||||||
|
|
||||||
|
Another thing I was not a huge fan of is the `.idea` directory that is created in the root of each project. This is a small
|
||||||
|
complaint, but in large projects, it can create more bloat in the source. Many times I experienced issues with files
|
||||||
|
loading properly due to a corrupted `.idea` directory. Or even times when the files would get hidden in my source tree due
|
||||||
|
to an issue in the editor config. I don't love that the editor requires setup for each project, similar to the `.vs`
|
||||||
|
directory from [Visual Studio Code](https://code.visualstudio.com).
|
||||||
|
|
||||||
|
Finally, the biggest issue I noticed was the LSP and syntax highlighting was very slow and at times would crash. At
|
||||||
|
times, I would have to stop working and wait for my editor to "catch up" and highlight my code or generate LSP completions.
|
||||||
|
I often found myself having to close a file and open it again to get the syntax highlighting to function again. Which
|
||||||
|
I have never had to deal with in Neovim. Furthermore, in multi-language projects, the tools struggle pretty badly too,
|
||||||
|
due to the single language nature of the tools. Of course, there are solutions to this problem through plugins, but
|
||||||
|
throughout this experience I did not install them as mentioned previously.
|
||||||
|
|
||||||
|
## What JetBrains Does Better
|
||||||
|
Of course, the JetBrains suite is industry grade software, which comes along with lots of powerful built-in tools. Such
|
||||||
|
as Git integration. The source control integration is exceptional and allows for easy switching between branches using their
|
||||||
|
**smart checkout** feature. There were times when I still needed to pull out the command line to solve complex git issues,
|
||||||
|
but for the most part, the UI/UX was good and fairly easy to learn. I also really liked that `// TODO: ...` comments were
|
||||||
|
highlighted to stand out and when commits containing TODOS were created, a notification was pushed to the user. Small
|
||||||
|
things like this really help the tools stand out and feel user-friendly.
|
||||||
|
|
||||||
|
Other features like the LSP and syntax highlighting are installed out of the box. This is a huge win for those who do not
|
||||||
|
want to spend hours configuring their system and tools before working. However, that is *exactly* who I am, so this was
|
||||||
|
not a huge benefit to me, but it definitely made the migration much faster. Another smaller feature that can be included
|
||||||
|
in that list is the **markdown previewer**, which was a nice feature to see. Most modern editors have this feature, so I
|
||||||
|
am sure this is nothing new, but vim is not able to achieve this functionality natively.
|
||||||
|
|
||||||
|
Finally, the last feature I really enjoyed was the project sessionizer. The ability to switch between projects with the
|
||||||
|
click of a button is amazing. However, I did not find myself using it very often. Usually, the only time I needed to use
|
||||||
|
it was when I first opened the editor and had to select or create a project.
|
||||||
|
|
||||||
|
## The Verdict
|
||||||
|
So what was the point of this whole thing? Firstly, I need to be able to tell other people **why I use Neovim vs. other
|
||||||
|
editors.** Jokes aside, there is a real reason. It was pointed out to me that maybe I am handicapping myself or missing
|
||||||
|
out on tools that might help my development workflow. I try not to disregard things that I haven't used, and since I
|
||||||
|
haven't used an editor that isn't Neovim in **years**, I thought it was only fair I give them a chance.
|
||||||
|
|
||||||
|
During this month of JetBrains, I learned a lot about what I like and what I don't like. For example, I still work best
|
||||||
|
with keyboard driven workflows and prefer TUI ([Terminal User Interface](https://en.wikipedia.org/wiki/Text-based_user_interface))
|
||||||
|
over a GUI (Graphical User Interface). Having to reach between the mouse and keyboard was a driving reason that I switched
|
||||||
|
to Neovim in the first place, and I still believe it is a strong argument for the tool. However, sometimes preference is
|
||||||
|
not enough when the tooling is **objectively better.**
|
||||||
|
|
||||||
|
In my experience, I have narrowed the editors down into two categories: **Worth the pain** and **just not strong enough.**
|
||||||
|
|
||||||
|
#### Worth the Pain
|
||||||
|
- **[Rider](https://www.jetbrains.com/rider/)** for C# development
|
||||||
|
- **[Clion](https://www.jetbrains.com/clion/)** for large C/C++ projects with CMake
|
||||||
|
- **[IntelliJ](https://www.jetbrains.com/idea/)** for Java development
|
||||||
|
|
||||||
|
#### Just Not Strong Enough
|
||||||
|
- **[GoLand](https://www.jetbrains.com/go/)** for Go development
|
||||||
|
- **[WebStorm](https://www.jetbrains.com/webstorm/)** for web development
|
||||||
|
- **[PyCharm](https://www.jetbrains.com/pycharm/)** for python development
|
||||||
|
|
||||||
|
You may notice that *every* JetBrains product was not listed above. That is simply because I did not use every single one.
|
||||||
|
I have never once found a need to write PHP code and therefore, did not use the PhpStorm editor. It would be unfair to
|
||||||
|
try and rate products I have never used. So why did I rate each of these editors the way I did? I have a simple
|
||||||
|
guideline: **language complexity.** Languages Python or JavaScript are simple enough (syntax wise) that I do not feel the
|
||||||
|
need to have such powerful tools. The editors placed in the "Just Not Strong Enough" categories do not provide enough help
|
||||||
|
to me to outweigh the lack of preference. Go is also a fairly simple language with very little
|
||||||
|
"[syntactic sugar](https://en.wikipedia.org/wiki/Syntactic_sugar)." In addition, lots of programming experience is in Go,
|
||||||
|
so I have no problem writing an application start to finish without the need for complicated tooling.
|
||||||
|
|
||||||
|
How about the three in the "Worth the Pain" category? Languages like C# and Java are (in my opinion) a complex language
|
||||||
|
with features that really benefit from powerful tools. In my experience, [object-oriented](https://en.wikipedia.org/wiki/Object-oriented_programming)
|
||||||
|
programming languages are the hardest to develop with poor tooling. The power that Rider specifically provides in a huge
|
||||||
|
C# codebase is unrivaled. This [survey](https://www.jrebel.com/blog/best-java-ide) from 2024-2025 says that IntelliJ IDEA
|
||||||
|
is the most popular editor among developers for the Java programming language. So I guess it's safe to say I am not the
|
||||||
|
only one who feels this way!
|
||||||
|
|
||||||
|
>
|
||||||
|
> IntelliJ IDEA has firmly held the top spot over that timespan, with the Java IDE's popularity only increasing from 71% to 84%.
|
||||||
|
>
|
||||||
|
|
||||||
|
The last editor on the list is Clion. The reason I added Clion to the "Worth the Pain" list is simply because I am bad
|
||||||
|
at writing C. I know, hard to believe, but I actually don't know how to use CMake and really don't want to learn. So for
|
||||||
|
projects that require dependencies, I really struggle to compile and run the program. Clion abstracts a lot of the hardship
|
||||||
|
involved with packaging and compiling C programs which is why I will likely continue to use it for projects with many
|
||||||
|
dependencies.
|
||||||
|
|
||||||
|
## JetBrain > Neovim?
|
||||||
|
So after all of that, will I continue using Neovim for everything I do, or will I strictly use JetBrains products? I hope
|
||||||
|
that after reading the previous section, you will know the answer. I am looking forward to jumping back into Neovim and
|
||||||
|
getting work done with "blazing speed," but I now understand that sometimes a full-fledged IDE is just the better option.
|
||||||
|
|
||||||
|
I hope that reading this will shed some light on some of the bias many programmers develop over time. Maybe even inspire
|
||||||
|
you to try something new, even if its only for a month, or even a week! You might love it! Or at the very worst, you might
|
||||||
|
learn something.
|
||||||
Loading…
x
Reference in New Issue
Block a user