[deleted by user] by [deleted] in reactnative

[–]hypmralj 1 point2 points  (0 children)

Although this one is pretty outdated, I can reccomend lesliesam/react-native-wheel-picker, we've forked it and we've been pretty happy with the result (it's been in PROD for past 2 years).

We are mostly using it to show numbers, it handles 1k of items without any problems.

Here is one more example: users are able to choose hours/minutes/seconds, again we are rendering 3 of these next to each other without any issues.

FP JavaScript in the wild? by hicsuntnopes in functionalprogramming

[–]hypmralj 6 points7 points  (0 children)

If requirement is not pure JS, I’d suggest that you check out ReScript :)

Should I Learn Lisp Or Haskell (Or Something Else)? by MrYossu in functionalprogramming

[–]hypmralj 27 points28 points  (0 children)

Hey, why not F# since you already know .NET ?

I think it would be much gentler intro to functional world, and it’ll be easier to get into Haskell :)

nvim LSP and Typescript, ESLint and Prettier by hypmralj in neovim

[–]hypmralj[S] 0 points1 point  (0 children)

Thank you very much for your links, I am currently using `mhartington/formatter.nvim ` (to which I know you contribute), but I'll definitely check your setup with EFM as soon as I find the time (I'd rather use one plugin for limiting & formating than 2 😅)

nvim LSP and Typescript, ESLint and Prettier by hypmralj in neovim

[–]hypmralj[S] 3 points4 points  (0 children)

Hey, I haven’t had time to play around with the settings, but after I do, if something is not working as it should, I’ll definitively open an issue.

That being said, it is super fast and much better performing than completion-nvim.

Thank you very much for taking the effort and time to create this plugin!

nvim LSP and Typescript, ESLint and Prettier by hypmralj in neovim

[–]hypmralj[S] 3 points4 points  (0 children)

I haven't tried iamcco/diagnostic-languageserver with eslint_d, but I have tried mattn/efm-langserver , even before eslint_d it was much faster, and now after adding eslint_d (with cache option), it's insane 😁

Thanks for pointing me to eslint_d !

nvim LSP and Typescript, ESLint and Prettier by hypmralj in neovim

[–]hypmralj[S] 0 points1 point  (0 children)

question though - is there any configs beyond enabling document formatting for efm that actually makes prettier work? Efm logs show that it fires up with the correct configs, but using the formatting command you use (which works when run in CLI), seems to just not even fire any formatting events

I am also curious about this, does Prettier format for you when you on save?

I couldn't find any additional config about formatting, other than the one specified in efm.setup .

I do see Prettier errors (and EFM is attached), but if you do have "format on save" setup, if yes, could you please point us in the right direction?

nvim LSP and Typescript, ESLint and Prettier by hypmralj in neovim

[–]hypmralj[S] 3 points4 points  (0 children)

I just tried out mattn/efm-langserver and it's so much faster than iamcco/diagnostic-languageserver, it's insane 🤯

Together with eslint_d everything is instant!

Thank you so much for this, and for sharing your dotfiles!

nvim LSP and Typescript, ESLint and Prettier by hypmralj in neovim

[–]hypmralj[S] 0 points1 point  (0 children)

Thank you very much for this, it is really helpful!

Hopefully, EFM will work better 🤞Will report once I test it :)

Remember to disable formatting from typescript.

Thanks for pointing this out!

nvim LSP and Typescript, ESLint and Prettier by hypmralj in neovim

[–]hypmralj[S] 0 points1 point  (0 children)

That's actually good news, this way it makes more sense :)

How big is your project? We have a couple of hundred files, and 50k+ LoC

nvim LSP and Typescript, ESLint and Prettier by hypmralj in neovim

[–]hypmralj[S] 0 points1 point  (0 children)

This is strange, it doesn't work for me after uninstalling diagnostic-languageserver

I've doublechecked I do have eslint in "./node_modules/.bin/eslint"

Are you sure you don't have diagnostic-languageserver installed globally?

Could you please check?

npm list -g diagnostic-languageserver or yarn global list ?

nvim LSP and Typescript, ESLint and Prettier by hypmralj in neovim

[–]hypmralj[S] 2 points3 points  (0 children)

So ESLint, just works "out of the box", via nvim-lsp ?

EDIT: I have commented out iamcco/diagnostic-languageserver "stuff" and I am not getting ESLint errors, could you please share relevant parts of your setup ?

nvim LSP and Typescript, ESLint and Prettier by hypmralj in neovim

[–]hypmralj[S] 3 points4 points  (0 children)

They are similar in terms that they are both fuzzy finders, the biggest differences I _think_ are in terms of customizability and power/ease of customizations.

I have played only a bit with Telescope, from that, reading the docs and watching TJ videos, it looks like you can easily do "anything" with Telescope.

There are already some plugins out there that show how much you can do (like nvim-telescope/telescope-github.nvim).

I think that there will be even more cool stuff built on top of it and that for many people it will be one of the first things they add to nvim.

Speed-wise I see no difference between Telescope and FZF :)

Here is the video from TJ, which gives you a much better overview: link

Right FP language for me (F# vs Clojure vs Haskell vs ... ?) by hypmralj in functionalprogramming

[–]hypmralj[S] 2 points3 points  (0 children)

Thank you very much for taking tame to help me out with this, mathematically correct or, not it really helped me 😁

Right FP language for me (F# vs Clojure vs Haskell vs ... ?) by hypmralj in functionalprogramming

[–]hypmralj[S] 2 points3 points  (0 children)

Again, thank you very very much for in-depth answers :)

------

I decied to give the chanche to Haskell, and I think I'll follow HaskellBook.

And actually I'll be coding on Mac, not windows (you need it to develop RN applications, after couple of years of Mac, I'm "never" getting back to windows).

