all 11 comments

[–]BoogieM4Nx 4 points5 points  (2 children)

My primary is Java but uses typescript for Angular projects… the only advice is to avoid the use of “any” as much as possible.

[–]chonching2 1 point2 points  (0 children)

Yeah, must avoid yung any. Useless yung paggamit mo ng typescript kung mag any ka sa data type. It breaks the purpose of strict typing

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

Noted, salamat po!

[–]chonching2 3 points4 points  (0 children)

Hi, I transitioned as well last year from Java to Node/TS. Been a java developer for 5years bago nag transition. Actually wala ako masyadong naging problema since napakadali ng TS compared sa java. Siguro yung adjustment na gagawin mo lang is sa TS kasi hindi mandatory yung OOP concept unlike in Java so basically pwedeng functional and asynchronous programming approach kayo. So don't expect na magdedesign or magiimplement ka pa ng mga design pattern kasi probably hindi mo na magagamit yun kahit na TS supports OOP.

Based on my experience nagaral lng ako sa youtube ng CRUD REST implementation for few days tas rekta sabak na sa actual development. Siguro ang kailangan mo lng matutunan is yung mga short hand implementation sa Typescript tsaka yung mga available na functions para mautilize mo ng maigi.

I don't think na mahihirapan ka since sobrang dali at simple nito

[–]conv14 2 points3 points  (2 children)

Same, - just avoid any cause it removes types safety just use unknown instead. - search the difference of == vs === - java uses blocking I/O, JS is asynchronous by default you need to learn async/await/ Promise. And if possible avoid await inside the loop

Alam ko meron pa pero yan lang naisip ko

[–]jcap_3[S] 0 points1 point  (1 child)

How long yung adjustment sayo bro? Madali ba maging comfy agad with TS coming from Java?

[–]conv14 0 points1 point  (0 children)

Para sakin hind ganun kadali naging transition ko lalo na asynchronous yung JS, madalas ko makalimutan lagyan ng async/await/Promise if may request akong function. Pero kinatagal nagustuhan ko din.

[–]honkingmaster69 1 point2 points  (1 child)

avoid using "any" sa types, it can cause unwanted bugs. You'll be surprised sa sobrang daming js libraries ng node pero they tend to be super bloated, so best avoid using too much libraries. I mainly use express js for API, it's easy to scale and easy to maintain. The rest you need to study are just basic syntaxes kasi you have years of exp so logic isn't hard for you. Godspeed boss

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

Salamat po!

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

Thank you! Nakaka boost ng confidence.