- Part 1: Начало статического блога. Immutant, Ring, Compojure, HTML rendering через Rum
- Part 2: Forms, middlewares, redirects, 404 and error handling
- Part 3: id generator, loops, cookies, sessions, authorization, working w/ files, macros
- Part 4: Cookies, рефакторинг, неймспейсы, RSS фид
- Part 5: Infinite Scroll на JS, sitemap.xml, robots.txt
- Part 6: Настраиваем CLJS окружение
- Part 7: Переделываем форму редактирования на Rum, клиент+сервер-сайд рендеринг, EDN-сериализация данных
- Part 8: CLJS, drag-n-drop upload, browser API, Rum mixins, local state
A list of commonly asked questions, design decisions, reasons why Clojure is the way it is as they were answered directly by Rich (even when from many years ago, those answers are pretty much valid today!). Feel free to point friends and colleagues here next time they ask (again). Answers are pasted verbatim (I've made small adjustments for readibility, but never changed a sentence) from mailing lists, articles, chats.
How to use:
- The link below in the summary jumps at the answer on this page.
- The link on the question itself points back at the original post.
Summary
Браузерное приложение - расписание встреч. Возможности: добавление встреч, удаление, редактирование. | |
На главном экране отображаются все встречи на выбранный день (соответственно есть контрол в выбором даты). | |
У встречи есть три состояния: запланирована, в процессе, завершена. Создавать встречи на прошлое запрещено, | |
они не должны пересекаться, отображение даты и времени должно быть в часовом поясе браузера. | |
Экран добавления встречи: дата и время начала, дата и время окончания, часовой пояс | |
(доступны три часовых пояса: Москва, Хабаровск, Гринвич), краткое описание. | |
При вводе времени валидировать формат: dd.MM.yyyy hh:mm A, где dd - день, MM - месяц, yyyy - год, | |
hh - часы от 1 до 12, mm - минуты, A - AM/PM. |
- High level overview https://yogthos.github.io/ClojureDistilled.html
- Interactive exercises http://clojurescriptkoans.com/
- Community-powered Clojure courses https://clojurecademy.com/
- Interactive book https://www.maria.cloud/
- Interactive workbook http://viewer.gorilla-repl.org/view.html?source=github&user=lspector&repo=clojinc&path=worksheet.clj
- Clojure workshop https://github.com/friemen/cugb/blob/master/kickstart.md
- Clojure style guide https://github.com/bbatsov/clojure-style-guide
- core functions explained visually http://blog.josephwilk.net/clojure/functions-explained-through-patterns.html
;; | |
;; NS CHEATSHEET | |
;; | |
;; * :require makes functions available with a namespace prefix | |
;; and optionally can refer functions to the current ns. | |
;; | |
;; * :import refers Java classes to the current namespace. | |
;; | |
;; * :refer-clojure affects availability of built-in (clojure.core) | |
;; functions. |
These resources (articles, books, and videos) are useful when you're starting to learn the language, or when you're learning a specific part of the language. This an opinionated list, no doubt. I've compiled this list from writing and teaching Clojure over the last 10 years.
- 🔴 Mandatory (for both beginners and intermediates)
- 🟩 For beginners
- 🟨 For intermediates
The standard way of understanding the HTTP protocol is via the request reply pattern. Each HTTP transaction consists of a finitely bounded HTTP request and a finitely bounded HTTP response.
However it's also possible for both parts of an HTTP 1.1 transaction to stream their possibly infinitely bounded data. The advantages is that the sender can send data that is beyond the sender's memory limit, and the receiver can act on