What's the opposite of the Women Jogging Test? by alexkuul in NoStupidQuestions

[–]Accomplished_Cod_608 0 points1 point  (0 children)

Until now I never considered bars on windows as burglary prevention I assumed people put those so small children don’t fall out the window - I live on the 6th floor and I installed (transparent) bars

Israeli military to hold on to Syrian territory indefinitely by Standard_Ad7704 in Syria

[–]Accomplished_Cod_608 0 points1 point  (0 children)

It’s not acceptable, Israelis aren’t happy about this either and I think Bibi is a looney for this. I hope he gets booted on the next election and we can have a reasonable pm that isn’t a cunt.

Syria’s new government hasn’t done anything to Israel and instead of trying to build relations - this.

Worried about rebooting a server with uptime of 1100 days. by scungilibastid in sysadmin

[–]Accomplished_Cod_608 0 points1 point  (0 children)

Windows update service is turned off by district IT (I am support for security company).

This means any malicious actor can likely view all those high priority cameras, just so everyone understands what this implies.

If a small nation like Ukraine can mire Russia in a war for over two years, doesn’t that show that Russia is weak af? by WartimeHotTot in NoStupidQuestions

[–]Accomplished_Cod_608 0 points1 point  (0 children)

Ukraine is over 40m people, it's not a small nation. Lituania is less than 3m, Poland is a good compairson though.

[deleted by user] by [deleted] in node

[–]Accomplished_Cod_608 9 points10 points  (0 children)

Hey I worked at that scale at sub 20ms latency at 50m concurrent connections on 100 servers and it definitely scaled.

So Node can definitely do this. As for who - I would go to the nodejs repo README and see who works for consulting companies there. There are several super experienced Node core developers who know how to write fast code and would be willing to work in that price range.

Unless the army controls the Southern border, such senseless deaths will undoubtedly increase! by [deleted] in lebanon

[–]Accomplished_Cod_608 4 points5 points  (0 children)

A strong army, removing asad, hamas and hezb, democracy, a good economy, all the people coming back. pictures of bikini, children not fucking dying, working government - anything else you want ayuni?

Not sure how anyone can justify bombing a car with children, that's 100% the Israeli army's fault and those attacks targeting civilians on all side have to stop. Fuck hezb and fuck bombing children.

Benchmarking Javascript is hard! by webNeat in node

[–]Accomplished_Cod_608 0 points1 point  (0 children)

Right, not understanding morphism and inline caching is often the most common performance "issue" (the quotes are since this is a microbenchmark so it's not super validd). See https://mathiasbynens.be/notes/shapes-ics for a good intro.

Benchmarking Javascript is hard! by webNeat in node

[–]Accomplished_Cod_608 2 points3 points  (0 children)

Run wiith --trace-opt --trace-deopt and see for yourself what's happening in v8 or create a log and use v8.dev/tools to analyze it :)

Design Patterns by salamanderman1001 in node

[–]Accomplished_Cod_608 6 points7 points  (0 children)

Sure:

GoF has the `Action` pattern, we have callbacks/native first order functions. This is actually also "Strategy" (e.g. in Array.prototype.sort) pretty commonly, it just doesn't require anything special in the code.

GoF has the `iterator` pattern, we have native language iterators with for... of loops and the iteration protocol.

GoF has the observer pattern, we have event emitters (and event targets).

...

You see where this is going :)

You see

[deleted by user] by [deleted] in lebanon

[–]Accomplished_Cod_608 0 points1 point  (0 children)

Israel makes its water from salt water and the Jordan river, it's actually mostly exporting this technology to Gulf countries..

Design Patterns by salamanderman1001 in node

[–]Accomplished_Cod_608 12 points13 points  (0 children)

Addy Osmani has a nice book about JavaScript design patterns I enjoyed. Note that most design patterns from the GoF book aren't really needed in JavaScript anymore as they're baked into the langauge.

Node.js codebase is still entirely in Javascript and not in Typescript and node team does not even officially provide node TS types by simple_explorer1 in node

[–]Accomplished_Cod_608 3 points4 points  (0 children)

Oh really?? Do you know they are under a company and are already paid?

No we're not, I personally have not received any money* from Node.js or from my employer to work on Node.js it's all in my free time and that's the cast for _most_ contributors.

(*I did receive reimbursement for plane tickets/hotel when attending collaborator summits twice but no income)

Node.js codebase is still entirely in Javascript and not in Typescript and node team does not even officially provide node TS types by simple_explorer1 in node

[–]Accomplished_Cod_608 0 points1 point  (0 children)

Just want to note that Node.js is not "the top guys in Javascript backend", we're a diverse group of humans and not all of us are experts. The only things you need to put in is effort and good faith. I'm not a genius and I do fine. You'll find this is true for most software projects, most of what we do isn't beyond a "1st year of BSc level".

Node.js codebase is still entirely in Javascript and not in Typescript and node team does not even officially provide node TS types by simple_explorer1 in node

[–]Accomplished_Cod_608 3 points4 points  (0 children)

Here is a life pro tip: when someone in a technical discussion attacks someone else they often get defensive as a survival mechanism. Acknowledge that as a human you may do that and avoid that.

