Interactive Programming with Clojure & Membrane

preview_player
Показать описание
A demo of interactive programming, composing an image for Twitter/X sharing images that show the article information that nowadays is missing from the feeds. I also create the thumbnail used for this video.

The main tools used are Clojure and the UI library Membrane. No Clojure knowledge required. I demo how to use Calva to start the REPL and connect VS Code.

00:00 The tools used, the demo/playground project
01:10 The problem statement for the app being built
02:15 Usage information
02:50 Opening the project
03:10 Starting the REPL
04:02 Loading/Evaluating the file: Ctrl+Alt/Option+C Enter
04:41 Introducing the Playground (the Rich comment form)
05:39 Evaluating top level forms (named functions, namespace variables): Alt+Enter
06:23 Evaluating any form/expression: Ctrl+Enter
07:05 Evaluating top level Rich Comment forms (also Alt+Enter)
08:42 Introducing the main thread expression (a pipeline of sorts) producing the image
11:35 Evaluating the pipeline in steps
12:30 Looking at the functions, saying hello to Membrane
17:30 Controlling the JPEG compression level
20:35 Going full monty on Interactivity with a Membrane dev app
24:09 Inspecting the running application using ”inline def”
25:10 Deciding to create the Youtube thumbnail with the code
27:56 Adding the Clojure logo to the thumbnail
31:37 Showing a non-recommended way to export the contents of the app so that VS Code can show it
34:18 Wrapping up, summarizing Interactive Programming
35:35 Asking you to Like & Subscribe! ♥️

Calva is an easy to use Clojure and ClojureScript IDE for Visual Studio Code.

Рекомендации по теме
Комментарии
Автор

Thanks for sharing this. Learned a lot about what is possible with Membrane.

staypufd
Автор

Would you mind making a video please where you point out EVERY nuance of REPL driven development and nuances of interactive programming that languages like Python and Ruby can not do but Clojure can?

I am new to programming itself and I have not chosen yet my first programming language.

I am tempted by Clojure but at the same time I can not find any videos or articles that truly point out the obvious for nonprogrammers when it comes to Clojure's interactive development and Repl driven development that Python and Ruby can not do and why it matters for every nuance one by one, what you gain in productivity or some other UX aspect.

All videos or articles I find keep assuming you're already a experienced programmer and they don't make it obvious enough what are the actual advantages of Clojure compared to Python/Ruby besides it enforcing functional programming paradigm.

Clojure seems on a downtrend compared to Elixir. I have yet to decide what language to choose. I don't know what Elixir community is doing right year by year because it always seems to get more and more popular yet Clojure in the last 3-4 year seems to be less and less popular.
I do understand that Clojure is mature enough to not die out but still it saddens me that it does not seem to be able to keep up the pace with growth that Elixir and other functional programming languages seem to have lately.

encapsulatio
welcome to shbcf.ru