Remote Jobs  Remote Insurance Chat Community FAQ Dating Meetups Hire Remotely 
  Homepageโš™๏ธ  Settings๐ŸŒ—  Toggle dark mode โค๏ธ  Your favorites
๐Ÿœ  Explore๐Ÿก  Cities๐Ÿ‡ณ๐Ÿ‡ฑ  Countries๐ŸŒ  Continents๐ŸŽซ  Community๐Ÿธ  Meetups๐Ÿ‘‹  Dating๐Ÿ’ฌ  Chat๐Ÿ—ฏ  Forum๐Ÿ’  FAQ New๐Ÿ”“  Open Startup
๐Ÿ“ธ  Vote on photos๐Ÿ”ฎ  Show random place๐Ÿ’ธ  FIRE calculator๐Ÿ”Œ  Bali sea cable status๐ŸŒค  Climate finder๐Ÿ“Š  Fastest growing New๐Ÿก  Real estate overseasโ›„๏ธ Escape the winter๐Ÿฆ  COVID-19 data๐Ÿ“ฃ  Advertise
๐Ÿ‘ฉโ€๐Ÿ’ป  Remote jobsโœˆ๏ธ  Airlines New๐Ÿ—บ  Neighborhoods๐Ÿ  Coworkations๐Ÿฌ  Coworking spaces๐Ÿ”–  Incorporate๐Ÿš‘  Nomad Insurance
Coders Chat

