codepen

Are you a type of programmer who loves to write every single line of code? Or the one who knows where to find snippets and get benefits from it?

您是喜欢编写每一行代码的程序员吗? 还是知道在哪里可以找到摘要并从中受益的人?

I’m the second type. Why bother to write it yourself when you know there’re snippets you need out there? You may think the more code you write, the more skills you will improve. No, it’s not. Especially when you write the same code over and over again.

我是第二种。 当您知道那里需要片段时,为什么还要自己动手写呢? 您可能会认为编写的代码越多,您将提高的技能就越多。 不,这不对。 尤其是当您一遍又一遍地编写相同的代码时。

So, leave the normal logic for snippets to put more effort into the significant tasks.

因此,保留片段的常规逻辑可以将更多精力投入到重要任务中。

Below are the places you can find useful snippets. Check it out.

以下是您可以找到有用片段的地方。 看看这个。

1. Codepen (1. Codepen)

https://codepen.io

https://codepen.io

Besides being a great online playground, codepen contains a lot of code snippets that will benefit your tasks. In addition, you will get inspired by the snippets collection right on the homepage. They’re smooth and beautiful.

除了是一个不错的在线游乐场之外,codepen还包含许多代码片段,这些代码片段将使您的工作受益。 此外,您还将直接从首页上的代码片段集合中获得启发。 它们光滑漂亮。

2. CSS技巧 (2. CSS-Tricks)

https://css-tricks.com/snippets/javascript/

https://css-tricks.com/snippets/javascript/

Hmm, CSS tricks, isn’t it supposed to be a CSS resource? Yes, but not only CSS. In fact, you can find really useful JS snippets here.

嗯,CSS技巧,难道它不应该是CSS资源吗? 是的,但不仅限于CSS。 实际上,您可以在这里找到非常有用的JS代码段。

The list is selected by only one person, Chris Coyier, so you can’t expect it to be the large one. But it shouldn’t be a problem if you find something that fits your tasks here.

该列表仅由一个人Chris Coyier选择,因此您不能期望它会是很大的列表。 但是,如果您在此处找到适合自己任务的内容,那应该不成问题。

3. 30秒的代码 (3. 30 Seconds of Code)

https://www.30secondsofcode.org

https://www.30secondsofcode.org

By “30 seconds of code”, this website means the code you can understand in approximately 30 seconds.

通过“ 30秒的代码”,该网站表示您可以在大约30秒内理解的代码。

The code snippets here are organized by tags and categories, which is convenient for you to search for the one you need. More and more snippets are updated frequently. This could be your treasure to find most of the snippets you need for your projects.

此处的代码段按标签和类别进行组织,方便您搜索所需的代码段。 越来越多的代码片段会经常更新。 这可能是您找到项目所需的大多数代码片段的宝藏。

4.有用的角度 (4. Useful Angle)

https://usefulangle.com/javascript

https://usefulangle.com/javascript

The list of snippets at Useful Angle is updated frequently.

有用角度的代码片段列表会经常更新。

The best part: it’s well documented and explained.

最好的部分:有充分的记录和解释。

5.代码去 (5. Code to Go)

https://codetogo.io/all/

https://codetogo.io/all/

Simple UI and very basic code, Code to go is suitable for mostly the beginners.

简单的UI和非常基本的代码,Code to go适合大多数初学者。

6. Snippetlib (6. Snippetlib)

https://snippetlib.com/jquery

https://snippetlib.com/jquery

This one is selected by Jessie Frazelle. As time passes, it becomes a public library which contains a number of snippets in several programming languages.

这是由Jessie Frazelle选择的。 随着时间的流逝,它变成了一个公共库,其中包含许多使用多种编程语言编写的代码段。

7. Snipplr (7. Snipplr)

https://snipplr.com/popular?language=javascript

https://snipplr.com/popular?language=javascript

Snipplr provides two main features: saving and sharing your snippets. There’re thousand of snippets you can find here with various languages including, of course, JavaScript. With the advanced search feature, you can narrow down the results to easily pick the one that suits you most.

Snipplr提供两个主要功能:保存和共享您的代码片段。 您可以在这里找到数千种使用各种语言(包括JavaScript)的代码段。 使用高级搜索功能,您可以缩小搜索范围,轻松挑选最适合的搜索结果。

8. Codota (8. Codota)

https://www.codota.com/code/javascript/module-index

https://www.codota.com/code/javascript/module-index

Codota comes with a huge list of snippets. Plus, finding a snippet for your need here is super easy because of the intelligent search capabilities.

Codota附带了大量的摘要。 此外,由于具有智能搜索功能,因此在这里找到您所需的代码片段非常容易。

The ready-to-use code snippets are very helpful. Instead of spending time writing code for easy and repetitive tasks, you should use snippets to save time for focusing on the complex ones.

即用型代码片段非常有用。 您不必花时间编写代码来完成简单且重复的任务,而应使用代码片段来节省时间来专注于复杂的代码。

Do you know anywhere else to find snippets? Leave a comment below to complete the list.

您是否知道其他地方可以找到摘要? 在下面发表评论以完成列表。

进一步阅读 (Further Reading)

普通英语JavaScript (JavaScript In Plain English)

Enjoyed this article? If so, get more similar content by subscribing to Decoded, our YouTube channel!

喜欢这篇文章吗? 如果是这样,请订阅我们的YouTube频道解码,以获得更多类似的内容

翻译自: https://medium.com/javascript-in-plain-english/8-places-to-find-helpful-javascript-snippets-3733b8a62768

codepen


http://www.taodudu.cc/news/show-3708734.html

