Welcome to WordPress. This is your first post. Edit or delete it, then start writing!
Understanding how hoisting works was one of the eye opening moment for me, suddenly lot of things started making sense to me about the me. I am still not very sure why JS needs to have hoisting in first place. I understood how it works but why behind it still not clear to me. Most likely I will remove this point from the list after understanding the purpose behind it.
Seen you in next one
Since you are here to read about the things I love about JS. I am listing down the program feature which I absolutely love. This is very subjective and your opinion might defer with mine and that’s a good thing! Here we go 🏃🏼♂️(please someone tell me how to reverse this(🏃🏼♂️) emoji 😂).
- Lose typing:
- After spending quite lot of time with python, One of the major similarity which I found between JS and Python was that they both are loosely typed language which means interpreter dynamically assign the type to variable which is such a blessing if one use it properly.
- Less Steep Learning Curve:
Hmm.. seems like I am running out of point right now. I will be keep on updating this post as and when I will come across something I love about JS. Thanks for reading, Hope it helps someway 😇
Seen you in next one
If you know JS and React/React Native than this blog is for you, If you don’t no issue here are some great resource to learn.
React/React Native: Egghead React Tutorial
I have started working on fooodie.store app some time back. You can download it from playstore , It would be completely wrong to say that I have build this app all by myself. Significant part was build by Supi without has Redux wizardry it was impossible to complete this app.
Coming back to topic, We picked up Expo for this task, If you are thinking why expo? it’s a topic for a different blog itself, inshort following are the feature which expo makes so appealing for some one who is starting react native development
- Push notification
- Expo app for dev
- Native file support
- Native graphics
- Social Auth
There are few more, if you are intrested you may continue reading in expo website
HOW TO SETUP EXPO?
Up and running with expo is really simple and fast(make sure you have node installed already!).
you have to install expo cli (`npm install expo-cli –global`) in your system and expo client app your android/ios phone. once this is done. all you have to do is run following command(expo cli will do the hard work for you):
`expo init my-new-project`
above command will create new project with all bolierplate in same location where you have ran this command.
and you are done!
Fireup your code editor and start fiddling around with app.js file to see changes you can either you xcode iphone emulator(fastest option in my experience) or use Expo client app on your device, Just make you are in same network as your system for faster experience.
There are lot more to this, But I don’t remember all the details right now. Hope this helps. I will keep this post updated as and when I get recollect more information about setting up expo.
Seen you in next one
Hi fellow programers!
Few days back I decided to face my fear 😛 gathered enough courage to setup a website using django+nginx+uwsgi and I was ready to go any extent to finish this task which I have never done.
Day1(Yep it took me multiple days 😂 )
My understanding of whole nginx and uwsgi setup was next to none & most of this bit sounds me like some sort of harry potter magic…. Uwsgi sockets, Enabled-sites, Available-sites, static file hosting with django… bla bla bla… yada yada yada…
Starting few steps were relatively easier(and I was already thinking that this must not be HARD).
sudo apt-get update
sudo apt-get install nginx
pip install uwsgi
After these two steps were done, I thought of starting nginx
sudo service nginx start
Nginx welcome page was already there! 😍
Things were looking so simple I thought I would go to bed only after setting this up but as every developer know there is always an issue… (stupid mistake, misread or overconfidence to name few) waiting for you when you are on the verge to completing your task on time :p and out of nowhere if jumps on right in middle and bites you… and boy it bites you read hard :joy:
For me it was understanding of following flow
( Web Client)<—–>Nginx(Web server)<——->(uwsgi_socket)<————->uwsgi<———->(Dango Application.)
This simple looking setup got me real bad.. I thought Hmm… this is easier than I thought 😛 (it was not!)
These are the few tutorial I have been following for setting up django on my aws linux VM
If you just want straight forward tutorial for setting up django above link is a very good resource!
Don’t waste your time reading my blog… but on the other hand if you are enjoying my painful journey.. Keep on reading it’s going to get worst :joy:
Most of the tutorial i came across was telling me that it’s simple once you have uwsgi install… you don’t need to do much to see your code running just run regular
python manage.py runserver 0.0.0.0:8080
& if that’s works
uwsgi –http :8080 –home /home/user/Env/firstsite –chdir /home/user/firstsite -w firstsite.wsgi
But in my case either of them didn’t work as i expected. I was trying to do following setup
the web client <-> uWSGI <-> Django
It cost me another frustrating day to find out this issue was because of AWS setting where TCP connection over port 8000 was not open and the very request which my browser was making was not getting register by the VM.
After bit of googling I was able to change settings in AWS so that request over port 8000 is transferred to the VM. I thought that’s it! I got it… but it was only working on running command
python manage.py runsever 0.0.0.0:800
Uwsgi was not serving properly even
my setup should just work with nginx as well. 🙂
But i was wrong again….
Took another half day to understand that depending on kind of way you setup uwsgi one might have to add following in uwsgi setting (sitename.ini) file.
And that was it. Everything started up and running as expected (it was actually not). This blog is in fact incomplete it’s been long I have done this setup and I don’t remember much of it now.
I will try to update it as I work on next setup in near future. 🙈
Around a year back I got an opportunity to work for a london based startup ‘Encyclokidia’, I had quite mixed feeling about the opportunity while i was reading offer letter from Zahir. I was confused, nervous, suspicious and excited!
Since it’s been an amazing year(yes, even I can’t believe it!), I thought it is an experience worth sharing with others 🙂
In Beginning it was almost impossible for me to work from home because it felt like I am working on some hobby project, Having enough self-discipline to work for continuous 8 hrs was HARD! or should I say impossible… 😛 I found myself watching random videos on youtube (feynman lectures on physics) for no reason and then work life balanced messed up as I had to work for 10-12 hrs to get the task done. 🙁 This made me sad, unhappy, confused and I started wondering is remote job giving me the benefit I was looking for? I started wondering…
After few days of introspection, I found the biggest problem I had with my remote job was me :joy:(only slack user will understand). I finally understood only way to make it work is by adding self-discipline and organise my work-load.
I started working on changes I need to bring in my daily schedule, Initailly my routine looked something like this:-
6:00 wake up
7:00 break fast
8:00 start working
4:00 call it a day!
But what actually if looked like
8:00 wake up
10:00 done with breakfast
11:00 start working
8:00 call it a day!
I failed! And Failed quite badly :joy:
After struggling from all kind of issue from self discipline to work life balance. I understood that I have to break the whole problem down into small parts.
- I started created TODO list for a day and had a fixed timeline to complete it.
- I got some good pair of headset (thanks to http://suprabha.me) and started worked on shorter time period with high focus.
- Setting priorities for the day and rewarding myself for completing them helped me a lot.
- Cafe like starbucks were places where i used to crash after getting bored working from home( you will surprise by knowing how much you miss crowd after working remote :P)