🔎
 Hire Remotely Forum Coliving NewCommunity Dating Chat Remote Jobs 7 Advertise 
  Your profile⚙️  Settings❤️  My wish list
🏡  Cities🇳🇱  Countries🌍  Community👋  Dating New🏜  Explore💬  Chat🗯  Forum
📸  Vote on photos💡  Request features🔮  Random place💸  Retirement (FIRE)🔌  Bali sea cable status🌤  Climate finder New📊  Travel trends🏡  Real estate overseas
👩‍💻 Remote jobs✈️  Airlines🗺  Neighborhoods🏝  Coworkations🏬  Coworking spaces">🔖  Incorporate🏡  Flexible-term housing🚑  Insurance
📣  Advertise🙌  Open Startup💁  Help
Javascript Chat

All Channels
Join Nomad List to chat
# _gear12min# colombia30min# vietnam34min# bali36min# _startups60min# taiwan1h# _jobs-talk2h# ___general3h# argentina3h# _politics3h# spain4h# dominican-republic4h# _design4h# _money4h# _flying4h# budapest5h# _overland-travel5h# _fitness6h# _freelance6h# _food6h# _relationships6h# _coders7h# _pets11h# united-states11h# south-africa11h# costa-rica13h# chiang-mai13h# _taxes-intl13h# italy13h# _outdoors14h# thailand15h# germany17h# australia18h# _housing21h# __roll-call22h# india22h# brazil22h# hong-kong22h# united-kingdom22h# guatemala1d# mexico1d# new-zealand1d# uruguay1d# _show-and-tell1d# london2d# paris2d# poland2d# georgia2d# sri-lanka2d# montenegro2d# _crypto2d# japan2d# _books2d# chile2d# portugal3d# france3d# indonesia3d# sweden3d# china3d# south-korea3d# ukraine3d# new-york-city3d# estonia4d# bulgaria4d# turkey4d# _productivity4d# _language-learning5d# canada5d# _insurance5d# israel5d# malaysia5d# europe6d# _taxes-us7d# _bargain-travel7d# philippines7d# asia7d# _marketing7d# greece7d# croatia7d# amsterdam8d# berlin8d# netherlands8d# denmark8d# _photography8d# lisbon8d# russia9d# _dating9d# singapore10d# ireland11d# serbia11d# myanmar11d# puerto-rico11d# romania11d# _music12d# kuala-lumpur13d# montreal13d# peru13d# iran14d# tel-aviv14d# austin14d# _ruby14d# miami14d# mauritius15d# medellin15d# __jobs15d# belgium15d# _legal17d# switzerland18d# moldova18d# austria18d# san-francisco19d# _javascript20d# prague22d# __general28d# __jobs-feed1mo# middle-east1mo# latin-america1mo# cyprus1mo# cuba1mo# north-korea2mo# iceland2mo# macedonia2mo# laos2mo# lithuania2mo# panama2mo# _wordpress2mo# las-palmas2mo# morocco3mo# cambodia3mo# egypt3mo# ecuador3mo# south-america3mo# bangkok3mo# nepal3mo# seattle3mo# paraguay3mo# qatar3mo# toronto3mo# __forum3mo# __support3mo
hidden for non-members3mo
a lot has changed since 2 years ago in TS, specially React support
hidden for non-members3mo
Yeah i wrote a react app yesterday using TS
hidden for non-members3mo
it was nice
hidden for non-members3mo
cpubtwoxxqcrnqdnu and then you blacked out
hidden for non-members3mo
I've been enjoying TS + React now that it's properly setup. I'm just using it for linting tho, still compiling with Babel.
hidden for non-members3mo
yeah, played that `any` game and got bored, I'll get back on TS with AWS CDK and maybe this github.com/sam-goodwin/punchcard
hidden for non-members3mo
I've got some eslint rules that complain if they hit an `any`
hidden for non-members3mo
Which means I have to remember to search for `eslint-disable-line` sometime later on 😅
hidden for non-members3mo
logdqbrpbo I tipped you off on `aws-cdk` and you tipped me off on `punchcard`. Looks amazing!
hidden for non-members3mo
ptmrcdbl don't use `any`, better to use `unknown`.
hidden for non-members3mo
Speaking of TypeScript, I've been enjoying using `runtypes` lately.