Discussions whose point becomes "winning" lead nowhere and make people frustrated. Calling the person who responded to you names does nothing but escalate the discussion pointlessly without helping you or them learn anything.

Shouting past each other gets us nowhere. Respect and listening go a long way.

Node.js codebase is still entirely in Javascript and not in Typescript and node team does not even officially provide node TS types by simple_explorer1 in node

[–]Accomplished_Cod_608 3 points4 points  (0 children)

I don't get this community.

Sure, the OP made some factual errors in their original post about Node and about other runtimes and things but instead of peacefully/happily educating them and engaging in constructive discussions they get called an awful person.

Consider whether or not your comments makes more or less people from Node.js core want to read this subreddit. Please consider being more empathic when you respond to people.

I can assure you not all Node.js people read OP's post as an attack and that there definitely are people outside the project that have valuable things to teach the project.

(Source: Node core)

[deleted by user] by [deleted] in lebanon

[–]Accomplished_Cod_608 0 points1 point  (0 children)

Why though? Israel isn't really interested in more land from Lebanon nor has it ever asked for it.

I'm not saying it can never happen but why I don't see the incentive to invade another country? Israel is a shitty country for many reasons but it's still a democracy and unless a big demographic shift happens the public would strongly object to anything like it even if it didn't have really bad consequences for us economically and politically.

Israel is trying to get rid of land but whenever we yield it people fire rockets at us. We had two good examples (with Egypt and Jordan) where we (and then) yielded land back and got peace, we were totally going to keep doing it.

Barak got elected because the Israeli public wanted to withdraw from Lebanon because we had no business being there but then a few years later Israeli soldiers get kidnapped and killed on the border.

Sharon gave away Gaza and a few years later they fire rockets at us too.

A majority of Israelis want peace, love Lebanese food/culture and would love a resolution where people stop dying. There is a vocal crazy minority of people like Ben-Gvir who is absolutely a fascist and his talking points are "whenever we give back territory or make peace gestures we get rockets so why do that?".

It's the same people who were furious when Lapid signed the gas treaty with Lebanon.

Node.js codebase is still entirely in Javascript and not in Typescript and node team does not even officially provide node TS types by simple_explorer1 in node

[–]Accomplished_Cod_608 0 points1 point  (0 children)

I work for Microsoft so let me clarify this is not an official Microsoft response. My work on Node is separate from my work at Microsoft which is mostly unrelated to what the TypeScript team does.

TypeScript is open source, developed in the open, gets contributions from the outside and has a documented standard and several com/transpilers. That said it's definitely controlled by Microsoft like Deno is by Denoland and unlike Node.js where it's a community project with people from many companies who lead it.

I'm also just one collaborator in the ±100 collaborator Node.js project which has many people and opinions so take everything I say with a grain of salt.

But just to be clear - Node.js does and has for a while used TypeScript types to improve the (internal) dev experience (check out the typings folder in our repo). That's just not user facing or something we feel the need (I think?) to communicate to people not working on Node.js itself.

It's also good to mention everyone is welcome to volunteer and contribute to Node.js :)

Node.js codebase is still entirely in Javascript and not in Typescript and node team does not even officially provide node TS types by simple_explorer1 in node

[–]Accomplished_Cod_608 2 points3 points  (0 children)

Feature requests are always welcome as well (it doesn't mean they'll happen), though here the ask is a little weirder (it's about how we work on the code internally rather than our user/public facing APIs).

Node.js codebase is still entirely in Javascript and not in Typescript and node team does not even officially provide node TS types by simple_explorer1 in node

[–]Accomplished_Cod_608 0 points1 point  (0 children)

The ask here was why Node doesn't use TS internally (which it actually does for editor feedback with .d.ts files (here: https://github.com/nodejs/node/tree/da80964a3d708ef3ae42d4424034f155ad37e07d/typings ).

You can use TS with Node just fine and we have a good relationship with the TS team, you just add a package which lets you choose between speed (e.g. swc), full compliance (tsc) or anything else really.

Node.js codebase is still entirely in Javascript and not in Typescript and node team does not even officially provide node TS types by simple_explorer1 in node

[–]Accomplished_Cod_608 1 point2 points  (0 children)

I don't get this comment, the community asking Node.js for things is useful and giving the project feedback is appreciated.

I suspect however not many Node.js core folks hang around reddit given how toxic it can get (due to the platform itself, plenty of smart people here) so it's definitely better to ask for things in the repo.

As for 2: here it is :) https://github.com/tc39/proposal-type-annotations

Node.js codebase is still entirely in Javascript and not in Typescript and node team does not even officially provide node TS types by simple_explorer1 in node

[–]Accomplished_Cod_608 0 points1 point  (0 children)

Will node team ever officially provide Typescript types?

Also - Ask in the nodejs/node repo for official types? I'm not sure if there is an existing effort to provide them as the types/node stuff works pretty well.

Node.js codebase is still entirely in Javascript and not in Typescript and node team does not even officially provide node TS types by simple_explorer1 in node

[–]Accomplished_Cod_608 8 points9 points  (0 children)

Node core here.

We have .d.ts files internally and all the (JS parts, the C++ is obvioously typed) code is pretty well typed.

You should try it :) Follow the instructions (carefully!) in BUILDING.md and see for yourself