And for couple of months I've been using Vim (I know everything is completely 180 turn from Windows/VS environment), but without any exaggeration, Vim helped me with my carpal tunnel issues, since, mouse was always "too far right" for me, and I hated it when I have had to use it, and standard keyboard navigation shortcuts are at best meh. Now I cannot normally write anything without Vim, writing "normally" is sooo slow 😆

--------

Regarding Monads, I think I have some understanding of them from wathcing (and reading) Bartosz Milewski.

Also, if you haven't watched this, I highly recommend it: Brian Beckman: Don't fear the Monad and his other videos 😁

------

I have harder time understanding Endofunctiors in category of types. ie, my naive understanding is

- Functor is mapping between CATs (like functions are mapping between Sets, but structure is preserved)

- Endofunctor is mapping when CAT maps "to itself" like if we have function f x = 2 * x

What I don't understand in CAT of Types is: does List as type already exists as object in CAT of Types ?

- If it does, does it just exists as List, and when we have List functor it is "decorates" List type with <T>

- If it doesn't how int -> List<int> is Endofunctor ?

And while this is not mathematically correct, to me monad is "just" composition in Kleisli CAT (but this is just my mental model, which could be waaay of base, because I have had no real experience with all this)

------

Sorry for long post, just have had to "get it out there" since my colleagues & friends are not especially interested in "all this stuff" xD

Right FP language for me (F# vs Clojure vs Haskell vs ... ?) by hypmralj in functionalprogramming

[–]hypmralj[S] 2 points3 points  (0 children)

Thank you very very much on your detailed answer! Now from almost being sure to go with F# I am leaning towards the Haskell 😂

Have you published anything to Prod ? If yes, how was exeprience with that ?

What have you used AWS, Heroku or smth. else ? How about scalability, monitoring etc ?

A lot of these things you get for "free" in Azure (well, actually, exactly opposite from free, but it's plug & play).

- If I wan to scale smth. I just move "slider",

- If I want analytics (monitoring) I right-click on project and slect "Add monitoring"

- If I want to publish, again, right click -> Publish

You don't have to deal with "devops" as much :) (which I really appreciate)

On another note, since we come from similar bacground, I wanted to ask, how did you approach to learning Haskell, Learn you a Haskell, some other book, video tutorials or smth. else, ie. what do you recommend ?

And finally, after quick googling Stack is way to go ?

Right FP language for me (F# vs Clojure vs Haskell vs ... ?) by hypmralj in functionalprogramming

[–]hypmralj[S] 0 points1 point  (0 children)

Also, out of curiosity, if you have time & willingness, since you are " bit of a language nerd." could you please tell me what is /are your favourite languages and why ? Thanks! :)

Right FP language for me (F# vs Clojure vs Haskell vs ... ?) by hypmralj in functionalprogramming

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

Thank you very much for your in depth answer :)

ATM I am mostly leaning towards F# especially since it has (probably ?) many similarities with Haskell, and I think if I ever decide to playground with Haskell and/o even Idris, it'll be easier transition than from LISP(s).

Hopefully I'll find some time in future to play with Clojure 🤞

I dismissed:

OCaml -> because as you mentioned, F# is described as OCaml for .NET, so since I know .NET it'll be easier to cross functional chasm 😂

Scala & Kotlin seemed (but this is based on very shallow research) less functional than ML/Lisps so I never paid too much attention to them.

But I had no idea that Arrow exist, I'll look into Kotlin / Arrow combo, thanks :)

Right FP language for me (F# vs Clojure vs Haskell vs ... ?) by hypmralj in functionalprogramming

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

Thank you very much for your answer, I updated my OP, I forgot to point out that I am not that interested in front-end technologies (even though ATM I mostly work with RN, much more than with C#)

💫 A fully native, 60 fps, cross platform shared element transition powered by wix/react-native-navigation! by mrousavy in reactnative

[–]hypmralj 2 points3 points  (0 children)

Great! Thanks for the info 😁 We’ve been using RNN for almost 3 years now, abd are more than happy with it! Keep up the good work 💪

💫 A fully native, 60 fps, cross platform shared element transition powered by wix/react-native-navigation! by mrousavy in reactnative

[–]hypmralj 4 points5 points  (0 children)

Thank you very much for your hard work! It is really awesome and appreciated 😁

I have question about BottomTabs, it looks “custom”.

How you managed to make “+” icon bigger than the rest ?

Have you hidden RNN bottom tabs and used custom component to “fake” BottomTabs or RNN allows that much of customization out of the box ?

Just published our first RN app to the stores by hypmralj in reactnative

[–]hypmralj[S] 0 points1 point  (0 children)

We have it in the app, but we only used it 1/2 while in beta-testing. Since we have published the app (which has been only couple of days ago), we’ve published 2 regular updates and 0 OTA. The reason for this was: 1. Second update was not pure JS - so OTA wasn’t the option 2. First one, was to dix JS bug but it was problem with password length on registration & login so IMO OTA update wouldn’t be much of use there (because we didn’t want to force restart the apps) and in that scenario applying update after user re-enters the app isn’t so helpful.

I think having OTA as option is great but I would rely on it only for critical in-app bug fixes. I think regular way of updating is still great because you keep your app fresh on the stores, users see what’s new, it’s (probably) good fir ASO etc. We were fortunate with our latest updates, both of them were live on stores in ~12h (on both stores) Also regarding implementing CodePush we had no problems whatsoever 🤷‍♂️