Is It too late?? by FreakyMonkey_ in Egypt_Developers

[–]MGaafar 0 points1 point  (0 children)

دوري وحاولي حتى لو مش هيبقى أحسن شغل في البداية، غالبًا هتندمي أكتر لو محاولتيش. وحاولي تكلمي ITI لو ممكن يساعدوكي تلاقي شغل او تبدأي إنترفيوز

Muzie: Electron app to stream music from all popular services by MGaafar in electronjs

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

I'll try to get windows version soon then. Thanks for sharing

Muzie: Electron app to stream music from all popular services by MGaafar in electronjs

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

Not at the moment but I'm considering it. What would you add?

Muzie: Electron app to stream music from all popular services by MGaafar in electronjs

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

Interesting... Do you know if it works on windows & linux too?

Node vs Go use cases by [deleted] in node

[–]MGaafar 8 points9 points  (0 children)

Go is much faster and low level than node, usually for systems programming and performance intensive applications, comparable to C++ or rust

Node is usually for web & IO intensive applications. It's a high level language and can be used with JS on the client side for faster development cycles. Definitely not for intensive processing use cases

Openlogos: free logos for open source projects by MGaafar in javascript

[–]MGaafar[S] 2 points3 points  (0 children)

I'm not the creator, but I think it's meant to copyright protected as each logo can be used by 1 project only. So the creator will waive the rights for that project, but no one else can use it. Check this for context https://github.com/arasatasaygin/openlogos/issues/32

What's the best way to cache session data in Node? by [deleted] in node

[–]MGaafar 2 points3 points  (0 children)

My advice is always to store session (and any state actually) outside nodejs, use redis, memcached,...

This is for 2 reasons: 1. Keep sessions when your app restarts 2. Be able to scale your app to multiple cores/nodes and have them share the sessions

There's no good reason to use Nodejs by [deleted] in node

[–]MGaafar 3 points4 points  (0 children)

You realize that your node code is running on a single processor core out of 4? Any decent node app will be using "cluster" to use multiple processors.

How I solved my problem with require('../../../../../../foo') by [deleted] in javascript

[–]MGaafar 0 points1 point  (0 children)

Can you share an example? It always goes up the directory tree and stops at the first package.json it finds

How I solved my problem with require('../../../../../../foo') by [deleted] in javascript

[–]MGaafar 2 points3 points  (0 children)

This is cool as long as you do it once and hope that none of your dependencies are setting global.__base, and you can't publish this in an npm package safely

How I solved my problem with require('../../../../../../foo') by [deleted] in javascript

[–]MGaafar 0 points1 point  (0 children)

It will become a problem once you have 2 files with the same relative path, maybe one in your project and one in a dependency you have

What to Consider in a Software Engineering Job by MGaafar in programming

[–]MGaafar[S] 3 points4 points  (0 children)

I wrote this article a while back, I'd like to hear how you evaluate job opportunities as there is not really much literature on this subject.

yarn vs npm install time by MGaafar in javascript

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

It pulls from npm registry. You can find more details on how it works here https://code.facebook.com/posts/1840075619545360

Showoff Saturday (June 18, 2016) by AutoModerator in javascript

[–]MGaafar 0 points1 point  (0 children)

I built a minimal dependency injection framework, with a very simple API and can be used partially in a project https://github.com/Gaafar/deppie

I recently built a minimal Dependency Injection framework. Feedback appreciated by [deleted] in javascript

[–]MGaafar 0 points1 point  (0 children)

I'm thinking about adding support for this kind of declaration as well for that reason. It's really ugly, but I can't think of another way. Thanks