An interesting question and discussion related to Elixir for same link as previous post:
Sunday, June 9, 2019
Would you still pick Elixir in 2019? (github.com) - continuation - comparison with Scala/Akka
An interesting question and discussion related to Elixir for same link as previous post:
Saturday, June 8, 2019
React question: which UI framework to choose? And how to allow for easier switching between the frameworks?
https://www.reddit.com/r/reactjs/comments/ba8pxp/react_question_which_ui_framework_to_choose/
Car
And how to allow for easier switching between the frameworks?
Car
And how to allow for easier switching between the frameworks?
level 1
Whatever framework you end up choosing, please think about wrapping the components and importing only the wrapped ones instead of importing straight from the framework. That will allow you to be much more flexible in the future. Also if you are prototyping, that would also allow for easier switching between the frameworks.
level 2
Hey, this sounds pretty reasonable. I'm not much of a js developer myself, since most of the work I did in the past was backend stuff. Do you have some reading material on this topic? Or some examples of how that wrapping would work?
level 3
My workflow is usually like this - the first time I need to use a certain component from a framework, I create a new component, write down the props I'm sure I'll be using and just return the component from the framework with the props passed down to it. So you get the define the component API instead of the framework.
Thursday, June 6, 2019
Wednesday, June 5, 2019
Tuesday, June 4, 2019
A Self-Learning, Modern Computer Science Curriculum
A Self-Learning, Modern Computer Science Curriculum
https://functionalcs.github.io/curriculum/
https://functionalcs.github.io/curriculum/
Monday, June 3, 2019
Monday, May 27, 2019
Sunday, May 26, 2019
Saturday, May 25, 2019
Monday, May 20, 2019
Sunday, May 19, 2019
Saturday, May 18, 2019
Friday, May 17, 2019
wayscript.com
A new way to build software.
WayScript gives you flexible building blocks to seamlessly integrate, automate and host tools in the cloud. Unlock new potential with drag and drop programming.
Subjective Problems vs Objective Problems
https://marcusblankenship.com/30s-to-better-problem-solving/
Excerpt:
Excerpt:
"If we perceive an objective problem as subjective (e.g. “2+2=?”) we might end up with an objectively wrong answer. This can have serious repercussions.If we perceive a subjective problem as objective (e.g. “which web framework is best”?) we may end up fighting a religious war. This may lead to insults, pain, and other casualties of war."
Sunday, April 28, 2019
Thursday, April 25, 2019
CSS for blinking
CSS for blinking
.blink_me {
-webkit-animation-name: blinker;
-webkit-animation-duration: 2s;
-webkit-animation-timing-function: linear;
-webkit-animation-iteration-count: infinite;
-moz-animation-name: blinker;
-moz-animation-duration: 2s;
-moz-animation-timing-function: linear;
-moz-animation-iteration-count: infinite;
animation-name: blinker;
animation-duration: 2s;
animation-timing-function: linear;
animation-iteration-count: infinite;
}
@-moz-keyframes blinker {
0% { opacity: 1.0; }
50% { opacity: 0.2; }
100% { opacity: 1.0; }
}
@-webkit-keyframes blinker {
0% { opacity: 1.0; }
50% { opacity: 0.2; }
100% { opacity: 1.0; }
}
@keyframes blinker {
0% { opacity: 1.0; }
50% { opacity: 0.2; }
100% { opacity: 1.0; }
}
Sunday, April 21, 2019
Saturday, April 13, 2019
Tuesday, April 9, 2019
Saturday, April 6, 2019
Wednesday, April 3, 2019
Monday, April 1, 2019
Advice about hard work
“You can map out a fight plan. But when the action starts, you are down to your reflexes. That is where your road work shows. If you cheated on that in the dark of the morning, you are getting found out now under the bright lights”. Joe Frazier.
Monday, March 25, 2019
Sunday, March 24, 2019
Saturday, March 23, 2019
Mobx
Redux vs Mobx - https://www.robinwieruch.de/redux-mobx-confusion/
Documentation: https://mobx.js.org/
mobx-react - https://github.com/mobxjs/mobx-react
Egghead.io Video - https://egghead.io/lessons/react-sync-the-ui-with-the-app-state-using-mobx-observable-and-observer-in-react
React and Mobx:
https://blog.cloudboost.io/3-reasons-why-i-stopped-using-react-setstate-ab73fc67a42e
https://www.youtube.com/watch?v=rwqwwn_46kA
http://earwicker.com/MobX_Like_React_but_for_Data.html
Example - https://github.com/nahueld/portfolia
Mobx State Tree - https://github.com/mobxjs/mobx-state-tree
https://www.youtube.com/watch?v=rwqwwn_46kA
https://www.youtube.com/watch?v=pPgOrecfcg4
https://www.youtube.com/watch?v=9sKpx60zBNI
Vue and Mobx:
https://www.reddit.com/r/vuejs/comments/8p16fs/bored_with_vuex_try_mobxvue/
https://github.com/dwqs/vue-mobx/blob/master/example/models/test.js
Documentation: https://mobx.js.org/
mobx-react - https://github.com/mobxjs/mobx-react
Egghead.io Video - https://egghead.io/lessons/react-sync-the-ui-with-the-app-state-using-mobx-observable-and-observer-in-react
React and Mobx:
https://blog.cloudboost.io/3-reasons-why-i-stopped-using-react-setstate-ab73fc67a42e
https://www.youtube.com/watch?v=rwqwwn_46kA
http://earwicker.com/MobX_Like_React_but_for_Data.html
Example - https://github.com/nahueld/portfolia
Mobx State Tree - https://github.com/mobxjs/mobx-state-tree
https://www.youtube.com/watch?v=rwqwwn_46kA
https://www.youtube.com/watch?v=pPgOrecfcg4
https://www.youtube.com/watch?v=9sKpx60zBNI
Vue and Mobx:
https://www.reddit.com/r/vuejs/comments/8p16fs/bored_with_vuex_try_mobxvue/
https://github.com/dwqs/vue-mobx/blob/master/example/models/test.js
Monday, March 18, 2019
Monday, February 18, 2019
Thursday, February 14, 2019
Redux Thunk, Redux Saga
Redux Thunk & Redux Saga:
https://flaviocopes.com/redux-saga/
https://flaviocopes.com/redux-saga/
https://blog.logrocket.com/understanding-redux-saga-from-action-creators-to-sagas-2587298b5e71
https://engineering.universe.com/what-is-redux-saga-c1252fc2f4d1
Redux Observable:
https://github.com/redux-observable/redux-observable
Redux Logic:
https://github.com/jeffbski/redux-logic
Using async and await with React and Redux:
https://www.jamestease.co.uk/blether/use-async-await-with-react-redux
Redux Observable:
https://github.com/redux-observable/redux-observable
Redux Logic:
https://github.com/jeffbski/redux-logic
Using async and await with React and Redux:
https://www.jamestease.co.uk/blether/use-async-await-with-react-redux
Wednesday, February 13, 2019
ES6 - Chaining functions using Generator Function
Chaining functions using Generator Function
function* doSomething2() {
yield* [
() => {
console.log("hello2");
gen2.next();
gen2.next().value();
},
() => {
console.log("world2");
},
() => {
console.log("world22");
},
];
}
var gen2 = doSomething2();
gen2.next().value();
Output:
---------
function* doSomething2() {
yield* [
() => {
console.log("hello2");
gen2.next();
gen2.next().value();
},
() => {
console.log("world2");
},
() => {
console.log("world22");
},
];
}
var gen2 = doSomething2();
gen2.next().value();
Output:
---------
hello2
world22
Thursday, February 7, 2019
Wednesday, February 6, 2019
Friday, February 1, 2019
Thursday, January 31, 2019
Wednesday, January 30, 2019
Tuesday, January 29, 2019
Rails - ActiveRecord related
Here's jpegs, because Twitter uses a white background to preview PNGs in the timeline but a black one in the individual photo view. pic.twitter.com/dWSz6wCSx7— Nate Berkopec (@nateberkopec) January 11, 2019
Monday, January 28, 2019
Distributed Phoenix Chat using Redis PubSub
Using Redis
https://www.reddit.com/r/elixir/comments/aj2sf7/distributed_phoenix_chat_using_redis_pubsub/
https://www.poeticoding.com/distributed-phoenix-chat-using-redis-pubsub/?utm_source=reddit&utm_campaign=reddit_elixir_350
Using pg2 instead of Redis
https://www.poeticoding.com/distributed-phoenix-chat-with-pubsub-pg2-adapter/?utm_source=reddit&utm_campaign=reddit_programming_382
https://www.reddit.com/r/elixir/comments/aj2sf7/distributed_phoenix_chat_using_redis_pubsub/
https://www.poeticoding.com/distributed-phoenix-chat-using-redis-pubsub/?utm_source=reddit&utm_campaign=reddit_elixir_350
Using pg2 instead of Redis
https://www.poeticoding.com/distributed-phoenix-chat-with-pubsub-pg2-adapter/?utm_source=reddit&utm_campaign=reddit_programming_382
Whistle - a web framework based on Elixir
https://github.com/boudra/whistle
What problems does Whistle address?
Whistle is a web framework that works a bit differently than normal MVC web frameworks. It is composed of stateful long-running components, allowing you to create interactive applications entirely in Elixir via WebSockets, while being also able to render an HTML page like any other web framework.It aims to provide a more functional approach to building web apps in Elixir, while also taking more advantage of Erlang's actor model.It also provides an extensive Javascript API for when Elixir alone doesn't cut it and interop with existing front-end libraries like React is needed.
ecommerce - Elixir
Avia Commerce -
https://www.aviacommerce.org/
https://github.com/aviacommerce/
https://www.aviacommerce.org/docs/products.html
https://www.reddit.com/r/elixir/comments/aclbb3/ecommerce_elixir_way_wip_faceted_search_for/
Gitter channel - https://gitter.im/avia-commerce/Lobby
Nectar Commerce -
https://github.com/vinsol/nectarcommerce
https://www.aviacommerce.org/
https://github.com/aviacommerce/
https://www.aviacommerce.org/docs/products.html
https://www.reddit.com/r/elixir/comments/aclbb3/ecommerce_elixir_way_wip_faceted_search_for/
Gitter channel - https://gitter.im/avia-commerce/Lobby
Nectar Commerce -
https://github.com/vinsol/nectarcommerce
Sunday, January 27, 2019
MongoDB with Elixir
https://medium.com/@petecorey/how-to-use-mongodb-with-elixir-ac3f814f8b4a
https://whitfin.io/using-mongodb-with-elixir-phoenix-and-ecto/
Connecting to MongoDB directly from Elixir - https://github.com/ankhers/mongodb
Saturday, January 26, 2019
Friday, January 25, 2019
Wednesday, January 23, 2019
Sunday, January 20, 2019
git - get diff between 2 commits as a nice list of single-line commits
git log --oneline f9fff80..2b6e0da >> commits.txt
Erlang/Elixir related
Elixir/Erlang String handling - https://www.evanmiller.org/elixir-ram-and-the-template-of-doom.html
Advantages of using Erlang - https://www.evanmiller.org/why-i-program-in-erlang.html
Advantages of using Erlang - https://www.evanmiller.org/why-i-program-in-erlang.html
Saturday, January 12, 2019
Wednesday, January 9, 2019
Sunday, January 6, 2019
tail + grep (multiple patterns)
https://stackoverflow.com/questions/23395665/tail-f-grep
https://unix.stackexchange.com/questions/37313/how-do-i-grep-for-multiple-patterns-with-pattern-having-a-pipe-character
https://stackoverflow.com/questions/7161821/how-to-grep-a-continuous-stream/7162898#7162898
Example: To grep for "Processing by" & "Parameters:" -
tail -f log/development.log | grep -E "Processing by|Parameters:"
Output:
https://unix.stackexchange.com/questions/37313/how-do-i-grep-for-multiple-patterns-with-pattern-having-a-pipe-character
https://stackoverflow.com/questions/7161821/how-to-grep-a-continuous-stream/7162898#7162898
Example: To grep for "Processing by" & "Parameters:" -
tail -f log/development.log | grep -E "Processing by|Parameters:"
Output:
2019-01-06 14:24:20.030 [INFO ] [30600:1788] Processing by Spree::ProductsController#index as JS
2019-01-06 14:24:20.031 [INFO ] [30600:1788] Parameters: {"sort_scope"=>"default", "page"=>"12", "infiniteScroll"=>"true"}
Saturday, January 5, 2019
Monday, December 31, 2018
Sunday, December 30, 2018
Thursday, December 27, 2018
Linux: Prevent SSH timeout
https://bjornjohansen.no/ssh-timeout
In ~/.ssh/config add the following line:
ServerAliveInterval 30
This will send a “null packet” every 30 seconds on your SSH connections to keep them alive.
Wednesday, December 26, 2018
Friday, December 21, 2018
Thursday, December 20, 2018
Wednesday, December 19, 2018
Monday, December 17, 2018
Friday, December 14, 2018
Javascript - this, bind, call
// this , bind, call
var msg = "global";
function f(x){
console.log(this.msg + "," + x);
}
var obj1 = {
msg: "obj1",
f: f
}
var obj2 = {
msg: "obj2"
}
f(10);
obj1.f(10);
f.call(obj2, 10);
// f.call(window, 10);
// f.call(obj1, 10);
// f.call(obj2, 10);
// f.bind(obj1)(10)
// f.bind(obj2)(10)
// f.bind(window)(10)
var msg = "global";
function f(x){
console.log(this.msg + "," + x);
}
var obj1 = {
msg: "obj1",
f: f
}
var obj2 = {
msg: "obj2"
}
f(10);
obj1.f(10);
f.call(obj2, 10);
// f.call(window, 10);
// f.call(obj1, 10);
// f.call(obj2, 10);
// f.bind(obj1)(10)
// f.bind(obj2)(10)
// f.bind(window)(10)
Thursday, December 13, 2018
Wednesday, December 12, 2018
Tuesday, December 11, 2018
Monday, December 10, 2018
Sunday, December 9, 2018
Config in Elixir projects
Excerpt from Elixir Cookbook -
The configuration from the imported files will override any existing configuration (with the same key) in the config.exs file. In fact, Configuration values are merged recursively. See the example at https://github.com/alco/mix-config-example.
To access configuration values, we use Application.get_env(:app, :key).
Friday, December 7, 2018
Thursday, December 6, 2018
Tuesday, December 4, 2018
Saturday, December 1, 2018
AWS Cloud Development Kit
AWS re:Invent 2018: Infrastructure Is Code with the AWS Cloud Development Kit (DEV372)
https://www.reddit.com/r/programming/comments/a22fay/aws_infrastructure_as_code_using_aws_cdk/
Subscribe to:
Posts (Atom)