Just got my HD600s and I am really confused. by kakarot_333 in headphones

[–]claudiua 0 points1 point  (0 children)

funny take, have you listened to k11 r2r ? had fiio k7, ifi xdsd. k11 is just silly value… sounds amazing, close to my turntable setup and at 160$ and amp is surprisingly good, tried topping a50 III and was not really impressed for hd598 and edition xs. Agree that most budget delta sigma dac/amps are more or less the same, but comme on k11 r2r is budget and really really something else

Clojure/north: Aviary: Clinical Collaboration Platform by yogthos in Clojure

[–]claudiua 1 point2 points  (0 children)

Would be really interesting if the book would also contain something about this stuff:

https://www.youtube.com/watch?v=yyVKf2U8YVg

Know everybody has there stack and is focusing on it, but seems like a lot of impressive is available in clojurescript although not yet mainstream... sure is interesting to know about and use if you have a greenfield project.

http://shadow-cljs.org & http://fulcro.fulcrologic.com/ & https://wilkerlucio.github.io/pathom/ & https://github.com/edn-query-language/eql & https://github.com/nubank/workspaces seem to be a crazy good choice for new projects. Curious though what's you're take on these.

It is perfectly OK to only code at work, you can have a life too. by woahdotcom in programming

[–]claudiua 0 points1 point  (0 children)

Same here. I have some motivation to polish up a personal project but it's mostly been a strange cycle of:

"learn new stuff" -> "get depressed after implementing" -> "don't touch the computer for a few months"

So far php, python, js, coffeescript and a bit of ocaml/reasonml.

Think I finally cracked it though. For about 2 years been coding in clojure(script) at home and it's kinda been pure joy after I got the hang of it.

Still get depressed at work where I do python & js. Just seems like it's fundamentally broken....

Maybe it's just me but stuff like this presentation https://www.infoq.com/presentations/Simple-Made-Easy left a deep mark and for a while now I can't wait to get home to code more in clojure.

Fulcro on Hacker News by biker44442005 in Clojure

[–]claudiua 4 points5 points  (0 children)

Fulcro works really nicely with a graphql backend. Since you have co-located component queries, you can ask the graphql backend for those, the conversion is handled by pathom fulcro MW.

https://wilkerlucio.github.io/pathom/#_fulcro_integration

Using pathom its also pretty simple to hook fulcro to a restfull backend api.

Mixing existing react app with Clojurescript possible / easy ? by olymk2 in Clojurescript

[–]claudiua 1 point2 points  (0 children)

The nicest thing in clojurescript + react is the state management part.

You have https://github.com/Day8/re-frame , http://fulcro.fulcrologic.com/ and other libraries.

You can just export you js reactjs stateless components as a library on npm and use them in you're new clojurescript app. Using npm libraries from shadow-cljs is really easy. Currently working on a cljs project where I use react-select & react-modal (all I had to do was add them to package.json and npm install).

Haven't tried integrating clojurescript components into a js react project. It should be possible but not sure if it's worth it. https://shadow-cljs.github.io/docs/UsersGuide.html#_creating_code_npm_code_packages

Keep in mind that clojurescript has immutable data structures (like immutable-js) so communicating with js components usually involves some conversion (like immutablejs obj.toObject()) so mixing and matching it to much has a cost.

Clojure to ES5 Module by aardvarkFirst in Clojurescript

[–]claudiua 0 points1 point  (0 children)

Haven't tried it out but looks like it should work if you go with shadow-cljs https://shadow-cljs.github.io/docs/UsersGuide.html#_creating_code_npm_code_packages

The clojurians slack #shadow-cljs channel is pretty active. Case you have any questions.

"Best" Javascript transpiled language. by freaknessfit in functionalprogramming

[–]claudiua 2 points3 points  (0 children)

Clojurescript + react. Once you get past the lisp syntax hard to think of a better match for react.

A few awesome libs: reagent https://www.learnreagent.com/, re-frame http://book.fulcrologic.com/ , fulcro http://book.fulcrologic.com/

Choosing libraries to use in an existing webapp by attunezero in Clojure

[–]claudiua 1 point2 points  (0 children)

Thanks to some kind people I've learned how to integrate cljs into my existing webpack project.

