|
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 May 14 2013 23:41 LightMind wrote: Hmm need some help here. As a computer science student in my first year, I am planning to do some self-study during this summer break. I am hoping to go into game programming. I have some experience with Python, C and C++, and is hoping to go more advance with either C or C++.
Which language would you recommend to go in depth with for self-studying during this summer holiday? And are there any books to recommend?
Thanks! What do you want to do when you graduate? C++ is for optimized games and hard-core dev work. General game programming is much simpler and streamlined in scripting languages like Python, Lua, Javascript. Actionscript is also great for pumping out games.
If you want to learn about software developement then yes C++. Otherwise, if you just want to learn about gameplay and general game programming for fun or more as a hobby, then other more lax languages are a better choice.
For C++ I recommend C++ for Game Programmers by Noel Llopis.
|
On May 14 2013 23:41 LightMind wrote: Hmm need some help here. As a computer science student in my first year, I am planning to do some self-study during this summer break. I am hoping to go into game programming. I have some experience with Python, C and C++, and is hoping to go more advance with either C or C++.
Which language would you recommend to go in depth with for self-studying during this summer holiday? And are there any books to recommend?
Thanks!
If you want to get into games just pick up Unity, learn C# and crank out some actual games. It's free and straight forward.
Sure you can grab a book like Game Engine Architecture or any other myriad of books but really you don't need to know serious engine shit until you're actually in the industry or at least have a few games under your belt.
Also I'm going to be a broken record and repeat myself again, its nothing to do with the language, yes you learn more about C++ when you've been doing it for a long time but honestly that doesn't matter if you don't know anything about game systems and you're not really going to be in a position any time soon when you have to 'decide' on a language.
Don't focus on a language, focus on the systems, dont bother 'learning Python', instead go over to edX and learn Artificial Intelligence using Python. Most of the systems stuff for games is likely to be taught in C++ but people do still make games in other languages, especially C# (see XNA / Monogame) depending on platform / scope and their own skill, people even make PC games in java for some bizarre unknown reason.
So yea, I still recommend just grabbing Unity and making some actual games, don't get bogged down by systems and rigors of C++, once you've got your head around the basics, pick your favorite area and try to delve a bit deeper.
|
Does anyone here use JUnit & Ant? Thoughts? For those of you who don't know them, JUnit is a Java test framework, and Ant is a build tool.
|
On May 15 2013 08:39 darkness wrote: Does anyone here use JUnit & Ant? Thoughts? For those of you who don't know them, JUnit is a Java test framework, and Ant is a build tool.
I use them some, although I prefer alternatives in each. Ant vs Maven is a little more religious so I won't get into it. However, I quite enjoy using TestNG over Junit.
What kind of thoughts would you like to know about them?
|
JUnit yes. Where I work, the build system kinda makes the benefits of TestNG over JUnit completely moot, so I just use JUnit. And JTest is, well, not free.
And we have our own proprietary build system, so no ant.
Beyond that, not much to say. Tests are good, write lots of tests. At this point like half of the code I write is tests.
|
I use selenium and testng with maven. Personally I feel like automated testing is a waste of valuable developer time that could be spent on more products but it's my line of work. I'm not going to bring it up to anyone at work that I think my work is a load of crock.
I'd rather have products with good features and functionality than having to constantly update test suites as products are developed. I often feel there should be one good test cases to test for past regressions that are likely to come back. More emphasis in my opinion should be spent on organizing good manual testing of software and employing customer feedback since there is just too much to do for automation testing.
|
On May 15 2013 12:35 obesechicken13 wrote: I use selenium and testng with maven. Personally I feel like automated testing is a waste of valuable developer time that could be spent on more products but it's my line of work. I'm not going to bring it up to anyone at work that I think my work is a load of crock.
I'd rather have products with good features and functionality than having to constantly update test suites as products are developed. I often feel there should be one good test cases to test for past regressions that are likely to come back. More emphasis in my opinion should be spent on organizing good manual testing of software and employing customer feedback since there is just too much to do for automation testing. Tests are there to help you build new features and deal with requirements changes better, not to slow you down. Writing code without tests may seem faster in the short run, but in the long run you'll write code with more bugs and higher coupling that makes it harder to have time for doing new things. It sounds like from what you've said that you're mostly writing large scale integration tests, which is not really what people here are talking about. Such tests are necessary, but should not be the major focus of a proper testing strategy. They are hard to write, take a long time to run, and don't really give you all that much in the end. Unit tests on the other hand, as well as small-scale integration tests can be quite helpful and easy to write. I wouldn't throw the baby out with the bath water just because you find selenium to not be all that valuable.
I've been at a company that had next to no tests and a QA team larger than the actual dev team, and am now at a company with a large test suite and a QA team roughly 1/6th the size of the dev team. I can very easily say that the latter is vastly preferable
|
On May 15 2013 13:11 tec27 wrote:Show nested quote +On May 15 2013 12:35 obesechicken13 wrote: I use selenium and testng with maven. Personally I feel like automated testing is a waste of valuable developer time that could be spent on more products but it's my line of work. I'm not going to bring it up to anyone at work that I think my work is a load of crock.
I'd rather have products with good features and functionality than having to constantly update test suites as products are developed. I often feel there should be one good test cases to test for past regressions that are likely to come back. More emphasis in my opinion should be spent on organizing good manual testing of software and employing customer feedback since there is just too much to do for automation testing. Tests are there to help you build new features and deal with requirements changes better, not to slow you down. Writing code without tests may seem faster in the short run, but in the long run you'll write code with more bugs and higher coupling that makes it harder to have time for doing new things. It sounds like from what you've said that you're mostly writing large scale integration tests, which is not really what people here are talking about. Such tests are necessary, but should not be the major focus of a proper testing strategy. They are hard to write, take a long time to run, and don't really give you all that much in the end. Unit tests on the other hand, as well as small-scale integration tests can be quite helpful and easy to write. I wouldn't throw the baby out with the bath water just because you find selenium to not be all that valuable. I've been at a company that had next to no tests and a QA team larger than the actual dev team, and am now at a company with a large test suite and a QA team roughly 1/6th the size of the dev team. I can very easily say that the latter is vastly preferable 
I'll second this. As a developer who works at a company with no test suites and a qa team of two, I can tell you that the lack of automated unit tests make our job pretty tough. Our main application code base is 10 yrs old -- we've built up a ton of technical debt that takes quite a bit of domain knowledge just to make the simplest of changes. This model worked really well when you have a team of 6 developers who have all been there since the beginning of the company, not so well when you have 10 developers who a majority of developers have been there less than 2 yrs. This model doesn't even pass the snicker test at bigger companies.
I've spent the last two years trying to push the benefits of testing to the other devs, but adoption is slow. Luckily, I got to experience the transition first hand of writing tests slows me down to writing tests makes my job easier/faster. It definitely takes time to become good at, though, so I wouldn't base any conclusions on how beneficial it is until you spend a couple months writing tests first and using mocks. I truly believe my code is better structured and modularized just because I started writing my tests first.
|
On May 15 2013 19:51 berated- wrote:Show nested quote +On May 15 2013 13:11 tec27 wrote:On May 15 2013 12:35 obesechicken13 wrote: I use selenium and testng with maven. Personally I feel like automated testing is a waste of valuable developer time that could be spent on more products but it's my line of work. I'm not going to bring it up to anyone at work that I think my work is a load of crock.
I'd rather have products with good features and functionality than having to constantly update test suites as products are developed. I often feel there should be one good test cases to test for past regressions that are likely to come back. More emphasis in my opinion should be spent on organizing good manual testing of software and employing customer feedback since there is just too much to do for automation testing. Tests are there to help you build new features and deal with requirements changes better, not to slow you down. Writing code without tests may seem faster in the short run, but in the long run you'll write code with more bugs and higher coupling that makes it harder to have time for doing new things. It sounds like from what you've said that you're mostly writing large scale integration tests, which is not really what people here are talking about. Such tests are necessary, but should not be the major focus of a proper testing strategy. They are hard to write, take a long time to run, and don't really give you all that much in the end. Unit tests on the other hand, as well as small-scale integration tests can be quite helpful and easy to write. I wouldn't throw the baby out with the bath water just because you find selenium to not be all that valuable. I've been at a company that had next to no tests and a QA team larger than the actual dev team, and am now at a company with a large test suite and a QA team roughly 1/6th the size of the dev team. I can very easily say that the latter is vastly preferable  I'll second this. As a developer who works at a company with no test suites and a qa team of two, I can tell you that the lack of automated unit tests make our job pretty tough. Our main application code base is 10 yrs old -- we've built up a ton of technical debt that takes quite a bit of domain knowledge just to make the simplest of changes. This model worked really well when you have a team of 6 developers who have all been there since the beginning of the company, not so well when you have 10 developers who a majority of developers have been there less than 2 yrs. This model doesn't even pass the snicker test at bigger companies. I've spent the last two years trying to push the benefits of testing to the other devs, but adoption is slow. Luckily, I got to experience the transition first hand of writing tests slows me down to writing tests makes my job easier/faster. It definitely takes time to become good at, though, so I wouldn't base any conclusions on how beneficial it is until you spend a couple months writing tests first and using mocks. I truly believe my code is better structured and modularized just because I started writing my tests first.
That hurts to hear. I'm sorry. =(
|
On May 15 2013 13:11 tec27 wrote:Show nested quote +On May 15 2013 12:35 obesechicken13 wrote: I use selenium and testng with maven. Personally I feel like automated testing is a waste of valuable developer time that could be spent on more products but it's my line of work. I'm not going to bring it up to anyone at work that I think my work is a load of crock.
I'd rather have products with good features and functionality than having to constantly update test suites as products are developed. I often feel there should be one good test cases to test for past regressions that are likely to come back. More emphasis in my opinion should be spent on organizing good manual testing of software and employing customer feedback since there is just too much to do for automation testing. Tests are there to help you build new features and deal with requirements changes better, not to slow you down. Writing code without tests may seem faster in the short run, but in the long run you'll write code with more bugs and higher coupling that makes it harder to have time for doing new things. It sounds like from what you've said that you're mostly writing large scale integration tests, which is not really what people here are talking about. Such tests are necessary, but should not be the major focus of a proper testing strategy. They are hard to write, take a long time to run, and don't really give you all that much in the end. Unit tests on the other hand, as well as small-scale integration tests can be quite helpful and easy to write. I wouldn't throw the baby out with the bath water just because you find selenium to not be all that valuable. I've been at a company that had next to no tests and a QA team larger than the actual dev team, and am now at a company with a large test suite and a QA team roughly 1/6th the size of the dev team. I can very easily say that the latter is vastly preferable  I think the QA team 1/6th the size of the dev team sounds better.
I'm not too familiar with unit testing but I feel like there would be many issues if you didn't test integration points or didn't test end user experience. A unit test can pass for some functionality but users might not be able to access your site at all.
|
We prefer small teams of like 5 developers, 5+ testers, and no more maybe than ~15 people total.
In practice our teams are much smaller than even that. Given how critical proper testing is (and how important it is to catch issues early), having a test team at least equal to your dev team is desirable. It's different once a product is in production since we usually fall into a supporting or secondary role (e.g. our involvement falls off more and more each month until they're essentially autonomous).
|
On May 16 2013 01:27 obesechicken13 wrote:I'm not too familiar with unit testing but I feel like there would be many issues if you didn't test integration points or didn't test end user experience. A unit test can pass for some functionality but users might not be able to access your site at all. You do have to do integration tests, yes. Even if you have the most genius-designed system that's all modular and cool 'n shit, it's really easy to let some stupid stuff fall through the cracks if you don't have more end-to-end integration tests set up.
I think tec was just pointing out that you can't let integration tests be the majority of your emphasis, because, as someone pointed out above, integration tests can be a fucking pain in the ass to fix, and are as a whole a lot more brittle. And webdriver/selenium type stuff just adds another layer of absolute pain.
So integration tests are good, yes, but for a dev spending more time on smaller scale tests is a better use of time.
|
On May 16 2013 10:21 phar wrote:Show nested quote +On May 16 2013 01:27 obesechicken13 wrote:I'm not too familiar with unit testing but I feel like there would be many issues if you didn't test integration points or didn't test end user experience. A unit test can pass for some functionality but users might not be able to access your site at all. You do have to do integration tests, yes. Even if you have the most genius-designed system that's all modular and cool 'n shit, it's really easy to let some stupid stuff fall through the cracks if you don't have more end-to-end integration tests set up. I think tek was just pointing out that you can't let integration tests be the majority of your emphasis, because, as someone pointed out above, integration tests can be a fucking pain in the ass to fix, and are as a whole a lot more brittle. And webdriver/selenium type stuff just adds another layer of absolute pain. So integration tests are good, yes, but for a dev spending more time on smaller scale tests is a better use of time. Ok. Well as I said, I know very little about unit testing. I think I tried it in school once.
|
Yeah, basically that. Integration tests are important, but if they're exclusively how you're testing your app (or even the major part of it) you're in for some pain. I'm not like a TDD fetishist and I only do it where I think its appropriate/helpful, but this book is pretty good on the subject of testing, if you're interested:
Growing Object-Oriented Software, Guided by Tests
|
On May 16 2013 10:29 obesechicken13 wrote:Show nested quote +On May 16 2013 10:21 phar wrote:On May 16 2013 01:27 obesechicken13 wrote:I'm not too familiar with unit testing but I feel like there would be many issues if you didn't test integration points or didn't test end user experience. A unit test can pass for some functionality but users might not be able to access your site at all. You do have to do integration tests, yes. Even if you have the most genius-designed system that's all modular and cool 'n shit, it's really easy to let some stupid stuff fall through the cracks if you don't have more end-to-end integration tests set up. I think tek was just pointing out that you can't let integration tests be the majority of your emphasis, because, as someone pointed out above, integration tests can be a fucking pain in the ass to fix, and are as a whole a lot more brittle. And webdriver/selenium type stuff just adds another layer of absolute pain. So integration tests are good, yes, but for a dev spending more time on smaller scale tests is a better use of time. Ok. Well as I said, I know very little about unit testing. I think I tried it in school once. I didn't even touch them until grad school. They're a weekly occurrence these days.
|
I think the point of unit testing is to update the test suite as time goes, no one tells you to write all tests within a small time frame. You write the test method first, then you implement the exact method. At least this is what Extreme Programming methodology teaches.
|
I'm sort of new to web design. I've learned the basics of Python, HTML, CSS, and am still learning JavaScript (which is easy because concepts are similar to Python) via Codecademy.com.
I'm making a website, and when I zoom-in in the browser window, my little menu bar gets moved over and under the banner, a form is falling out of the border, and other crazy stuff. Are there ways that people prevent this?
When I zoom-in to TL, things just get bigger and fall off the screen, which is what should happen. Instead, things feel free to move all over on my site. Also, it is not visible on the web, as it's still in development (I view it from my computer), and I'm not sure if that has anything to do with it.
|
On May 17 2013 06:38 Bionicrm wrote:I'm sort of new to web design. I've learned the basics of Python, HTML, CSS, and am still learning JavaScript (which is easy because concepts are similar to Python) via Codecademy.com. I'm making a website, and when I zoom-in in the browser window, my little menu bar gets moved over and under the banner, a form is falling out of the border, and other crazy stuff. Are there ways that people prevent this? When I zoom-in to TL, things just get bigger and fall off the screen, which is what should happen. Instead, things feel free to move all over on my site.
Also, it is not visible on the web, as it's still in development (I view it from my computer), and I'm not sure if that has anything to do with it. I don't think so. It probably has to do with your css.
TL doesn't seem to care about your zoom whereas your css probably does.
|
If I'm dealing with a text file where the last line is Baggins Bilbo;05-89378 with no space or newline character at the end of the file, how do I detect the "last character" which doesn't exist, so that I can cut that number off and place it into a variable?
I can do it with other lines using code such as
if(input[i] == '\n') { temp[j] = '\0'; j = -1; printf("Temp number: %s\n", temp); strcpy(tempPhone.number, temp); }
but that doesn't work when there IS no newline at the end of the number.
This is in C by the way.
I've tried using input[i] == NULL, which didn't work either (I would have thought it would because it's trying to get a character which doesn't exist). Perhaps I don't understand NULL properly yet.
|
On May 17 2013 11:53 Birdie wrote:If I'm dealing with a text file where the last line is Baggins Bilbo;05-89378 with no space or newline character at the end of the file, how do I detect the "last character" which doesn't exist, so that I can cut that number off and place it into a variable? I can do it with other lines using code such as if(input[i] == '\n') { temp[j] = '\0'; j = -1; printf("Temp number: %s\n", temp); strcpy(tempPhone.number, temp); }
but that doesn't work when there IS no newline at the end of the number. This is in C by the way. I've tried using input[i] == NULL, which didn't work either (I would have thought it would because it's trying to get a character which doesn't exist). Perhaps I don't understand NULL properly yet. If you're dealing with a text file try reading line by line, instead of with strcpy. Use fscanf. Looky here: http://www.randygaul.net/2013/02/07/fscanf-power/
|
|
|
|