All Channels
Join Nomad List to chat
# ___general17min# _politics19min# mexico2h# united-states2h# europe3h# _covid195h# argentina5h# _bargain-travel5h# _money6h# _fitness6h# _crypto7h# _flying8h# _pets9h# croatia9h# _freelance10h# italy11h# _gear11h# bali12h# _startups12h# _coders13h# thailand13h# _food14h# taiwan17h# __roll-call18h# cambodia18h# _taxes-us1d# peru1d# _jobs-talk1d# spain1d# chiang-mai1d# _show-and-tell1d# lisbon2d# portugal2d# medellin2d# _relationships2d# paris2d# _design2d# berlin3d# vietnam3d# bulgaria3d# montreal3d# romania4d# south-korea4d# budapest4d# _ruby5d# germany5d# canada5d# japan5d# chile5d# philippines6d# _housing6d# _photography6d# hong-kong6d# _music7d# ukraine7d# _books8d# india8d# _insurance8d# _productivity9d# ecuador11d# malaysia11d# australia11d# serbia12d# united-kingdom12d# _outdoors12d# slovenia14d# netherlands15d# singapore15d# prague16d# georgia17d# _marketing17d# denmark20d# new-zealand20d# egypt21d# costa-rica21d# _javascript21d# austin22d# amsterdam23d# brazil23d# china27d# miami27d# belgium29d# london29d# _legal29d# _overland-travel30d# new-york-city1mo# colombia1mo# russia1mo# switzerland1mo# south-africa1mo# greece1mo# sweden2mo# toronto2mo# _language-learning2mo# las-palmas2mo# panama2mo# venezuela2mo# _taxes-intl2mo# indonesia2mo# san-francisco2mo# turkey2mo# middle-east2mo# myanmar2mo# kuala-lumpur3mo# poland3mo# laos3mo# tel-aviv3mo# uruguay3mo# estonia3mo# _lgbt3mo
rxzdhfzbcvcyiqc2d
svjkvphxzatzrwdvp Yeah I've given up on the idea that one language/ecosystem can fully satisfy me. If something I need only has a library available on NPM I'd rather use Node than port the whole thing over by hand
cuukttarrrxblsou2d
I have a mostly negative opinion of dynamic languages. The flexibility of dynamic languages makes the easy stuff easier, but the hard stuff is generally just as hard or sometimes even harder.
hspdvubopbhznfq2d
Probably wouldn't want to port python specific data science tooling over to Rust just because I like the language better either, that sounds like a sisyphean task
dhxpjqxpceonktga2d
I think Rust is the future because it manages to take the _good_ aspects of both sides of the fence and merges them into this weird hybrid.
flxqezktmhvvwwwt2d
Itโ€™s fairly terse and flexible, like a dynamic language. Yet it has the safety and performance of type safe languages.
ykngjribrashwlxa2d
It _feels_ like it has GC, but it doesnโ€™t, because itโ€™s _magic_. ๐Ÿ˜…
ftavxgk2d
I think it will, and should, take over from C++, but I don't know if it'll ever be as general as something like a JVM language (or Node).
nraxxnmpabgvfbba2d
I am at a point now that these conversations only matter to me from a cost perspective. As in lifetime cost + development cost. If a system might be technically superior but the development cost is too high, that would make me nervous. I think a major advantage of building stuff in Java is that maintainability is not going to be an issue.
gvdohgsmtkgtzait2d
Agreed. I definitely understand the maintenance advantage of deeply structural languages like Java and C#.
vsmvriipcxqdqwbj2d
Not _entirely_ sure why Java is so much more popular than C# when theyโ€™re so similar. In my opinion C# is a better designed language too. I guess just first-mover advantage again. ๐Ÿคท
izegpfmmindqndwg2d
The general structural design of both is quite nice though. Works great for large teams to build isolated components that can be fairly easily composed into a larger project.
qhcxfwytqqrzbron2d
C/C++ is an absolute _trash-fire_ for composability. ๐Ÿ˜ฌ
gqzmvdlenffxyjx2d
If every developer were like me no new language can every hold foot, because I'd be too lazy to port the library I need over to the new system
jbtbllbymeltxfy2d
hopefully someone actually enjoys implementing a HTTP client from scratch
apppkbqzfynegfvs2d
If someone wants to reinvent the wheel enough to make a whole new _language_ Iโ€™m sure thereโ€™s enough desire to write a new HTTP client too. ๐Ÿคท
nhzwakkkmpidrqz2d
What's the latest language created? Ballerina?
osmlkbtcauodcen2d
githvemorgejlzq2d
extremely minimalistic
dxecbgbxekvoppx2d
No kidding. Cool though
uurvkfqfkfk2d
rbifztbfkzgkcjsh I can't tell if you're joking or not re. ballerina
hnvfenjpyyu2d
techies and naming things always makes me laugh
vhxjaknsjwiudmu2d
Surprisingly it is real ๐Ÿ˜‚ I think it's primarily for cloud-based stuff
fsndhsqsotlkbms2d
iytpnxxkpgv2d
of course it is
njfkzwchwdb2d
I think we've just run out of names for things
uxpntendintlkun2d
there's a drinking game guessing npm module names I think
xacssfifxojagjh2d
nlqqekbanybezdz2d
oh, someone even made a website for it
hjrdti2d
What's C#'s usage outside Windows these days? (I know it's possible, but in practice) Unix servers drove a lot of popularity for Java in the beginning
jewoutositdwisbg2d
Not too sure about servers, but itโ€™s hugely popular in game dev with Unity probably being the biggest user.
ydfaqvqnskrqjeqp2d
And you can build mobile apps with it.
ovujgmlsbbeegxbt2d
Xamarin runs on iOS, macOS and Android. docs.microsoft.com/en-ca/xamarin/
tqyyub2d
These days perhaps, but Ruby became an enterprise language with Github, Instagram and Shopify... now no-code is taking the place of cheap devs
cxeust2d
Yes, it's possible, but still think that use is pretty small compared to React Native (which Microsoft itself seems to be focusing on too)
acpiqlkhjjsrjiku2d
wasn't it RoR that drove Ruby popularity?
zwxapt2d
Swift is also similar to Rust in many ways, no GC etc. but has had a hard time reaching popularity outside Mac/ios
wrsjgnsvqhcjsjuu2d
Yep. Which seems odd to me, because C# is _sooo_ much better than React Native. ๐Ÿ˜•
gybzmvelgwtyhvsl2d
Same sentiment about Swift. Itโ€™s cross-platform too, but not gaining much traction outside macOS/iOS because people seem to think of it as an Apple-specific thing just like how they think of C# as a Microsoft-specific thing.
qyyffz2d
That too, but it was also appealing to founders thinking about how to minimize costs
cyhxlt2d
TypeScript is really appealing for this, as you can do mobile, web frontend, and backend in one language
qqupanxcvxbylqqa2d
Ya I have started using TypeScript and my main project is maybe 30-40% converted. I never realized the amount of anxiety I had while working in untyped vanilla javascript. Whenever I have to back to my vanilla base or stuff I have not converted yet, I feel like I am walking on egg shells and/or doing neurosurgery.
jjwmnl2d
Yes, I try to avoid JS or C because of the quality problems that tend to result
wvqgcpzlj2d
I never realized the amount of anxiety I had while working in untyped vanilla javascript.

^^

Whenever I hear someone slam types as being too much work to specify, I think of this sentiment and there is just no real way to share it except to say it but dissenters wonโ€™t hear it ๐Ÿ˜‚ I think of it as someone slamming unit tests as being too much work to write
tpgaybflfqxkpcvb2d
100%. And I think itโ€™s important to understand that the lack of threads doesnโ€™t mean you canโ€™t make use of all your cores, it just means you have to make use of them in a more controlled environment which is not going to let you shoot yourself in the foot. ๐Ÿ˜ฌ
bttewqlqk2d
Yea exactly. A clear OS-level partitioning of your memory space. Or just deploy your app as 30,000 micro vms ๐Ÿคทโ€โ™‚๏ธ
idwntikkcmhixjxy2d
With workers, you can easily use all your system resources, and you can transfer memory between workers with zero cost. It transfers _ownership_ though, much like Rust does with mutable references, so you canโ€™t mess things up.
rmnwhojfszonzzgy2d
It literally just moves the GC root to another context, so it doesnโ€™t have to do anything other than adjust a pointer.
ukbwmtsba2d
Hmm gotcha
zisiexvbvirwzeza2d
Shared immutable state can be useful for complex and process-intensive stuff like machine learning.
czpzrpavtsexeqkp2d
But in 99% of cases, you donโ€™t need it.
uuyaovdrc2d
Definitely just accidentally edited a message instead of posting a new one
fphbbzjosorfhnwd2d
So it makes sense to mostly write in a language that protects you from bad decisions and then drop to the lower-level stuff only when you need it.
itydywtyu2d
Damn this mutable state
pqcwbzozkkqveyka2d
Haha. ๐Ÿ˜†
npdksgehhhwmcxmm2d
It's because they don't realize stupid stuff they deal with normally doesn't happen when working with typed languages.

So mixing types and typos are the obvious one, but here is a less obvious one when working with vanilla JS, duplicate variable/function definitions.
edfbgsgsxhwcjkgt2d
Rust has done a great job of being embeddable as native modules for many dynamic environments like Node.js, Ruby, and Python. Itโ€™s also pushing hard on the WASM future. ๐Ÿ˜Ž
wbltxratdtqnxrgr2d
You donโ€™t have to go all-in on Rust, you can just pick it up when you need it.
jghlrmruhxdlpkwb2d
Thatโ€™s a _huge_ downside of Golang to me--itโ€™s all-in or not at all. ๐Ÿ˜ฌ
xqkjnhxsxwkfs2d
Holyyy shit. I just uploaded a build, and got an email about deprecated API usage.

With specific Apis and a link to the new API
qdmbqqxgubhym2d
Apple. Good job. Finally.

Letting us know in advance, rather than after the fact muddling though SO
cndseimhgvsuvjhf2d
I am fortunate that I have never really had to drop to a lower level. I feel like the majority of coding today doesn't really require it.
edcrxyyhbghcdqvf2d
Yep. Every day coding becomes more and more abstract and the need for low-level programming slowly vanishes. Even when doing traditionally low-level things, thereโ€™s tech emerging to abstract those problems. Like thereโ€™s LLVM handling all the complexities of compiling code, so you can make your own LLVM-based language with relatively little effort. (Which is where the current proliferation of languages is largely coming from)
qmrvuuxjrkkkelh2d
Anyone care to give me a hand with a sql server issue?
naqmznrpwrkvxagi2d
Not it. ๐Ÿ˜†
kkfrougumffhkhv2d
I imagine it is somewhat easy I seem to be spinning my wheels a bit. It's a question about using sum on a column of time stamps but no date. just hours, minutes, and seconds
zpcyfykqemhmjpr2d
convert to time then sum it up?
tvngriddrtpfyvk2d
Looked it up - don't think that would work
zwxzboztthdbauf2d
hmm...let me take a look
khcuddvkvfemfet2d
gyblnvvccjdojjcc thanks that got me pointed in the right direction
yayxdlbrxaewd2d
eoumwlmlnegyze The security contents of the iOS 13.5 and 13.5.1 is out of this world
jyrqbfxqgwcuo2d
Same with Mac 10.15.5
alcbxckknqtcg2d
Crazy holes have been patched
ezeslbdexonkwrz1d
Ok, another sql โ“ what's the best way to convert seconds to a timestamp? I've tried DATEADD but that gets me the timestamp along with the date which I don't need. I realize I can 'trim' the date with a substring but it seems like a overly complicated way. Any suggestions?
vibfcfrmxfu1d
what timestamp are you trying to get if without the date?
wweieskbyfacwlf1d
```SELECT DATEADD(ms, [column_name] 1000, 0)```
rxbtheklnbfsqrc1d
โ˜๏ธ assuming SQL Server still
wpemtselksfoetj1d
Oh, just timestamp? You'd probably want to convert it to `TIME`.
```SELECT convert(time, DATEADD(ms, [column_name] 1000, 0));```
If you don't the extra decimal places at the end, you can adjust `TIME` to have less decimals (using 2 as an example below):
```SELECT convert(time(2), DATEADD(ms, [column_name] 1000, 0));```
nkrxnqnosivxpfk1d
Nice that works. Thanks!
oybnvzsnwlg1d
time vs timestamp can definitely be confusing with mssql. "timestamp" is for stuff like row versioning. The naming convention was terrible, so they replaced timestamp with rowversion in sql server 2005.
xpubfhogqsdux1d
Yeah, but I'm more happy that Apple is finally using the tools they already have in place and alerting developers of upcoming deprecation

Before, they were like "fuck you, we won't take your app. Here's a random number and you go figure out why and upload another build"
tihvvvynxb1d
Anyone here really familiar with Joi validation library?
rufmcndqmqvlf24h
Yes
cpwepphoqlylm24h
But I kind of wish I wasn't
uukmpkjiph23h
lol, i feel yaโ€ฆ
cqibsegdrx23h
Iโ€™m validating an array of objects, and for some reason joi is stripping an entire object in the array when some value doesnโ€™t validate. And it seems to only do it when I have `convert true`
ysgvbgwweb23h
Having trouble replicating it in these online rule testers because they donโ€™t let me change convert true, stripUnknown true, etc
xlnehktldfeqb23h
kbdiojrhpbf there's a bool config option for that, I think stripUnknown sounds right
fwmselvkdmknb23h
Just forget the web testers then and npm install it locally, run against a js scratch file
pcssthumvh23h
yeah, was being lazy when I sent the message ๐Ÿ˜† planning on doing a clean test tomorrow
njdgwhmlsggcv23h
It might also depend on what kind of schema you are using
lsqxvseyihvsr23h
For example, json schema has additionalProperties
iznfgcvdvu23h
```// schema
Joi.object({
title Joi.string(),
myOptions Joi.array().items(
Joi.object({
myId Joi.string().max(100).optional(),
fieldOne Joi.number().max(999999).precision(2).optional(),
fieldTwo Joi.number().max(999999).precision(2).optional(),
fieldThree Joi.number().max(999999).precision(2).optional(),
fieldFour Joi.number().max(999999).precision(2).optional(),
})
).optional()
})

// data object
{
title "abc",
myOptions [
{
myId '1',
fieldOne '5',
fieldTwo '',
fieldThree '',
fieldFour 0
}
]
}```
hjzaqqvwxdvrn23h
And a few other keywords like it
psqcwssozx23h
basically this w/ stripUnkown true and convert true
zmwavorfkw23h
I would expect it to either throw an error or convert the field1/2/3/4 to numbers
yokjclzhtv23h
but instead it return gives me `myOptions []`
utyyrspbjhwqi23h
I've always used a different flavor so I'm not familiar enough with that snippet to spot a problem
ooxvhsgrrg23h
np
njlfdcuokpkuht13h
For anyone looking for a project to work on and wanting to contribute twitter.com/Kilo_Loco/status/1267712187025350657?s=2
โ€นโ€บ
×
USD โ”€ $
ยฐF
โœจ To see all results
Join Nomad List
Log In
FeedbackIf you find a bug, or have feedback, please write it here. See the FAQ for answers to most questions.Thanks for the message! We will get back to you soon.
Send feedback