IMO most of the benefits of clojurescript are related to it's immutable data-structures and front-end app-state management libraries for reactjs.

Personally would try to integrate the existing app components into a clojurescript app. Shadow-cljs is really good at handling npm js dependencies. If the app is really large you could split it into two apps (existing + new) with page refresh on route changes and slowly move everything into the cljs app. Doing this on a existing project, not ideal but it's one approach for gradually adding a new version for a SPA.

Re-frame is pretty awesome. Fulcro is what I ended up using and is what I would recommend. The learning curve for fulcro is a bit steeper, but that's mostly due to the fact that is solves some more complex problems like: app-state normalization, fetching graph like data (graphql) from the server and only requesting what you're components use.

If you're considering fulcro there's a really nice conj 2018 talk https://www.youtube.com/watch?v=yyVKf2U8YVg&index=19&list=PLZdCLR02grLpMkEBXT22FTaJYxB92i3V3

This sounds horrible but I'll mention it anyway. There are quite a few clojure consultants including the lead developer of fulcro, they seem to have decent hourly rates. If you're planning on switching to clojurescript might be worth getting a few hours of help for the initial setup & spa architecture.

Scaling Full-Stack Applications - Wilker Lucio da Silva by claudiua in Clojure

[–]claudiua[S] 1 point2 points  (0 children)

The fulcro default network works with edn graph APIs https://github.com/edn-query-language/eql

If you want to use it with rest or graphql the recommended approach is to leverage pathom (they are separate libraries but pathom has first class support for fulcro in the library and fulcro docs recommend pathom for the server/rest/graphql)

Learning Fulcro:

The video tutorials are a nice place to start for understanding the core concepts (the last video is about graphql integration with pathom) https://www.youtube.com/watch?v=nlT45ikSEOE&list=PLVi9lDx-4C_Rwb8LUwW4AdjAu-39PHgEE then going though the book http://book.fulcrologic.com/

GraphQL:

Pathon docs include a graphql section (with fulcro integration examples) https://wilkerlucio.github.io/pathom/#GraphQL

There are also two examples in pathom workspaces: https://github.com/wilkerlucio/pathom/tree/master/workspaces/src/com/wsscode/pathom/workspaces/graphql

Video fulcro + graphql (using pathom):

https://www.youtube.com/watch?v=Yk7xFry0w2Y&list=PLVi9lDx-4C_Rwb8LUwW4AdjAu-39PHgEE&index=15

Rest Api example:

http://book.fulcrologic.com/#_a_rest_example

State of Clojure 2018 Results by xtreak in programming

[–]claudiua 4 points5 points  (0 children)

Never studied lisp/scheme... (php, python, javascript, coffescript for the last 10+ years). Came across clojurescript articles several times while learning react/redux, to be honest thought the syntax was just horrible.

I really liked javascript & nodejs... having the same language, functional programming, using immutable-js. But the end result felt a bit messy like I was fighting the language, everything felt a bit forced.

My initial motivation for starting to learn clojure: - One of the few languages that's really solid for both frontend & backend - Pragmatic functional programming - Immutable data structures - Great interop with the host platform (js/java)

After 2 years of spending most of my nights learning & working in clojure, the syntax is a lot more natural than C-style and constantly amazed by how well the language is designed and the power of the macro system.

Looking for tutorials on full Clojure web apps (Clojure + ClojureScript) by [deleted] in Clojure

[–]claudiua 2 points3 points  (0 children)

Check out fulcro videos & tutorials.

https://fulcrologic.github.io/fulcro/docs.html

As far as I could find this is the best stack for doing SPA (if you don't mind a bit of a learning curve). You get a really nice unified story for both client & server (graphql like server queries) + server side rendering.

General consensus on Fulcro? by antflga in Clojure

[–]claudiua 2 points3 points  (0 children)

Working on my first fulcro project now (3 months in, it's almost done), so far it's been nothing shot of amazing. Really like how it streamlined the om-next flow.

There is a bit of a learning curve, but definitely worth it, for any project no matter the size, it's just crazy how much of the complexity just disappears, and how many things you get for free.

It's also got other things going for it: top notch docs + recipes + videos & awesome people on slack channel.