Англоязычные ресурсы:
Пропустить теорию и перейти прямо к задачам
Ссылка на учебник: http://learn.javascript.ru
Сразу расскажу про несколько особенностей яваскрипта, о которых может быть не написано (или мало написано) в учебниках, но которые стоит понимать:
Если ты пишешь код, то наверняка его тестируешь. Если речь о какой-то функции, то ты можешь вызывать ее с разными аргументами, и смотреть, что она вернет. Если ты сверстал сайт, то ты открываешь его в браузере, жмешь ссылки и кнопки, проверяешь что все сделано верно. Это называется ручное тестирование — человек проверяет работу программы. Нельзя ли эту задачу переложить на плечи роботов? Обычно можно, и это называется автоматизированное тестирование.
Тестирование позволяет сделать твой код надежнее, а твою жизнь проще. Ведь согласись, лучше когда ты сам обнаруживаешь и исправляешь ошибку до релиза, чем когда рассерженный заказчик звонит на выходных и требует срочно исправить неработающий функционал.
Тестирование особенно полезно при разработке больших приложений в большой команде, когда ты можешь нечаянно сломать какую-то функцию, которую делал другой человек, и о которой ты не знал. Или когда надо доработать написанный ранее сложный проект.
В больших компаниях может быт
bool isset ( mixed $var [, mixed $... ] )<br>isset — Determine if a variable is set and is not NULL | |
void echo ( string $arg1 [, string $... ] )<br>echo — Output one or more strings | |
bool empty ( mixed $var )<br>empty — Determine whether a variable is empty | |
string substr ( string $string , int $start [, int $length ] )<br>substr — Return part of a string | |
int count ( mixed $array_or_countable [, int $mode = COUNT_NORMAL ] )<br>count — Count all elements in an array, or something in an object | |
bool is_array ( mixed $var )<br>is_array — Finds whether a variable is an array | |
int strlen ( string $string )<br>strlen — Get string length | |
string sprintf ( string $format [, mixed $args [, mixed $... ]] )<br>sprintf — Return a formatted string | |
void unset ( mixed $var [, mixed $... ] )<br>unset — Unset a given variable | |
mixed str_replace ( mixed $search , mixed $replace , mixed $subject [, int &$count ] )<br>str_replace — Replace all occurrences of the search string with the replacement string |
Vue.js is an amazing framework, which can be as powerful as Angular or React, the two big heavy hitters in the world of front-end frameworks.
However, most of Vue's ease-of-use is due to the use of Observables - a pattern that triggers re-renders and other function calls with the reassignment of a variable.
Installing Xcode and the command line tools need to be done first because it installs gcc
.
https://developer.apple.com/xcode/features/
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
<!DOCTYPE HTML> | |
<!-- attribution -- this blog provided the code | |
http://blog.makingsense.com/2011/03/create-stand-alone-web-pages-or-widgets-that-use-wordpress-functions/ | |
--> | |
<?php | |
//required include files | |
require('wp-blog-header.php'); | |
require_once("wp-config.php"); | |
require_once("wp-includes/wp-db.php"); |
Free O'Reilly books and convenient script to just download them.
Thanks /u/FallenAege/ and /u/ShPavel/ from this Reddit post
How to use:
- Take the
download.sh
file and put it into a directory where you want the files to be saved. cd
into the directory and make sure that it has executable permissions (chmod +x download.sh
should do it)- Run
./download.sh
and wee there it goes. Also if you do not want all the files, just simply comment the ones you do not want.