Topic Wiki

Training
Codecademy.com offers hand on courses for  various coding languages including HTML, JavaScript, CSS, and more. FREE
TreeHouse.com 8)
w3schools.com
regex

Resources
Browser compatibility
Can i use

To test/show-of your skills
html - css - js
http://codepen.io/pen/
http://jsfiddle.net/

My sql
www.sqlfiddle.com

Editor
notepad-plus-plus.org/

android development
http://developer.android.com/sdk/index.html

js librery
http://greensock.com/ nice animation
getbootstrap.com/css/ responsive layout
jquery.com do more write less

Free Books
http://it-ebooks.info/

Test client browser version
http://browser-update.org/
« Last edited by yesitsme on May 17, 2015, 11:13:37 AM »

Author Topic: Programming for Beginners  (Read 62590 times)

Offline Aerial Dag

  • Dansdeals Platinum Elite + Lifetime Gold Elite
  • ******
  • Join Date: Jun 2013
  • Posts: 920
  • Total likes: 50
  • DansDeals.com Hat Tips 7
    • View Profile
  • Location: MS Desert
Re: Programming for Beginners
« Reply #360 on: July 28, 2016, 01:23:36 PM »
Thanks.

Flatiron's Learn-Verified.

Did you do their online course or on campus? I know python basics (I too used DDMS for a project. A few years ago I built a python script to text me when DDMS had certain keywords like 'mistake' etc) but want to learn RoR to better understand my company's website. Would you recommend Flatiron?

Online etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 11406
  • Total likes: 1435
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Programming for Beginners
« Reply #361 on: August 01, 2016, 06:48:28 PM »
Anyone know how to set up keyboard shortcuts with Javascript? I need some help with a tampermonkey script.

TIA!
Workflowy. You won't know what you're missing until you try it.

Offline AnonymousUser

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Feb 2013
  • Posts: 3014
  • Total likes: 4
  • DansDeals.com Hat Tips 0
    • View Profile
Re: Programming for Beginners
« Reply #362 on: September 13, 2016, 04:21:12 PM »
Does anyone have experience with Node and Express?

Offline BAHayman

  • Administrator
  • Dansdeals Lifetime Platinum Elite
  • **********
  • Join Date: Mar 2010
  • Posts: 1944
  • Total likes: 21
  • DansDeals.com Hat Tips 0
    • View Profile
Re: Programming for Beginners
« Reply #363 on: September 13, 2016, 06:24:59 PM »
Does anyone have experience with Node and Express?
I've worked with both. Have a question?

Offline bubbles

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jul 2011
  • Posts: 5055
  • Total likes: 17
  • DansDeals.com Hat Tips 67
    • View Profile
Re: Programming for Beginners
« Reply #364 on: September 13, 2016, 06:39:17 PM »
Anyone know how to set up keyboard shortcuts with Javascript? I need some help with a tampermonkey script.

TIA!
still need? I set some up. I can send it over when I get to a computer if needed

Online etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 11406
  • Total likes: 1435
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Programming for Beginners
« Reply #365 on: September 13, 2016, 06:46:19 PM »
still need? I set some up. I can send it over when I get to a computer if needed
Still needed, thanks! Looking forward to seeing your sample
Workflowy. You won't know what you're missing until you try it.

Offline AnonymousUser

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Feb 2013
  • Posts: 3014
  • Total likes: 4
  • DansDeals.com Hat Tips 0
    • View Profile
Re: Programming for Beginners
« Reply #366 on: September 13, 2016, 06:58:30 PM »


Have a question?
A bunch.
Can I contact you through some sort of IM, like Whatsapp, Hangouts, etc.?

Offline yesitsme

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Dec 2014
  • Posts: 2658
  • Total likes: 587
  • DansDeals.com Hat Tips 4
  • Gender: Male
    • View Profile
Re: Programming for Beginners
« Reply #367 on: September 13, 2016, 11:16:11 PM »
Anyone know how to set up keyboard shortcuts with Javascript? I need some help with a tampermonkey script.

