forked from fork-commit-merge/fork-commit-merge-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCoffeeScriptLanguage.tsx
59 lines (55 loc) · 2.34 KB
/
CoffeeScriptLanguage.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/* eslint-disable @next/next/no-img-element */
const CoffeeScriptLanguage = () => {
return (
<div className="flex justify-center items-center bg-primary">
<div className="text-center max-w-2xl">
<div className="flex flex-wrap justify-center items-center">
<img
src="https://img.shields.io/badge/CoffeeScript-2F2625?style=for-the-badge&logo=CoffeeScript&logoColor=white"
alt="CoffeeScript"
className="mb-10 h-16 rounded-sm"
/>
</div>
<h2 className="text-2xl font-bold mb-4">What is CoffeeScript?</h2>
<p className="mb-4">
CoffeeScript is a programming language that transcompiles to
JavaScript. It aims to make JavaScript code more readable and concise,
offering a syntax that is more consistent and expressive. CoffeeScript
compiles one-to-one into the equivalent JS and offers no runtime
overhead.
</p>
<h2 className="text-2xl font-bold mb-4">Why Use CoffeeScript?</h2>
<p className="mb-6">
Using CoffeeScript can help you write cleaner and more maintainable
code. Its syntax encourages the use of good programming practices and
also comes with some additional features that don't exist in
JavaScript, like array comprehensions. However, note that it adds an
additional compilation step and may not be suitable for all projects.
</p>
<h4 className="text-2xl font-bold my-4">
CoffeeScript Best Practices and Coding Style Guide
</h4>
<ul>
<li>- Favor immutability and avoid using mutable data structures.</li>
<li>- Make liberal use of whitespace for better readability.</li>
<li>
- Utilize CoffeeScript's syntactic sugar but avoid being overly
clever.
</li>
<li>- Keep lines of code short and functions small.</li>
<li>- Always be explicit about what your code is doing.</li>
</ul>
<br />
<a
target="_blank"
rel="noopener noreferrer"
href="https://coffeescript.org/"
className="text-xl font-bold underline hover:text-blue-400"
>
CoffeeScript - Official Documentation
</a>
</div>
</div>
);
};
export default CoffeeScriptLanguage;