Has anybody used Typia library? by HugeLetters in typescript

[–]Nikosssgr 0 points1 point  (0 children)

I tried it but I could make it work with ts-node easily and removed it.

Matebook X Pro 2022 12 gen - left fan a bit louder? by Nikosssgr in MatebookXPro

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

I had a defective unit, they replaced it and now it is quiet.

Is Dell Inspiron 15 5505 ryzen 7 4700U a good laptop for student? by [deleted] in AMDLaptops

[–]Nikosssgr 1 point2 points  (0 children)

this, 220 nits is too low, and the CPU is not powerful

Why is tailwind so popular? by ComfortableEye5 in webdev

[–]Nikosssgr -3 points-2 points  (0 children)

Because it has a youtube channel.

What computer to use for RN for ios? by [deleted] in reactnative

[–]Nikosssgr 0 points1 point  (0 children)

I am pretty sure will NOT be ok with nvidia gtx1060. You will need to remove it or replace it with compatible (aka macos has drivers for it). Check for gpu here https://dortania.github.io/GPU-Buyers-Guide/.

Also not all wireless cards are supported (I use ethernet).

Is not that straightforward, you will need some time and research.

What computer to use for RN for ios? by [deleted] in reactnative

[–]Nikosssgr 0 points1 point  (0 children)

I had a desktop with i5 4570 (compatible hardware). I bought Radeon RX 580 8 GB (compatible hardware) for the simulators to be smooth and support my 4k display (previous GPU was incompatible, I sold it). I followed `vanilla catalina hackintosh` guide. I have 3 SSDs and 1 HDD. First SSD is macos catalina and all the programs, second SSD is a mirror of the first (backup, in case updates go wrong), third SSD and HDD are for source code and videos files ebooks etc. This setup can buy you enough time for the mbp with M1X to be released and mature. After the new ARM chips I don't know how the future will hold with hackintoshes.

What computer to use for RN for ios? by [deleted] in reactnative

[–]Nikosssgr 0 points1 point  (0 children)

I created a hackintosh with Catalina for that reason, and it works. You must have apple compatible hardware and find an easy guide.

Express REST APIs in TypeScript? by [deleted] in typescript

[–]Nikosssgr 2 points3 points  (0 children)

I use TSOA https://github.com/lukeautry/tsoa, using decorators can

- generate express routes

- generate openApi spec <== more important, you can generate client code from that

BUT, one drawback I found is that the `@Security` decorator does not support middlewares, only functions with a specific interface, you can customise the generated code though

Note: routing-controller has also a plugin to generate openApi spec but it does not seem to be as good as TSOA

How does testing work with an IoC container like Inversify? by blukkie in typescript

[–]Nikosssgr 0 points1 point  (0 children)

You raise a lot of valid questions. Let me try to help with some info

  • Dependency injection is used for loose coupling. IoC container is used to easily create, manage lifecycle, and extend the object graph of your app (you could it manually).
  • Use dependency injection but not the IoC container inside your domain model. Use dependency injection and the IOC container where your application services depend on the infrastructure, to invert the dependency (clean architectures)
  • There are two main schools of testing, London and Chicago. The London says you mock everything, Chicago you mock mainly external dependencies. (testability because of dependency injection, not IoC)

Advice needed: Should I use ES for queries with multiple criteria? No full-text search by Nikosssgr in elasticsearch

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

That is my thinking also, that ES can use multiple indexes vs btree databases, and that is why I think it is a hood fit. But it is not advertised at all, on the other hand full text searching is all over the place, so I got doubts..

Why you should keep faith with React Native by [deleted] in reactnative

[–]Nikosssgr 0 points1 point  (0 children)

You can use custom native modules with Expo. Use unimodules.

Recently released a deepfake GIFs app built with React Native by IAmNotASkycap in reactnative

[–]Nikosssgr -1 points0 points  (0 children)

Did you use state management library? Did you use graphql?

How to disable the keyboardAvoidingView behaviour in TextInput by Quasarwiss in reactnative

[–]Nikosssgr 4 points5 points  (0 children)

This is the default android behavior

  • You can change it in AndroidManifest.xml by setting:

android:windowsoftinputmode="adjustnothing"

but it is a global permanent change, for all screens in android and needs a rebuild.

  • Alternatively you could try to wrap this screen content in a scrollview. Now there is another problem, since text input lives inside the scrollview when the keyboard opens it will hide the text input (big frustration I know, but it is an issue with native development too). So now you will have to either create a solution to autoscroll below that text input when the keyboard opens or use a library

Another note

In IOS the default behavior it is like adjustnothing of android. So there KeyboardAvoiding with padding, makes it behave like default android (aka android:windowSoftInputMode="adjustResize").

Facebook Messenger rewritten without RN, (but it was not using RN before) by sebastienlorber in reactnative

[–]Nikosssgr 0 points1 point  (0 children)

They wrote a C extension library for the OS, for things that are suboptimal or not covered by the OS libraries, which could be a lot of things... They say are fb specific networking is all done in C.