Thread Rules 1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution. 2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20) 3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible. 4. Use [code] tags to format code blocks.
On September 13 2012 17:11 darmousseh wrote: Have any of you guys started using NodeJs yet? It looks really exciting. Coming from the ruby on rails world, nodejs looks to me like it's the next Big Thing in the web developer world. What are your guy's thoughts?
If you are looking to write server or backend code, I strongly suggest you use something that is more scalable, and offers better concurrency and performance than NodeJs. While I can appreciate the need for javascript on the frontend, using it elsewhere does not seem like a good idea.
lol, have you actually checked what node.js is about and how it works?
I'd have to agree though that Go seems like it would be worth a try, as is anything coming from Google.
On September 14 2012 21:35 Andin wrote: What music do you guys like to listen to when you code?
When I have to work late at night, hardstyle is the only thing that keeps me awake... otherwise, anything from 90's pop to various styles of metal or eletronic music.
im 28 yrs old and think that its possible for me to become a programmer by homestudy and building a portfolio over the next 3 years. i will not be going to uni or getting a degree as i have to work (random minimum wage stuff). but in 3 years time i hope to get some well-paid job and have a decent future as a programmer.
im going to read this thread, and also have a look on http://www.codecademy.com . after that i guess i will pick a language, like java, and start a tutorial.
my background is: wrote some room descriptions in LPC, went to uni for computer animation/web design but didnt do any of it whatsoever (failed), now 10 yrs later still wondering what to do with my life
We just started learning JDK in CS1073 (introduction into programming etc) and we're about 3-4 days in. We've covered really basic things like System.out.println("") or scanners but do you guys have any advice to really get ahead of the learning curve with JDK's? I want to start learning more but I dunno really where to go
Heads up, in case you want to learn functional programming, there's a coursera thingy starting up by the guy who made scala: https://www.coursera.org/course/progfun
On September 16 2012 03:44 NeMeSiS3 wrote: We just started learning JDK in CS1073 (introduction into programming etc) and we're about 3-4 days in. We've covered really basic things like System.out.println("") or scanners but do you guys have any advice to really get ahead of the learning curve with JDK's? I want to start learning more but I dunno really where to go
On September 16 2012 03:41 FFGenerations wrote: hey programmers
im 28 yrs old and think that its possible for me to become a programmer by homestudy and building a portfolio over the next 3 years. i will not be going to uni or getting a degree as i have to work (random minimum wage stuff). but in 3 years time i hope to get some well-paid job and have a decent future as a programmer.
im going to read this thread, and also have a look on http://www.codecademy.com . after that i guess i will pick a language, like java, and start a tutorial.
my background is: wrote some room descriptions in LPC, went to uni for computer animation/web design but didnt do any of it whatsoever (failed), now 10 yrs later still wondering what to do with my life
so ya, see you in 167 pages
I think it is definitely possible, but you have to find good literature. I learned C++ while in high school from some random book and often times I found myself not understanding examples because I lacked knowledge from other programming areas (algorithms and data structures) and maths. Also I don't think java is a good starting language, you should go for some procedural language.
EDIT: You should read the whole OP, there's a lot of useful info in there
On September 16 2012 04:11 phar wrote: Heads up, in case you want to learn functional programming, there's a coursera thingy starting up by the guy who made scala: https://www.coursera.org/course/progfun
Thanks for the heads up lol. btw, I finished the first assignment, but it took me like an hour just to set it up. Another 30min to figure out what I'm supposed to do. Then like 10min to implement the methods. All in the course of a couple of days. I've never done anything like this before lol. The main problem was setting up sbt on linux, which I'm also unfamiliar with.
Can someone explain to me what sbt, simple build too, is used for in layman's terms? I kind of remember ant when I was learning java, but I never got around to figuring what it was used for. I'm used to compiling and running programs on the terminal, so maybe someone can explain the benefits of sbt over the terminal? Thanks in advance.
On September 16 2012 04:11 phar wrote: Heads up, in case you want to learn functional programming, there's a coursera thingy starting up by the guy who made scala: https://www.coursera.org/course/progfun
Thanks for the heads up lol. btw, I finished the first assignment, but it took me like an hour just to set it up. Another 30min to figure out what I'm supposed to do. Then like 10min to implement the methods. All in the course of a couple of days. I've never done anything like this before lol. The main problem was setting up sbt on linux, which I'm also unfamiliar with.
Can someone explain to me what sbt, simple build too, is used for in layman's terms? I kind of remember ant when I was learning java, but I never got around to figuring what it was used for. I'm used to compiling and running programs on the terminal, so maybe someone can explain the benefits of sbt over the terminal? Thanks in advance.
Sbt is a build tool like ant or makefiles that automates the process of building a project and other related tasks.
OK, this is dumb and I should know this, but in HTML, the <div> tag denotes a "block". When you make a <div></div>, and then another one after it, they are aligned vertically on the page, on top of one another. How do I make these horizontal, next to one another?
On September 20 2012 01:35 Zenithal wrote: OK, this is dumb and I should know this, but in HTML, the <div> tag denotes a "block". When you make a <div></div>, and then another one after it, they are aligned vertically on the page, on top of one another. How do I make these horizontal, next to one another?
This should do the trick (from memory, not tested, i don't do much HTML stuff since a while):
Hey I need some help with a program that I'm trying to write, its pretty simple so I think someone will be able to help. I'm programming in C++. The basic idea is for the user to enter two points, and the program to respond with a midpoint, as well as account for some user error. This is what it might look like: + Show Spoiler +
-------------------------------------------------------------------------------------------------- Where is your first point? 3.4 12.2)
You were missing the open parenthesis before the x coordinate! You were missing the comma to separate coordinates!
Please use proper notation...
Where is your second point? (13.4, 12.2
You were missing the close parenthesis after the y coordinate!
Please use proper notation...
Thank you!! Calculating... Done.
(3.4, 12.2) is 10 units away from (13.4, 12.2).
The midpoint of the line segment from (3.4, 12.2) to (13.4, 12.2) is (8.4, 12.2). -----------------------------------------------------------------
-------------------------------------------------------------------- #include <iostream> using namespace std; int main (void)
{ cout << "\n\t\tWelcome to the 2D point program!!!\n"; char ptx1, pty1; int pptx1, ppty1; cout << "\nWhere is your first point?"; cin >> pptx1, ppty1; cin.ignore(); if (ptx1 == (pptx1, ppty1)){ cout <<"\n\tYou were missing the open parenthesis before the x coordinate!"; cout <<"\n\tYou were missing the comma to separate coordinates!\n"; cout <<"\n\tPlease use proper notation...\n"; } else if (ptx1 == ((pptx1,"." ppty1)){ cout <<"\nYou were missing the close parenthesis after the y coordinate!\n" cout <<"\n\tPlease use proper notation...\n"; cout <<"\nThank you!!! Calculating... Done."; } else (ptx1 == ("("pptx1,"," ppty1")");{ cout <<"\nThank you!! Calculating... Done.\n"; } cout << "\nThank you!! Calculating... Done.\n"; cout << >> ptx1 >> "," >> pty1 >> "is" << << "units away from" << ptx2, pty2 >>"."; cout << "\nThe midpoint of the line segment from" << ptx1 << "." << pty1 >> "to" >>ptx2 >> pty2 >> "is" << return 0; } ----------------------------------------------------------------------------------------
I'm really new to programming so feel free to let me know anything. My program isn't nearly complete, but a push in the right direction would help. Thanks
On September 21 2012 08:16 FullAccess wrote: Hey I need some help with a program that I'm trying to write, its pretty simple so I think someone will be able to help. I'm programming in C++. The basic idea is for the user to enter two points, and the program to respond with a midpoint, as well as account for some user error. This is what it might look like: + Show Spoiler +
-------------------------------------------------------------------------------------------------- Where is your first point? 3.4 12.2)
You were missing the open parenthesis before the x coordinate! You were missing the comma to separate coordinates!
Please use proper notation...
Where is your second point? (13.4, 12.2
You were missing the close parenthesis after the y coordinate!
Please use proper notation...
Thank you!! Calculating... Done.
(3.4, 12.2) is 10 units away from (13.4, 12.2).
The midpoint of the line segment from (3.4, 12.2) to (13.4, 12.2) is (8.4, 12.2). -----------------------------------------------------------------
-------------------------------------------------------------------- #include <iostream> using namespace std; int main (void)
{ cout << "\n\t\tWelcome to the 2D point program!!!\n"; char ptx1, pty1; int pptx1, ppty1; cout << "\nWhere is your first point?"; cin >> pptx1, ppty1; cin.ignore(); if (ptx1 == (pptx1, ppty1)){ cout <<"\n\tYou were missing the open parenthesis before the x coordinate!"; cout <<"\n\tYou were missing the comma to separate coordinates!\n"; cout <<"\n\tPlease use proper notation...\n"; } else if (ptx1 == ((pptx1,"." ppty1)){ cout <<"\nYou were missing the close parenthesis after the y coordinate!\n" cout <<"\n\tPlease use proper notation...\n"; cout <<"\nThank you!!! Calculating... Done."; } else (ptx1 == ("("pptx1,"," ppty1")");{ cout <<"\nThank you!! Calculating... Done.\n"; } cout << "\nThank you!! Calculating... Done.\n"; cout << >> ptx1 >> "," >> pty1 >> "is" << << "units away from" << ptx2, pty2 >>"."; cout << "\nThe midpoint of the line segment from" << ptx1 << "." << pty1 >> "to" >>ptx2 >> pty2 >> "is" << return 0; } ----------------------------------------------------------------------------------------
I'm really new to programming so feel free to let me know anything. My program isn't nearly complete, but a push in the right direction would help. Thanks
I'm not a C++ person and just spitballing here since you say you're new.
You want to get point 2 entered before you start calculating. Also you might need a check to make sure they are not the same location. I'm also not sure if you can enter 2 values at once like that with cin. If you can great, if you can't just seperate them.
After that it just seems your result would be (point1 x - point 2x)/2 and (point1y-point2y)/2. That would be the midpoint right? Not sure how it would look at negative numbers.
Past that you might want to look at learning to reuse your code. For instance the code to check point 1 and 2 are valid would be a lot alike so you could learn to call a seperate function and pass the point 1/2 there to check instead. You end up saving a few lines and get to reuse code which is always good. Then you run the calculation and everything looks a little tidier.
does anyone have any recommendations for guides on how to start programming android apps using eclipse as well as interfacing with a device connected via mini usb to usb? I don't really know java as I've been focusing on C/C++/C# in my classes.
On September 21 2012 15:35 CorsairHero wrote: does anyone have any recommendations for guides on how to start programming android apps using eclipse as well as interfacing with a device connected via mini usb to usb? I don't really know java as I've been focusing on C/C++/C# in my classes.
I would get familiar with Java before diving straight into the Android API. You may get overwhelmed by a lot of the documentation without first getting a handle on JavaDocs and the Java SDK.
On September 21 2012 08:16 FullAccess wrote: Hey I need some help with a program that I'm trying to write, its pretty simple so I think someone will be able to help. I'm programming in C++. The basic idea is for the user to enter two points, and the program to respond with a midpoint, as well as account for some user error. This is what it might look like: + Show Spoiler +
-------------------------------------------------------------------------------------------------- Where is your first point? 3.4 12.2)
You were missing the open parenthesis before the x coordinate! You were missing the comma to separate coordinates!
Please use proper notation...
Where is your second point? (13.4, 12.2
You were missing the close parenthesis after the y coordinate!
Please use proper notation...
Thank you!! Calculating... Done.
(3.4, 12.2) is 10 units away from (13.4, 12.2).
The midpoint of the line segment from (3.4, 12.2) to (13.4, 12.2) is (8.4, 12.2). -----------------------------------------------------------------
-------------------------------------------------------------------- #include <iostream> using namespace std; int main (void)
{ cout << "\n\t\tWelcome to the 2D point program!!!\n"; char ptx1, pty1; int pptx1, ppty1; cout << "\nWhere is your first point?"; cin >> pptx1, ppty1; cin.ignore(); if (ptx1 == (pptx1, ppty1)){ cout <<"\n\tYou were missing the open parenthesis before the x coordinate!"; cout <<"\n\tYou were missing the comma to separate coordinates!\n"; cout <<"\n\tPlease use proper notation...\n"; } else if (ptx1 == ((pptx1,"." ppty1)){ cout <<"\nYou were missing the close parenthesis after the y coordinate!\n" cout <<"\n\tPlease use proper notation...\n"; cout <<"\nThank you!!! Calculating... Done."; } else (ptx1 == ("("pptx1,"," ppty1")");{ cout <<"\nThank you!! Calculating... Done.\n"; } cout << "\nThank you!! Calculating... Done.\n"; cout << >> ptx1 >> "," >> pty1 >> "is" << << "units away from" << ptx2, pty2 >>"."; cout << "\nThe midpoint of the line segment from" << ptx1 << "." << pty1 >> "to" >>ptx2 >> pty2 >> "is" << return 0; } ----------------------------------------------------------------------------------------
I'm really new to programming so feel free to let me know anything. My program isn't nearly complete, but a push in the right direction would help. Thanks
What you're doing intuitively with parentheses and strings turns out to be very incorrect syntax. Read up on strings, character arrays, and pointers / dereferencing.
On September 21 2012 08:16 FullAccess wrote: Hey I need some help with a program that I'm trying to write, its pretty simple so I think someone will be able to help. I'm programming in C++. The basic idea is for the user to enter two points, and the program to respond with a midpoint, as well as account for some user error. This is what it might look like: + Show Spoiler +
-------------------------------------------------------------------------------------------------- Where is your first point? 3.4 12.2)
You were missing the open parenthesis before the x coordinate! You were missing the comma to separate coordinates!
Please use proper notation...
Where is your second point? (13.4, 12.2
You were missing the close parenthesis after the y coordinate!
Please use proper notation...
Thank you!! Calculating... Done.
(3.4, 12.2) is 10 units away from (13.4, 12.2).
The midpoint of the line segment from (3.4, 12.2) to (13.4, 12.2) is (8.4, 12.2). -----------------------------------------------------------------
-------------------------------------------------------------------- #include <iostream> using namespace std; int main (void)
{ cout << "\n\t\tWelcome to the 2D point program!!!\n"; char ptx1, pty1; int pptx1, ppty1; cout << "\nWhere is your first point?"; cin >> pptx1, ppty1; cin.ignore(); if (ptx1 == (pptx1, ppty1)){ cout <<"\n\tYou were missing the open parenthesis before the x coordinate!"; cout <<"\n\tYou were missing the comma to separate coordinates!\n"; cout <<"\n\tPlease use proper notation...\n"; } else if (ptx1 == ((pptx1,"." ppty1)){ cout <<"\nYou were missing the close parenthesis after the y coordinate!\n" cout <<"\n\tPlease use proper notation...\n"; cout <<"\nThank you!!! Calculating... Done."; } else (ptx1 == ("("pptx1,"," ppty1")");{ cout <<"\nThank you!! Calculating... Done.\n"; } cout << "\nThank you!! Calculating... Done.\n"; cout << >> ptx1 >> "," >> pty1 >> "is" << << "units away from" << ptx2, pty2 >>"."; cout << "\nThe midpoint of the line segment from" << ptx1 << "." << pty1 >> "to" >>ptx2 >> pty2 >> "is" << return 0; } ----------------------------------------------------------------------------------------
I'm really new to programming so feel free to let me know anything. My program isn't nearly complete, but a push in the right direction would help. Thanks
What you're doing intuitively with parentheses and strings turns out to be very incorrect syntax. Read up on strings, character arrays, and pointers / dereferencing.
On September 13 2012 17:11 darmousseh wrote: Have any of you guys started using NodeJs yet? It looks really exciting. Coming from the ruby on rails world, nodejs looks to me like it's the next Big Thing in the web developer world. What are your guy's thoughts?
If you are looking to write server or backend code, I strongly suggest you use something that is more scalable, and offers better concurrency and performance than NodeJs. While I can appreciate the need for javascript on the frontend, using it elsewhere does not seem like a good idea.
If you want to use something new and shiny, I suppose you could take a look at Go. There'll be a bit of a learning curve to get used to the syntax & style if you're coming from a js/RoR background, but it'd be worth it in the end.
NodeJs will certainly be easier for you if you're used to ruby on rails, so if you're just messing around with personal projects, it'll work just fine.
I'm not really worried about learning curve. I've learned about 10 different languages by now, it's more that I think nodejs could eventually replace ruby on rails as the standard in modern web development for startups. I've been playing around with express.js which is a sinatra like application for node and it feels like it's going somewhere.
My current jobs is in rails and I know it's going to be around for a while, but with all of the front end focused web development, I don't see a reason to not use google's V8 virtual machine on the backend. It is single threaded, allows event driven code (to handle more simultaneous requests) and I get to write code that works on the browser and in the backend. As server applications become increasingly api based (mearly xml/json responses), the amount of code on the backend will be small enough that we won't want a huge framework. I already use backbone for the frontend and it's working out great.
Anyway, what frameworks (not languages) do you think will become popular in the next 5 years?