相关文章:

  • aceEditor实现类似于codepen的效果
  • 使用CodePen编写react代码
  • codepen中html如何引用图片,源自codepen的25个最受欢迎的HTML/CSS 代码
  • 2021CodePen炫酷无比的作品
  • 前端神器-----CodePen
  • codepen_CodePen技巧和最佳实践
  • codepen使用_您应该使用CodePen的9个理由
  • codePen前端编码神器
  • codePen
  • codepen学习
  • CodePen的使用教程 codepen如何存放自己的代码 codepen存放的代码如何引入到网站里 codepen引入博客页面
  • CodePen简介
  • codepen教程_10个Codepen入门技巧
  • codepen的使用
  • [UE4]Lerp_3Color, 3ColorBlend, Lerp的区别
  • UE4 线性插值 lerp
  • cocos 线性插值lerp
  • unity shader smoothstep and lerp ,InverseLerp
  • unity Lerp在X秒内插值
  • Unity Color Lerp
  • Unity Shader的Lerp()函数
  • Unity(九):Lerp线性插值、SmoothDamp
  • Shader中Smoothstep和Lerp的区别
  • Unity 使用Lerp实现匀速移动
  • Unity【Lerp Slerp】- 线性插值与球形插值的区别
  • 【Unity3d】使用插值函数Lerp实现自动升降平台
  • CocosCreator Lerp线性插值
  • Vector3.Lerp
  • Unity中的Lerp函数
  • Color.Lerp的使用

codepen_1. Codepen相关推荐

  1. 2016年 CodePen 最热门的前端代码 Top 100

    2016年 CodePen 最热门的前端代码 Top 100 原文:http://www.shejidaren.com/top-pen-of-2016.html 每年 Codepen 都会公布年度最热 ...

  2. Codepen 每日精选(2018-4-22)

    按下右侧的"点击预览"按钮可以在当前页面预览,点击链接可以打开原始页面. 图片切换效果 https://codepen.io/AlikinVV/f... 基于 dom 的可换肤的自 ...

  3. Codepen 每日精选(2018-3-30)

    按下右侧的"点击预览"按钮可以在当前页面预览,点击链接可以打开原始页面. 纯 css 画的 ipod https://codepen.io/DanGasson/... 用 svg ...

  4. 赞!15个来自 CodePen 的酷炫 CSS 动画效果

    CodePen 是一个在线的前端代码编辑和展示网站,能够编写代码并即时预览效果.你在上面可以在线分享自己的 Web 作品,也可以欣赏到世界各地的优秀开发者在网页中实现的各种令人惊奇的效果. 今天这篇文 ...

  5. 每天看一片代码系列(三):codepen上一个音乐播放器的实现

    今天我们看的是一个使用纯HTML+CSS+JS实现音乐播放器的例子,效果还是很赞的: codePen地址 HTML部分 首先我们要思考一下,一个播放器主要包含哪些元素.首先要有播放的进度信息,还有播放 ...

  6. 开发工具 codepen codepen vscode

    这是一个系列,记录我前端开发常用的代码,小常识,有些是参考网上代码,(讲的可能有点烂,求不要打脸,嘤嘤嘤~~)送给那些需要的人.可以相互交流,喜欢的加我吧. Wx: Lxp911221 js在线编译网 ...

  7. Codepen 每日精选(2018-4-21)

    按下右侧的"点击预览"按钮可以在当前页面预览,点击链接可以打开原始页面. 内容淡入效果 https://codepen.io/jcoulterde... 音乐播放器布局 https ...

  8. Codepen 每日精选(2018-3-29)

    按下右侧的"点击预览"按钮可以在当前页面预览,点击链接可以打开原始页面. 纯 css 写的立方体动画 https://codepen.io/davidkpian... 自动生成曼陀 ...

  9. Codepen 每周精选:22个页面特效(2018-5-2)

    按下右侧的"点击预览"按钮可以在当前页面预览,点击链接可以打开原始页面. 1. 观影打分特效 https://codepen.io/PointC/pen... 2. 纯 css 写 ...

最新文章

  1. Golang的interface实践
  2. Native层HIDL服务的获取原理-Android10.0 HwBinder通信原理(七)
  3. App.config/Web.config 中特殊字符的处理
  4. pdo_fetch执行mysql_PDO中执行SQL语句的三种方法
  5. CCNA考试中实验题精讲(RIP,OSPF,VLAN)
  6. 第一个PowerShell脚本——PowerShell三分钟(九)
  7. c# 配置文件App.config操作类库
  8. 辐射避难所服务器维护,《辐射:避难所Online》6月2日停服维护更新公告
  9. spss方差分析_SPSS双因素重复测量方差分析
  10. 谷歌生物医学专用翻译_实用技能 | 知云文献翻译
  11. 互联网广告定价策略与算法
  12. QuickTime不支持播放HEVC编码mp4/mov视频
  13. 基于免费的SDCC开发51单片机
  14. 朱义晨作业 17037099
  15. 如何开启全新旅途,实现旅游市场活力复苏
  16. 微信公众平台订阅号、服务号和企业号三者之间的区别与联系
  17. 【2021年蓝桥杯Java-B组国赛题解】
  18. Vivado 2019.1安装包下载
  19. .NET 4.0安装提示一般信任关系失败
  20. MG90舵机转角控制

热门文章

  1. 用java打印空白金字塔
  2. 新手小白,做短视频自媒体如何赚钱?这几点你需要知道
  3. OsgEarth显示地图
  4. Hbuilderx 不报语法错误
  5. mouseEvent事件——mouse坐标描述——focus事件——input事件——节流(thorttle)——mouseWheel(滚轮事件)
  6. 项目配置Swagger2生成API接口文档
  7. 自控原理-线性系统时域分析
  8. P1026 统计单词个数
  9. 黑塞:引人深思的十条哲理和名言
  10. TensorFlow实现卷积神经网络CNN