github.com/pelotom/runtypes
hidden for non-members3mo
Great for API contracts.
hidden for non-members3mo
It it similar to `io-ts` module, but feels a bit more ergonomic.
hidden for non-members3mo
quick question
hidden for non-members3mo
potuuzgyrysgsahdh not very quick., it's been 20 minutes!
hidden for non-members3mo
oh, sorry
hidden for non-members3mo
😜
hidden for non-members3mo
haha, I just realized it was confused by what the code was trying to do
hidden for non-members3mo
was the code I was looking at
hidden for non-members3mo
too much going on there on one line lol
hidden for non-members3mo
yeah lol
hidden for non-members3mo
I'm going through a very old codebase
hidden for non-members3mo
for a new client
hidden for non-members3mo
templateData is an object with keys taht just contain booleans, that tell you what data the template uses
hidden for non-members3mo
it isn't actually the template data
hidden for non-members3mo
could be simplified to `Object.entries(data.templateData).filter(([k,v]) => v).map(([k,v]) => v)` I believe
hidden for non-members3mo
there is a lot of dependency on underscore in here that isn't needed since it's not 2015 any more
hidden for non-members3mo
a good case for not sacrificing code legibility for the sake of being clever
hidden for non-members3mo
haha, i guess I don't consider that line to be clever or illegible
hidden for non-members3mo
it just seems simple and straightforward. an array, a filter, and a map
hidden for non-members3mo
I don't think he was saying your version wasn't legible
hidden for non-members3mo
The old version maybe
hidden for non-members3mo
I mean my version is definitely terse
hidden for non-members3mo
I was speaking of the original line - yours is much more clear xarqsttuwogdcmyoh :)
hidden for non-members3mo
what is the input values and the result?
isnt ```Object.values(data.templateData)``` the same as ```Object.entries(data.templateData).filter(([k,v]) => v)```
hidden for non-members3mo
hidden for non-members3mo
the same as
hidden for non-members3mo
it's an object of field names containing booleans
hidden for non-members3mo
only want the field names if the value is true
hidden for non-members3mo
oh
hidden for non-members3mo
got it
hidden for non-members3mo
thankfully i get to throw that code away 😄
hidden for non-members3mo
hey folks.. do you use npm or yarn.. or pnpm?
hidden for non-members2mo
I am using whatever is used in the project.

If it is new project, yarn then.
hidden for non-members2mo
yarn as my most projects are monorepos
hidden for non-members2mo
npm
hidden for non-members2mo
yarn
hidden for non-members2mo
If it's an existing project and they don't use yarn then just check in a yarn.lock file and act smug about it. That will teach them to use yarn next time
hidden for non-members2mo
What are the benefits of yarn? I know it had superior features to npm, notably speed. But my understanding is that npm had caught up to yarn and at this point it's just a matter of personal preference. Am I missing out? 😃
hidden for non-members2mo
I can't want for JSPMM (Javascript Package Manager Manager)
hidden for non-members2mo
so we can manager which package manager we want
hidden for non-members2mo
and then automatically change when a new one comes out
hidden for non-members2mo
of course eventually we'll need a Javascript Package Manager Manager Manager
hidden for non-members2mo
for when a better javascript package manager manager platform is written
hidden for non-members2mo
*can't wait for, bleh too tired
hidden for non-members2mo
😂
hidden for non-members2mo
The big difference between yarn and npm is that npm-lock is a json-file whereas yarn uses a skinnier format - as such it's easier to read yarn changes in git commits
hidden for non-members1mo
Could anyone point me which tools/where to look to create this type of animation? dribbble.com/shots/7273832-404-Page-My-Folio-19
hidden for non-members1mo
hidden for non-members21d
Anyone learning Svelte? Any good online resources that you're going through to learn it?
hidden for non-members21d
qredhmqasdok their tutorial page is interactive and you can play around with a REPL as well
hidden for non-members21d
hidden for non-members21d
Yeah...that's so good. Really nice to play around with.
hidden for non-members21d
I kinda read their tutorial + API docs and felt really good about starting something with it
hidden for non-members21d
wanted to wait for official TS support, but it's taking some time
hidden for non-members21d
I'll try Svelte when they get native TyprScript support. 🙂
hidden for non-members21d
But, even more so, I want to try web components on the next project.
hidden for non-members21d
I.e. native web components, without any framework.
hidden for non-members21d
I already played with lit a bit and it seems to work fine.
hidden for non-members21d
ikbsczqt doesn't the amount of boilerplate throw you off a bit?
hidden for non-members21d
a very recent talk from the creator of svelte that touches on web components >https://www.youtube.com/watch?v=BzX4aTRPzno>
hidden for non-members21d
From 24 min mark the future and environment topics were very interesting
hidden for non-members20d
aiinvxsjoxuijjt it might .. i need to try it on a pet project. so far I've only dabbled with some "hello world" type stuff
hidden for non-members20d
He basically described single file Vue components. They also include everything in one file.
hidden for non-members20d
i'm really digging the phoenix live view stuff, it does an efficient diff of changes (in json format) and sends it to the frontend for updates.. so most of the business logic can stay on the server side
hidden for non-members20d
doesn't eliminate javascript for sure, but hopefully reduces the duplication of business logic
hidden for non-members20d
that's elixir/phoenix
hidden for non-members20d
the problem i sort of have with javascript is that it's kind of an all or nothing affair.. it's hard to justify not doing a javascript backend when you commit to a proper full on SPA thing.. because why wouldn't you want a full isometric codebase, same code for business logic on backend and frontend etc?
hidden for non-members20d
i don't have a problem with javascript itself per se, esp since es6 is so ruby-like to me (all that coffeescript influence probably)
×
USD ─ $
°F

by levelsio

✨ To see all results
Sign Up
Log In