๐Ÿ”Ž
 Remote Jobs 8 Chat Travel Insurance Community Dating Hire Remotely 
  Home  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โ›„๏ธ Escape the Winter๐Ÿฆ  Corona data
๐Ÿ‘ฉโ€๐Ÿ’ป  Remote jobsโœˆ๏ธ  Airlines๐Ÿ—บ  Neighborhoods๐Ÿ  Coworkations๐Ÿฌ  Coworking spaces๐Ÿ”–  Incorporate๐Ÿš‘  Nomad Insurance
๐Ÿ“ฃ  Advertise๐Ÿ™Œ  Open Startup๐Ÿ’  Help
Coders Chat

All Channels
Join Nomad List to chat
# _coders1min# mexico8min# _outdoors15min# chile16min# _covid1957min# ___general1h# _overland-travel1h# _pets2h# _food2h# russia2h# _relationships2h# _jobs-talk3h# _gear3h# japan4h# vietnam4h# thailand4h# taiwan4h# _insurance4h# chiang-mai5h# peru5h# _politics6h# _flying6h# bali6h# _freelance7h# lisbon8h# malaysia10h# china10h# _productivity11h# sweden12h# _housing12h# __roll-call13h# venezuela16h# montreal20h# _taxes-us23h# _fitness1d# bulgaria1d# _crypto1d# argentina1d# india1d# _money1d# romania2d# new-zealand2d# _books2d# _startups2d# _photography2d# colombia2d# spain2d# _taxes-intl3d# canada3d# singapore4d# greece4d# toronto4d# philippines4d# switzerland5d# united-states5d# budapest5d# indonesia6d# portugal6d# brazil6d# _bargain-travel6d# ukraine6d# berlin7d# germany7d# south-africa7d# italy7d# _show-and-tell7d# _javascript8d# australia8d# georgia8d# san-francisco8d# medellin9d# _language-learning10d# _music11d# london11d# turkey12d# middle-east12d# _legal13d# new-york-city13d# myanmar13d# las-palmas15d# kuala-lumpur17d# panama17d# poland18d# costa-rica18d# south-korea18d# paris18d# united-kingdom19d# cambodia19d# hong-kong19d# serbia20d# europe20d# _design21d# egypt21d# austin24d# prague24d# croatia25d# _marketing25d# laos27d# tel-aviv28d# uruguay28d# estonia29d# _lgbt1mo# _podcasts1mo# netherlands1mo# puerto-rico1mo# africa1mo# ireland1mo# sri-lanka1mo# france1mo# amsterdam1mo# _parents1mo# israel1mo# guatemala1mo# morocco2mo# _ruby2mo# miami2mo# nicaragua2mo# denmark2mo# slovakia2mo# _corona2mo# cuba2mo# north-korea2mo# kazakhstan2mo# malta2mo# qatar2mo# lithuania2mo# ecuador2mo# dominican-republic3mo# slovenia3mo# cyprus3mo
pjtjkp2d
And again, TOR private browsing is super cool
vlmvougfx2d
I'm an interviewer there if you have any questions
ovxaiuzvykzxxxjik2d
Yeah in which case just follow the react router auth example
nelo1d
wow need to look into this as well
pgcueggsnplenyt1d
gknwlzwzko what are your requirements for ip addresses?
vkhmthjgpcrzbtt1d
How did I not hear about this working in Node?
jtvhngjjnpdrsgx1d
oh, it only works in TypeScript
uwkzfaflydafwja1d
I should. I'm halfway through a React + Firebase Authentication tutorial at this point, but if that doesn't work out then I'll revert back to the react router auth example for the time being. I just really hate authentication.
lfzbsosymtvamoi1d
First time I did authentication was with auth0 so maybe that just left a bad taste in my mouth
nucuxdj1d
As a Firefox user this saddens me. I like to have at least two competing render engines.
axunfru1d
Why not use the actual Tor browser?
mubgjb1d
Then Iโ€™d have to open another browser vs just a quick shortcut
obxkuwh1d
So you use Tor routing ad hoc?
teoich1d
I donโ€™t always use tor, just when I do my ninja hacker 1337 stuff๏ฟผ๏ฟผ
vumogln1d
Fair enough. I just use Tor browser itself for that.
But then again, I bought a 64Gb RAM laptop ๐Ÿ˜†
maagdkj1d
No, it's JavaScript, but not yet well supported.
brynqvfe1d
How do you all answer the job application question "How would you make our website better" when the company's website is excellent and you can't really find anything other than subjective design preferences that you'd change?
fwwsvqbbtespgfc1d
A/B tests to see if the subjective design preferences are more effective than the current state?
scqrrugx1d
no, it's a trick question
xriljids1d
it's not a technical question
ijqswyic1d
๐Ÿ˜‰
maxvmtafxa1d
Well, I wouldnโ€™t want to make changes unless I had data to back it up. So first I would ask if there are any areas of the website that seem to be underperforming compared to expectations. Then Iโ€™d ensure that thereโ€™s proper tracking going on so we can understand how the customers uses the website. From there we can possibly find clues about what needs to improve.
rcyxgndl1d
They're asking "How would you make our website better? Please, we're begging you.. we've squeezed our brains dry and we're fresh out of juice. Please save us!"
iaegahgm1d
szuxexunw maybe flip the question around.. how would you make their website worse?
rhsofvvl1d
qsvthguugpi Good point. I think maybe the best answer isn't about a specific thing I'd change as much as the "how" I would approach the process.
oggjrkvfry1d
If thatโ€™s not acceptable then the company is probably fishing for ideas and has no intention of hiring anyone. Something that is _very_ common in the tech industry.
wybrcglqiadpysh1d
Didn't think about it that way
fhuqnlwn1d
True, but in this case, the company really has their shit together and I don't think they're fishing for ideas.
fgdqkemqrh1d
> Instead of giving away specific ideas, you can instead speak about the process by which you would execute ideas. Keep the conversation in a more general, speculative realm.
dkmagfcuvk1d
Thereโ€™s tons of articles online talking about how common it is for companies to use interviews as a way to gather ideas and gauge the market.
trstsmtkpv1d
So yeah, if itโ€™s a legit company then talking about the process is what they want not specific ideas.
ixkoewhioliasjcz1d
I just realized the phrase "put in a pin it for now" is actually referencing a grenade.
tscqxxlr1d
Hmm, I always thought it was referencing a pin board....
rnrrwnzv1d
Like, where you pin up ideas that you want to be reminded of....
twlksivw1d
It sounds like more of an asshole thing to say if it's referencing a grenade
posfafop1d
A pin board is like, "I like that idea, let's come back to it", a grenade is like, "Let's not even discuss that idea"
gpfcuh1d
gpsvxfpwa You didn't specify if the website is somehow related to the position you apply for in the company. If it's not related, you can also try to check the website from the perf & security POV - gtmetrix, google pagespeed, qualys ssl labs to check for the TLS cert tuning, open web console - search for any errors in the console. Look from the privacy POV - is it sending requests to lot of 3rd parties - use requestmap webperf tools, etc...
jjwbauon1d
Yeah, I checked all that. Everything is solid from that standpoint.
naloih24h
Any other GraphQL fans? After having created a bunch of prototypes in various languages and companies, Iโ€™m finally building one that will see production. This time in Python with Graphene. Why do we still do REST? ๐Ÿ˜„
crznftxy23h
Because it's faster?
rzmbihcd23h
Jokes, I like GQL too
grxnlihp23h
Actually, looking into this a bit more, this is not entirely true and mostly due to Apollo. Both can be performant but probably still pale in comparison to gRPC
kddqiyuuwhvnvquku17h
this is some lovely redux code here! thought Iโ€™d share