TIA!
Your post caused me to create this topic http://meta.stackoverflow.com/q/334494/4535386

Online etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 11406
  • Total likes: 1435
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Programming for Beginners
« Reply #368 on: September 14, 2016, 10:21:36 AM »
Workflowy. You won't know what you're missing until you try it.

Offline JoeyShmoe

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Nov 2014
  • Posts: 1157
  • Total likes: 80
  • DansDeals.com Hat Tips 0
  • Gender: Male
    • View Profile
  • Location: Lakewood
Re: Programming for Beginners
« Reply #369 on: September 14, 2016, 11:02:40 AM »
I don't get it
Look at the end of the of the post, @yesitsme tried to search for tampermonkey and the result was blank instead of some info about it.
DDF A-Z Link Extension
Chrome
Firefox
Info

Online etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 11406
  • Total likes: 1435
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Programming for Beginners
« Reply #370 on: September 14, 2016, 12:30:17 PM »
Look at the end of the of the post, @yesitsme tried to search for tampermonkey and the result was blank instead of some info about it.
oh :)
Workflowy. You won't know what you're missing until you try it.

Offline Cholentfresser

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Mar 2009
  • Posts: 1845
  • Total likes: 20
  • DansDeals.com Hat Tips 1
    • View Profile
Re: Programming for Beginners
« Reply #371 on: September 14, 2016, 02:58:51 PM »
A bunch.
Can I contact you through some sort of IM, like Whatsapp, Hangouts, etc.?

Any reason you don't post it here so others can chime in as well?
In order to understand recursion, you first need to understand recursion.

Offline AnonymousUser

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Feb 2013
  • Posts: 3014
  • Total likes: 4
  • DansDeals.com Hat Tips 0
    • View Profile
Re: Programming for Beginners
« Reply #372 on: September 14, 2016, 09:12:15 PM »
Any reason you don't post it here so others can chime in as well?
It wasn't just one question, I needed to be able to have a back and forth conversation with someone, and a forum isn't the best platform for that.
However, I'll summarize it in case anyone is interested, or has any other suggestions.

I was trying to make my Node / Express REST API server as modular as possible and follow MVC, so I split it into a bunch of files:
server.js
db.js
routes.js
controllers/controllers.js
models/models.js

I needed to get a reference to the DB connection in models.js in order to query the database. However, since models.js is in a separate folder, using
Code: [Select]
require('./db') wouldn't necessarily return the same instance that was originally instantiated.

After some Googling, it looked like there were 2 options:
1. Dependency Injection (DI), which meant passing a reference to either the connection, or something containing it as a parameter to models.js. However, this was  a bit clunky, since I had to refactor all the modules into functions, and the connection had to be passed along db.js -> server.js -> routes.js -> controllers.js -> models.js.
2. Global variables or singletons, which are discouraged.

After some back and forth, @BAHayman suggested storing a reference to the connection in app.locals, and then the HTTP method calls in controllers.js have access to that through req.app. Then I just passed it to the individual methods in models.js as a parameter.. Not as clean as I had hoped for, but it seems like the best method given the situation.

Offline Cholentfresser

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Mar 2009
  • Posts: 1845
  • Total likes: 20
  • DansDeals.com Hat Tips 1
    • View Profile
Re: Programming for Beginners
« Reply #373 on: September 14, 2016, 09:29:03 PM »
You sure "require" doesn't give you the same instance? I was under the impression that it does.
In order to understand recursion, you first need to understand recursion.

Offline AnonymousUser

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Feb 2013
  • Posts: 3014
  • Total likes: 4
  • DansDeals.com Hat Tips 0
    • View Profile
Re: Programming for Beginners
« Reply #374 on: September 14, 2016, 11:24:42 PM »
You sure "require" doesn't give you the same instance? I was under the impression that it does.
You are correct if the 2 modules that instantiate it are in the same folder. If not, they could return different instances.

https://stackoverflow.com/questions/10306185/nodejs-best-way-to-pass-common-variables-into-separate-modules#comment49587993_10316422