Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 27 2018 01:23
    @MylesBorins banned @fjeddy
  • Feb 24 2016 08:26
    @rvagg banned @jonathanenbe
Kudzu
@czhower

"Eich wrote one in 10 days, in May 1995. Although it was developed under the name Mocha, the language was officially called LiveScript when it first shipped in beta releases of Netscape Navigator 2.0 in September 1995, but it was renamed JavaScript when it was deployed in the Netscape Navigator 2.0 beta 3 in December."

I clearly remember many of the convrsations early on when JS was released. I was doing web dev prior to it , and its arrival even in a minimal form was much anticipated.

Jordan Harband
@ljharb
absolutely you're incorrect
ruby, php, many other languages are the same as JS here.
dimtabu
@taburetkin
@czhower that was not mine question. i just thinking
Jordan Harband
@ljharb
that JS was built in 10 days is true, but irrelevant
Kudzu
@czhower
PHP isn't a bar I would compare anything against.
Jordan Harband
@ljharb
JS operates the way it does largely not because "10 days" or "hacky" but because "that's the proper way for this kind of language to operate"
dimtabu
@taburetkin

in terms of call stack
return process.exit() means this

-> call process.exit();
-> return result;

so, last line of code never completes in case if we are in node and process.exit terminates node process

Jordan Harband
@ljharb
PHP is a fine language; and it doesn't actually speak to your credibility to denigrate it.
JS is similar to SmallTalk in many ways, as well as E, as well as Java and C++, all of which are thoroughly designed languages in their own right.
Kudzu
@czhower
PHP is among the most hated langauges. You are hurting your own credibility with that statement.
Jordan Harband
@ljharb
lol
it's also the second most used language on the web, given that it powers wordpress
@czhower not enforcing return types isn't a bad thing. it's just not a feature of languages that aren't strongly typed. your implication that the lack of that feature is "hacky" or a result of a rushed initial language design process is incorrect.
Kudzu
@czhower

Mere momemtum. Find a dev who actually likes or thinks PHP is a good language and you will have a very rare dev.

Many people beleive we never went to the moon either. Numbers are not an indicator of truth or quality.

Jordan Harband
@ljharb
also true
thus, "most hated" is not an indicator of quality. thanks for proving my point.
also - at some point tho, momentum is an indicator of quality and lack of momentum is an indicator of poor quality.
things that are good don't stay unpopular.
Kudzu
@czhower
There are reasons why its hated. The reasons PHP is widely used is mostly because of WordPress and even those devs hate PHP
Jordan Harband
@ljharb
wordpress has to be compatible with a very old version of php. the later versions are pretty good overall.
return process.exit() is arguably fine - it ensures developers who aren't familiar with process.exit() terminating will understand that it's the last line in the function, as would throw process.exit() - but since it's redundant i'd still suggest omitting the return or throw.
Kudzu
@czhower

@taburetkin
https://www.mojotech.com/blog/consistent-returns/

The last statement explains it pretty well:
"I think that the consistent-return rule for ESLint provides consistent returns on all of my JavaScript projects. It forces me to consider all possible edge cases. This helps to cut down on potential sources of bugs and leads to a more consistent and comprehensible design. Reducing the chance for bugs or misunderstandings in your code is worth the small cost."

You dont need static typed language to enforce if a return value exists or not.

Jordan Harband
@ljharb
+1 to that
delphi
@johndeguerto
which framework are you guys using with expresses?
EuphoricPenguin
@EuphoricPenguin
Express? Didn't know it was plural lol.
Kudzu
@czhower
@johndeguerto Just a curiosity... the "delphi" name you have... any connection to the Delphi language?
Victor Villacis
@Victor-Villacis
I have launched an Elastic Beanstalk Node.js enviroment. I have SSH into the EC2 instance and uploaded a vaild SSL certificate. I have modified the NGINX config file and opened port 443 in the security groups. However I still can't get HTPPS in the URL. Can anyone help?
Arooj
@aroojahmad
Nadia
@nadiaschutz
hey guys, any tips for pair programming interviews? i am shitting my pants cuz i digest info visually and it's hard for me to understand what someone wants me to code by giving me verbal instructions. also, i have never done such interviews. the interview i am having this week should be about 1.5 hrs long.
Victor Villacis
@Victor-Villacis
@nadiaschutz my sugguestion is to talk through everything as you do it. Repeat everything he says to yourself. It depends, but if allowed and you get stuck DO NOT be scared to google everything lol.
Nadia
@nadiaschutz
@Victor-Villacis thank you! great tips
Victor Villacis
@Victor-Villacis
good luck, although you seem like you dont need it. Are you good with nginx?
@nadiaschutz ^
Nadia
@nadiaschutz
@Victor-Villacis I have never tried it
@Victor-Villacis trust me I do need it haha. especially if they start asking some sort of algorithmic stuff...besides i am still not sure what language they will be showing me....python or JS
Victor Villacis
@Victor-Villacis
@nadiaschutz dam they want you to go in blind? They said it would be either or?
Nadia
@nadiaschutz
@Victor-Villacis well...the long story short, they are looking for full stack. they are using python on back end, and they want me to go though their files and fix their bugs.....also they are aware i am new to python and have been on front end for a while....so idk...maybe i just should ask them straight forward what language before the interview.
Victor Villacis
@Victor-Villacis
@nadiaschutz yea python is pretty dope...ive been meaning to get into beautiful soup more
but yea I think maybe you should just ask them nonchanlantly like you really don't care, but you really do haha
want I learned is that most people doing interviews really want you to win, they are not there to trick you....so the most questions you ask, the better...they may set up "gotchas" but they want to see how you handle them
annnnnd I just solved my problem I have been working on all day...freakin nginx haha
Nadia
@nadiaschutz
@Victor-Villacis high five!! good job!
Victor Villacis
@Victor-Villacis
thanks, now I do not know if I should go to sleep or continue to the next issue lol smh @nadiaschutz
Nadia
@nadiaschutz
@Victor-Villacis eat elephant one bite at a time
Victor Villacis
@Victor-Villacis
@nadiaschutz that is funny, that is what I always say
James 'Bunni' Dice
@GuiltyPixel
when chuck norris eats an elephant, it says thank you
RG
@rg-repo
Hi, can anyone help me or reference me in generating custom id in mongoose model ? Like want to create _id : 1 ,2 ,3 ….not the hash Object Id
?
Victor Villacis
@Victor-Villacis
@GuiltyPixel Chuck Norris eats an elephant in one bite.