```const searchMailouts = (e, MailOuts) => {
const mailOutsFromSearch =
(e &&
e.target.value.length > 0 &&
MailOuts.filter(
m =>
e.target.value &&
normalizeForSearch(m.name).includes(
normalizeForSearch(e.target.value)
)
)) ||
MailOuts;
return dispatch({
type MAILOUTS.SET_MAILOUTS_FROM_SEARCH,
mailOutsFromSearch,
searchTerm e.target.value
});
};```
sjzjrvkqwgtirolpf17h
yeah just replace the auth class they have in react-router example with auth0 or firebase
egxgpupzzimpupymb17h
equivalent function for `isLoggedIn()`
ijdvxzikhm17h
That's not too bad. I have one place where I was forced to write something like this, but longer in 1 expression.
jljnjaipld17h
```CreateMap<AnalysisViewModel, Analysis>()
.ReverseMap()
.ForMember(x => x.CalibrationImage,
opt => opt.MapFrom(x => x.CalibrationImageId != null ? x.CalibrationImage null))
// This has to be simple statement so it can be converted to SQL.
.ForMember(t => t.Status, opt => opt.MapFrom(s =>
s.Images.All(i => i.Status == ImageStatus.NotProcessed)
? AnalysisStatus.Queued
s.Images.Any(
i => i.Status == ImageStatus.Rejected)
? AnalysisStatus.Rejected
s.IsFinalized == false
? AnalysisStatus.Started
s.Images.Any(i => i.Objects
.Any(
o => o.Type !=
ImageObjectType
.Unknown &&
o.Type !=
ImageObjectType
.NotAnEgg))
? AnalysisStatus.Positive
AnalysisStatus.Negative))
.ForMember(a => a.EggCount, opt => opt.MapFrom(s =>
s.Images.SelectMany(i => i.Objects)
.GroupBy(o => o.Type)
.Select(
g => new EggCountPair {Type = g.Key, Count = g.Count()})));```
qgaufdhprx17h
Bonus points because auto-formatter goes insane.
ndweopikbezuwkbvt17h
yeah jesus that code is disgusting
ybbcsswaieogyrokh17h
๐Ÿ˜„
bxdosujksk17h
In your case there is no reason not to expand it a bit, in my case I just blame the stupid ORM.
pxhptzxirnvyknqmq17h
honestly why is any of this a good idea?!
yrrzppzajxfimrnti17h
yeah fuck ORMS
kcbfqdmhqzloynata17h
waste of time
aujfkaowfp17h
This ORM converts that code to SQL.
niqxmagbhnetrctpo17h
thats what all ORMS do
hmtqwhjpjq17h
Normally they have their own API, but in EF case it's mix of API and traversing the LINQ/code tree.
dfrhqzcgofybyyywg17h
lovely just lovely
bzftperjgo17h
It's the worst example I have because it's select into mapped object (so it only selects the data I need and transforms it in DB) and the condition was relatively complex.
extdsytsmp17h
Normally it's quite straightforward. Not that I'm a huge fan of ORMs.
iovjzhmdshhznysfm17h
why are they a good ideA?
bxrohejpsiimdzjml17h
I think they have been designed to keep people in jobs
lnmglfkeiw17h
Easy to combine logic. Enforce certain style. Can switch dbs easily. Hadn't used ORM for long time until this project.
qyvatyjyyfgzq17h
teqzwzpvsbd I've honestly been avoiding EF and just using the SqlDataReader with custom SQL
fijpbuerkuapp17h
I find its a wash with the amount of work, BUT it is easier to migrate/update models and you can make really concise optimized queries, joining in just how you need
gebfqglfshlru17h
I ain't afraid no copy n paste ๐Ÿคฃ
onfoxpadoeaxe17h
That's from my hit soundtrack, Orm Busters
ksoryaxyld17h
Migrations work well for me. It does decent work with optimized queries using linq select, except case like above, but it's a combo of automapper and ef screwing me. I don't mind hand rolled sql either. Been doing that in my other projects.
tuxchfukwg17h
I think avoiding asp core and ef is a good idea unless you have specific requirements
nynevjjqzuoqk17h
I hand roll because often times the projects I'm working on are this in flux system, and the migration strategies on existing data are a small book
dveqmgpidovhe17h
I avoid ASP.NET|ASP.NET too and just use .netcore
nmjwwzjpatjfx17h
I've been meaning to tinker with Blazor, because it looks like that might not suck
rqzvubnnpm17h
I guess if you fully buy in the whole ms ecosystem then it's okey, but this project I just need some of it.
moabgmlees17h
Asp identity thing has built in functions for Sms account resets and whatnot. If you need all that I bet it saves time, we ain't all enterprises.
bfyugejddbvng17h
Exactly
fakdoaqxqh17h
Blazor is interesting, but I lack confidence that Ms will not eff it up
jjewihfc16h
Can you try using less ternaries with the image status stuff? clean it up a bit?
ypfmtkzb16h
Is there no case switch stuff?
yqngjarxhtxbxtn16h
When are DBs ever switched?
lfnrgmgs16h
alternative way of showing it maybe hah. bikeshedding here
iwykhwjn16h
I guess the ORM is intelligent enough to combine the .All / .Any stuff? hmm
adrpreyv16h
nevermind then
drrebtgsiv15h
I think with the EF v3 changes I'll try to rewrite this garbage, but sadly I'm swamped now with several projects and this "works" ๐Ÿ˜•
gerpkkoouyxvhmnk11h
I am slowly transitioning all ASP.net|ASP.net over to .netcore, some stuff is just too big right now but I have already broken it up. On top of portability it performs so much better.
moslibabtx3h
Yea core seems to be fine
rgoptozecb3h
I had to split my code because some of it doesn't run on core too
qjmnrdglwd3h
The rest I run inside k8s linux containers
tdhllrxluw3h
+ That 1 windows server that I hate
eowonadq34min
I'm revisiting that browser discussion we had the other day. Seems like the major choices right now are all Chromium-based (Chrome, Edge, Opera, Vivaldi, Brave), and if you don't want Chromium there is Safari and Firefox both of which are less than ideal.
axbzcqoz33min
I'm wondering if there's really much of a difference between the different Chromium-based options other than who you're trusting with your data.
jcrnhyyy33min
Thoughts?
ublpexsxrf6min
Why is Firefox less than ideal?
eyvvfkhjxe4min
I've been using it for quite a long time now, I have 160ish tabs open most of the time, 20+ extensions - no problems.
bvunpqjuuh4min
And it's fast and manages memory better than chrome.
sjikaglpob3min
Mozilla is behind Rust and the new innovation in rendering/css engines.
gmdyevdloz1min
Extension ecosystem is good. The UI is polished and way ahead of Chrome in features. It has very good privacy policies out of box, again leading the pack and if you want to augment that, there are excellent extension options for that.
โ€นโ€บ
×
USD โ”€ $
ยฐF
โœจ To see all results
Sign Up
Log In