Skip to content

Commit

Permalink
feat(n-dev): update
Browse files Browse the repository at this point in the history
  • Loading branch information
yttriumz committed Dec 27, 2024
1 parent 3c40afe commit f3486e8
Show file tree
Hide file tree
Showing 8 changed files with 102 additions and 27 deletions.
50 changes: 47 additions & 3 deletions notes-development/Clojure.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
---
sitemap:
lastmod: 2024-12-05 +0000
lastmod: 2024-12-24 +0000
---

# Clojure

Last modified: 2024-12-05 +0000
Last modified: 2024-12-24 +0000

- [Interesting posts](#interesting-posts)
- [Coding style](#coding-style)
- [`deps.edn`](#depsedn)
- [Get paths](#get-paths)
- [Return value](#return-value)
- [Time format](#time-format)
- [Babashka](#babashka)

## Interesting posts

Expand All @@ -24,17 +32,19 @@ Last modified: 2024-12-05 +0000
- [Alright so the answer is probably Rust + Clojure : r/rust](https://www.reddit.com/r/rust/comments/1d0k8vm/alright_so_the_answer_is_probably_rust_clojure/)
- [“Clojure is not object-oriented.” This is true, but it may lead you to the wrong conclusions. It’s a little like saying that a rifle is not arrow-oriented. : r/programming](https://www.reddit.com/r/programming/comments/9a67g/clojure_is_not_objectoriented_this_is_true_but_it/)
- [When Should You Use Clojure's Object-Oriented Features?](https://www.cognitect.com/blog/2013/11/07/when-should-you-use-clojures-object-oriented-features)
- [函数式的宗教-00: 认识lisp(clojure)与haskell - 简书](https://www.jianshu.com/p/f08e5789e597)
- [Clojure's keyword namespacing convention Considered Harmful : r/Clojure](https://www.reddit.com/r/Clojure/comments/hhyb26/clojures_keyword_namespacing_convention/)

Language:

- [Help regarding .clj, .cljc and .cljs . : r/Clojure](https://www.reddit.com/r/Clojure/comments/5ydj3i/help_regarding_clj_cljc_and_cljs/)
- [How to ns – Digital Digressions by Stuart Sierra](https://stuartsierra.com/2016/08/27/how-to-ns)
- [Clojure - Destructuring in Clojure](https://clojure.org/guides/destructuring)
- [Clojure Destructuring Tutorial and Cheat Sheet](https://gist.github.com/john2x/e1dca953548bfdfb9844)
- [Clojure Guide - How to use Loop and Recur - Guide - The freeCodeCamp Forum](https://forum.freecodecamp.org/t/clojure-guide-how-to-use-loop-and-recur/18418)
- [Clojure: Why a function should be `declare` if it is called before definition in the source code - Stack Overflow](https://stackoverflow.com/questions/33143936/clojure-why-a-function-should-be-declare-if-it-is-called-before-definition-in)
- [clojure - Two functions which call each other recursively - Stack Overflow](https://stackoverflow.com/questions/18421453/two-functions-which-call-each-other-recursively)
- [clojure spec vs plumatic schema - Clojure Q&A](https://ask.clojure.org/index.php/13817/clojure-spec-vs-plumatic-schema)
- [Seqs and Colls in Clojure](https://www.brainonfire.net/files/seqs-and-colls/main.html)

Tooling:

Expand All @@ -57,12 +67,22 @@ Surveys:
Tutorials:

- [Search results for 'clojure #guide' - The freeCodeCamp Forum](https://forum.freecodecamp.org/search?q=clojure%20%23guide%20order%3Alatest)
- [How I developed a web backend in Clojure - DEV Community](https://dev.to/marciofrayze/how-i-developed-a-web-backend-in-clojure-4oe7)
- [Integrating Clojure with Java and Spring Boot](https://www.linkedin.com/pulse/integrating-clojure-java-spring-boot-fernando-nunes-v2kaf)
- [Simple TUIs with Babashka and Gum : r/Clojure](https://www.reddit.com/r/Clojure/comments/10g8npc/simple_tuis_with_babashka_and_gum/)

Community:

- [Open source is not about you (2018) \| Hacker News](https://news.ycombinator.com/item?id=31957554)
- [Contributing to Clojure](https://gist.github.com/halgari/c17f378718cbd2fd82324002133ef678)

## Coding style

*References*:

- [Metabase Clojure Style Guide · metabase/metabase Wiki](https://github.com/metabase/metabase/wiki/Metabase-Clojure-Style-Guide)
- [How to ns – Digital Digressions by Stuart Sierra](https://stuartsierra.com/2016/08/27/how-to-ns)

## `deps.edn`

- The Clojure CLI can use any version of Clojure. See [How to declare a super specific version of Clojure in the deps.edn? - Questions & Help / How to? - ClojureVerse](https://clojureverse.org/t/how-to-declare-a-super-specific-version-of-clojure-in-the-deps-edn/6751/2).
Expand All @@ -71,3 +91,27 @@ Community:

- Use `(System/getProperty "user.dir")` or `(-> "." java.io.File. .getAbsolutePath)` to get the working directory.
- Use `(System/getProperty "java.class.path")` or `clj -Spath` to get classpath.

## Return value

*References*:

- [Should the clojure "-main" function have a return value? - Community Center / Beginners - ClojureVerse](https://clojureverse.org/t/should-the-clojure-main-function-have-a-return-value/7089/4)

## Time format

*References*:

- [date - Clojure: what's the way to have current time string with babashka with least dependency? - Stack Overflow](https://stackoverflow.com/questions/62969992/clojure-whats-the-way-to-have-current-time-string-with-babashka-with-least-dep)
- See also [[Java#Time format]].

## Babashka

Compare the following:

- Bash: `for node in {1..10}; do ssh -o 'StrictHostKeyChecking no' "ecs-ewalker-loadtest-$(printf %02d $node)" hostname && sleep 1; done`
- Babashka: `(run! #(babashka.process/shell {:continue true} (format "ssh -o 'StrictHostKeyChecking no' ecs-ewalker-loadtest-%02d hostname && sleep 1" %)) (range 1 11))`

[//begin]: # "Autogenerated link references for markdown compatibility"
[Java#Time format]: Java.md "Java"
[//end]: # "Autogenerated link references"
15 changes: 15 additions & 0 deletions notes-development/Elixir.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
sitemap:
lastmod: 2024-12-17 +0000
---

# Elixir

Last modified: 2024-12-17 +0000

## Interesting posts

- [Shell scripting with Elixir \| Hacker News](https://news.ycombinator.com/item?id=39342863)
- [Underjord \| Scripting with Elixir](https://underjord.io/scripting-with-elixir.html)
- [Writing Shell Scripts Using Elixir-Alex Koutmos \| Engineering Blog](https://akoutmos.com/post/elixir-shell-scripts/)
- [Why Elixir is the Programming Language You Should Learn in 2024 - Erlang Solutions](https://www.erlang-solutions.com/blog/why-elixir-is-the-programming-language-you-should-learn-in-2024/)
26 changes: 14 additions & 12 deletions notes-development/load-test.md → notes-development/JMeter.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
---
sitemap:
lastmod: 2024-08-28 +0000
lastmod: 2024-12-27 +0000
---

# Load Test
# Jmeter

Last modified: 2024-08-28 +0000
Last modified: 2024-12-27 +0000

## JMeter

```bash
jmeter -Lorg.apache.jmeter.protocol.http.control=DEBUG
jmeter -Lorg.apache.http=DEBUG
jmeter -LDEBUG
```

*References*:
## Interesting posts

- [Performance Testing vs. Load Testing vs. Stress Testing \| BlazeMeter by Perforce](https://www.blazemeter.com/blog/performance-testing-vs-load-testing-vs-stress-testing)
- [Apache JMeter - User's Manual: Remote (Distributed) Testing](http://svn.apache.org/repos/asf/jmeter/tags/v5_1_1/docs/usermanual/remote-test.html):
> (called bin/create-rmi-keystore.sh). It will generate a key-pair, that is valid for seven days, with a default passphrase of value 'changeit'. It is advised to call it from inside the bin directory.
- [Apache JMeter - User's Manual: Generating Dashboard Report](https://jmeter.apache.org/usermanual/generating-dashboard.html)
Expand All @@ -26,3 +19,12 @@ jmeter -LDEBUG
- [性能测试学习之路(四)—Jmeter之线程组详解_concurrency thread group-CSDN博客](https://blog.csdn.net/qq_22007469/article/details/138791101)
- [Jmeter系列(11)- 并发线程组Concurrency Thread Group详解-CSDN博客](https://blog.csdn.net/u011441473/article/details/124818366)
- [Active vs Started vs Finished](https://groups.google.com/g/ptgram24/c/ku7ZVUkBZiA)
- [JMeter - Get header value and write in a log file - Stack Overflow](https://stackoverflow.com/questions/54596172/jmeter-get-header-value-and-write-in-a-log-file/54624698#54624698)

## Log level

```bash
jmeter -Lorg.apache.jmeter.protocol.http.control=DEBUG
jmeter -Lorg.apache.http=DEBUG
jmeter -LDEBUG
```
20 changes: 14 additions & 6 deletions notes-development/Java.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
sitemap:
lastmod: 2024-06-14 +0000
lastmod: 2024-12-23 +0000
---

# Java

Last modified: 2024-06-14 +0000
Last modified: 2024-12-23 +0000

- [Interesting posts](#interesting-posts)
- [Java distributions](#java-distributions)
Expand All @@ -14,7 +14,7 @@ Last modified: 2024-06-14 +0000
- [Jetty](#jetty)
- [Spring Boot](#spring-boot)
- [Apache](#apache)
- [VSCode](#vscode)
- [Time format](#time-format)

## Interesting posts

Expand All @@ -32,6 +32,11 @@ Last modified: 2024-06-14 +0000
- [How the JVM uses and allocates memory \| Red Hat Developer](https://developers.redhat.com/articles/2021/09/09/how-jvm-uses-and-allocates-memory)
- [Wardrobe strength: JVMs and kill signals](http://journal.thobe.org/2013/02/jvms-and-kill-signals.html)

Tooling:

- [The Oracle Java Platform Extension for Visual Studio Code \| Hacker News](https://news.ycombinator.com/item?id=37929311)
- [Introducing the Oracle Java Platform Extension for Visual Studio Code : java](https://www.reddit.com/r/java/comments/17ar11h/introducing_the_oracle_java_platform_extension/)

## Java distributions

*References*:
Expand Down Expand Up @@ -119,9 +124,12 @@ Last modified: 2024-06-14 +0000
- [http headers - How to set SameSite cookie attribute using Apache configuration? - Stack Overflow](https://stackoverflow.com/questions/54104573/how-to-set-samesite-cookie-attribute-using-apache-configuration)
- [apache 2.4 - Header always edit Set-Cookie not working - Server Fault](https://serverfault.com/questions/1043924/header-always-edit-set-cookie-not-working)

## VSCode
## Time format

*References*:

- [The Oracle Java Platform Extension for Visual Studio Code \| Hacker News](https://news.ycombinator.com/item?id=37929311)
- [Introducing the Oracle Java Platform Extension for Visual Studio Code : java](https://www.reddit.com/r/java/comments/17ar11h/introducing_the_oracle_java_platform_extension/)
- [date - How to get the current time in YYYY-MM-DD HH:MI:Sec.Millisecond format in Java? - Stack Overflow](https://stackoverflow.com/questions/1459656/how-to-get-the-current-time-in-yyyy-mm-dd-hhmisec-millisecond-format-in-java)
- [date - How to get ISO format from time in milliseconds in Java? - Stack Overflow](https://stackoverflow.com/questions/11933137/how-to-get-iso-format-from-time-in-milliseconds-in-java)
- [java - How Do I Convert System.currentTimeMillis To Time Format? (HH:MM:SS) - Stack Overflow](https://stackoverflow.com/questions/56007124/how-do-i-convert-system-currenttimemillis-to-time-format-hhmmss)
- [time - How to convert Milliseconds to "X mins, x seconds" in Java? - Stack Overflow](https://stackoverflow.com/questions/625433/how-to-convert-milliseconds-to-x-mins-x-seconds-in-java)
- [How to convert currentTimeMillis to a date in Java? - Stack Overflow](https://stackoverflow.com/questions/8237193/how-to-convert-currenttimemillis-to-a-date-in-java)
5 changes: 3 additions & 2 deletions notes-development/Perl.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
sitemap:
lastmod: 2024-10-30 +0000
lastmod: 2024-12-20 +0000
---

# Perl

Last modified: 2024-10-30 +0000
Last modified: 2024-12-20 +0000

- [Interesting posts](#interesting-posts)
- [Development environment](#development-environment)
Expand Down Expand Up @@ -141,6 +141,7 @@ Pre-installed:
*References*:
- [ziishaned/learn-regex: Learn regex the easy way](https://github.com/ziishaned/learn-regex)
- [Regular-Expressions.info](https://www.regular-expressions.info/refquick.html)
- [string - Regex not operator - Stack Overflow](https://stackoverflow.com/questions/7317043/regex-not-operator)
- [regex - Regular expression to match EOF - Stack Overflow](https://stackoverflow.com/questions/1171284/regular-expression-to-match-eof)
Expand Down
8 changes: 6 additions & 2 deletions notes-development/index.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
type: index
sitemap:
lastmod: 2024-12-03 +0000
lastmod: 2024-12-27 +0000
priority: 0.5
---

# Development Tips

Last modified: 2024-12-03 +0000
Last modified: 2024-12-27 +0000

General:

Expand All @@ -21,6 +21,7 @@ Programming languages:
- [[C]]
- [[CPP]]
- [[Clojure]]
- [[Elixir]]
- [[Flutter]]
- [[Haskell]]
- [[Java]]
Expand All @@ -45,6 +46,7 @@ Domain-specific:
- [[ML]]
- [[SSO]]
- [[web]]
- [[JMeter]]

Miscellaneous:

Expand Down Expand Up @@ -114,6 +116,7 @@ Fun:
[C]: C.md "C"
[CPP]: CPP.md "C++"
[Clojure]: Clojure.md "Clojure"
[Elixir]: Elixir.md "Elixir"
[Flutter]: Flutter.md "Flutter"
[Haskell]: Haskell.md "Haskell"
[Java]: Java.md "Java"
Expand All @@ -135,6 +138,7 @@ Fun:
[ML]: ML.md "Machine Learning"
[SSO]: SSO.md "Single Sign-On"
[web]: web.md "Web Development"
[JMeter]: JMeter.md "Jmeter"
[notes-development/GitHub-Pages]: GitHub-Pages.md "GitHub Pages"
[Mermaid]: Mermaid.md "Mermaid"
[Garmin-CIQ]: Garmin-CIQ.md "Garmin Connect IQ"
Expand Down
5 changes: 3 additions & 2 deletions notes-development/system.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
---
sitemap:
lastmod: 2024-09-16 +0000
lastmod: 2024-12-06 +0000
---

# System Design

Last modified: 2024-09-16 +0000
Last modified: 2024-12-06 +0000

## Interesting posts

- [System Design](https://github.com/karanpratapsingh/system-design)
- [GitHub - johnlui/PPHC: 📙《高并发的哲学原理》开源图书(CC BY-NC-ND)https://pphc.lvwenhan.com](https://github.com/johnlui/PPHC)
- [Headless Architecture: What is it? \| Alokai](https://alokai.com/blog/headless-architecture)
- [什么是无头 CMS?— 无头 CMS 架构详解 — AWS](https://aws.amazon.com/cn/what-is/headless-cms/)
- [What exactly does “headless” mean? Like a headless CMS : r/webdev](https://www.reddit.com/r/webdev/comments/10o139p/what_exactly_does_headless_mean_like_a_headless/)
Expand Down

0 comments on commit f3486e8

Please sign in to comment.