A linter runningThis is the first part of a comprehensive tutorial on constructing a JavaScript linter. A linter is a tool for checking source code. We will see the fundamental concepts and the source code of a real linter written in JavaScript, including algorithms for the tricky parts. Note: dirtyrat is the linter used to produce this tutorial. How a linter works internallyHow can we make a comp
Before we take peek into the anatomy of the JavaScript engine and see how everything fits together, let’s first understand some of the basic concepts of JavaScript and a little history on its inception. JavaScript in a nutshellJavaScript is an interpreted language. This means we do not have to compile the JavaScript source code before sending it to the browser. An interpreter can take the raw Java
Let’s say we have a value: 5. We know how to apply a function to this value: (* 2) 5would equal 10. In Haskell, values can have a context. For now, let’s think of that context as a box, like so: FunctorsA functor can apply a function to a value inside a box. To do this, the typeclass of Functor defines the function fmap. fmap :: (a -> b) -> f a -> f bWe can derive quite a bit from the type: The fi
This blog post is part of a series of blog posts, which aims to shed some light and share from our experience working with React Native at Wix. Wix App is one of the first applications built with React Native from scratch. After a 5-years journey, we are excited to look back in retrospective, and recount some of our daily challenges and how we solved them, alongside a couple of major decisions we’
Photo by Emin BAYCAN on UnsplashDependency injection is a technique which is largely used to avoid tight coupling inside the applications, by abstracting objects/modules and inverting the dependency flow. Of course this is a simplified explanation of it but, if you are here, I believe that we are familiarized with the technique and you might have googled “dependency injection in rust”, or somethin
基本的なデータ構造であるヒープについて、概要、計算量と実装、そして最もシンプルな応用であるヒープソートを紹介します。MITが講義や資料を公開しているMIT OpenCourseWareのアルゴリズムとデータ構造の講義 が非常にわかりやすかったので、その内容に沿ってまとめました。この記事ではHeaps and Heap Sortの内容を以下の順序で解説します。 ヒープの概要ヒープの表現ヒープの構築ヒープの計算量ヒープの実装ヒープソート1. ヒープの概要ヒープ (heap) は優先度付きキュー (priority queue) の実装の1つです。優先度付きキューは集合 (set) を扱うデータ型で、集合に含まれる要素が何らかの優先度 (priority) 順に取り出されるという特徴を持っています。学会のポスター発表を回るときや、旅行先での観光地巡りでは、優先度に基づいて要素を取り出すことが重要
Learning to love heaps!Today marks the halfway point of this series — we’ve officially made it through the first half of basecs! This is, of course, cause for celebration. Trust me, I’m just as surprised as you that we’ve not only covered so many topics together this year, but also that you’re still reading this series and aren’t bored out of your mind yet. One of the concepts that we’ve spent a l
Test Driven Development is a software development process that follows these steps: Write a failing test for one requirement.Implement just enough code to make the test pass.Refactor with confidence (if it’s needed).TDD & the Scientific MethodTDD is like the scientific method, but for software. The scientific method is how we learn things about the world. It works like this: Make an observation.As
The humble switch statement, it exists in almost every programing language and javascript is no exception. The switch statement allows for cleaner organization of code when a large number of evaluations needs to be made. But the switch poses several problems, which I think are best shown through an example. The ProblemBelow we see a standard switch statement wrapped in a function. This statement w
The perfect match ![EDIT: this is the first episode of 3: at the end, you will have a React app, accessible from your domain name, optimally delivered via CloudFront.] Part 2: Deliver your app in milliseconds via Cloudfront Part 3: A domain name for your (React) App React is an awesome Framework to develop webapps. At Ovrsea, we are definitively fans ! You can build a new one within minutes. The q
I wrote this mostly whilst finishing a period of employment where I was obliged to use Microsoft Teams. For those who have not had the pleasure, it’s Microsoft’s counter to Slack, the instant-messaging client beloved in tech. Microsoft first introduced Teams in March 2017 and recently announced that they have ‘overtaken’ Slack, claiming more than 13 million daily active users, or 19 million weekly
At Dwelo, we’ve written the code for our IoT gateways in Rust. It’s fast, it’s reliable, and it’s secure. But we didn’t start with Rust, and we didn’t write the code in a weekend. This series is the story of where we were a year ago, how we switched to Rust, and why you might want to think about doing the same. We will cover reasons to use Rust (or not!), threading, hardware communication, fearles
Mallard — Picture under the Creative Commons license (source: https://flic.kr/p/ncTxxu) A poet called James Whitcomb Riley once said: “When I see a bird that walks like a duck and swims like a duck and quacks like a duck, I call that bird a duck.” Much probably referring to the Mallard (like the one of the above picture) that acts just like a duck, but isn’t a duck! Well, in programing language we
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く