TypeScript as a language for Angular applications

The reason is that developing in JavaScript isn’t overly productive. Say a function expects a string value as an argument, but the developer mistakenly invokes it by passing a numeric value. With JavaScript, this error can be caught only at run- time. Java or C# compilers won’t even compile code that has mismatching types, but … Continue reading TypeScript as a language for Angular applications

JavaScript definite guide – Arrays

An array is an ordered collection of values. Each value is called an element, and each element has a numeric position in the array, known as its index. JavaScript arrays are untyped: an array element may be of any type, and different elements of the same array may be of different types. Array elements may … Continue reading JavaScript definite guide – Arrays

iOS development with Swift 3 – Your first iOS app

What is Swift? Swift is the modern language created by Apple which got the Apple developer world buzzing. While loved by iOS developers, Objective-C was at the same time seen by many others as an outmoded language – a verbose and peculiar syntax, and with an unsafe type system. Built as a modern alternative to … Continue reading iOS development with Swift 3 – Your first iOS app

日语谓语的各种形态 – “基本形”

动词的“基本形“ 语法解释 “基本形”是动词的基本形式。词典中的词条都使用这一形式。各类动词“ます形”去掉“ます”的形式和“基本形”的关系对应如下: 一类动词:“基本形”最后的发音为“う”段,“ます形”去掉“ます”后的发音为“い”段。 二类动词:“基本形”为“ます形”去掉“ます”后加“る”。 三类动词:“基本形”分别为“来る”和“する”,“ます形”去掉“ます”后则为“来”和“し”。 

日语谓语的各种形态 – 敬体形和简体形

语法解释 在口语里,日语的谓语形式根据说话人和听话人之间的上下关系,亲疏关系的不同而不同。对长辈或关系不太亲密的人使用的形式为敬体形。与此相反,如对方是自己的同辈或晚辈,或关系比较密切时则使用“简体形”。“简体形”是不使用“ます” ”です”的形式。 动词本身就具有“敬体形”和“简体形”,如“〜ます” “〜ません” “〜ました” “ませんでした”等四种礼貌的表达形式即是“敬体形”,而以前所学的动词的“基本形” “ない形” “た形”都属于简体形。但一类形容词、二类形容词和名词本身没有“敬体形”和“简体形”之分,只有在作谓语时,其谓语形式才具有“敬体形”和“简体形”。 动词的简体形  森さんは 毎晩 テレビを 見る。 コーヒー 飲む? ー ううん、飲まない。 昨日 テレビ、 見た? ー ううん、 見なかった。 注意:简体会话中常常省略助词。

Functional Programming in JavaScript — Few data structures, many operations

Few data structures, many operations This chapter covers: Understanding program control and flow Reasoning efficiently about code and data Unlocking the power of 1map , 1reduce and 1filter Discovering the Lodash.js library and function chains Thinking recursively In this chapter, I’ll introduce you to a few useful and practical operations like 1map , 1reduce and … Continue reading Functional Programming in JavaScript — Few data structures, many operations

Functional Programming in JavaScript — Higher Order JavaScript

Higher Order JavaScript This chapter covers Why JavaScript is a suitable functional language JavaScript as a language that enables multi paradigm development Immutability and policies for change Understanding higher-order and first-class functions Exploring the concepts of closures and scopes Practical sue of closures As applications get bigger, so does their complexity. No matter how good … Continue reading Functional Programming in JavaScript — Higher Order JavaScript

Functional Programming in JavaScript — Becoming functional

What is functional programming? In simple terms, functional programming is a software development style that places a major emphasis on the use of functions. What better text to print than the good ol “Hello World”: 1document.querySelector(‘#msg’).innerHTML = ‘<h1>Hello world</h1>’ This program is simple, but because everything is hardcoded, you can’t use it to display messages … Continue reading Functional Programming in JavaScript — Becoming functional

AppleScript programming – Introducing AppleScript

AppleScript is for Macintosh automation; so scripts you write can automate tasks you would otherwise have to perform with the mouse and keyboard. So what would you want to automate? The answer to this question falls under two broad categories: small tasks and big tasks. The main difference between small scripts and big scripts is … Continue reading AppleScript programming – Introducing AppleScript