treeturtle

- friends
315 link karma
1,844 comment karma
send messageredditor for
what's this?

TROPHY CASE


  • One-Year Club

    Verified Email

Our Education System by sfacetsin funny

[–]treeturtle 1 point2 points ago

On NPR there was a news segment on a school district where somewhere around 15% of students passed the standardized test. What was the district's response? Lower the grade needed to pass... I cried inside.

Also this...

[C++] Pushing/popping using a function help by mpmagiin learnprogramming

[–]treeturtle 0 points1 point ago

You need to run pop() on from, not to, else you do nothing. Also, you are only changing the local variables in the function, you should be passing the stacks address into the function so you can actually modify the stacks, not the parameters.

I want to learn to C++, But I've heard it's not the best language to being with by username135791in learnprogramming

[–]treeturtle 0 points1 point ago

If you're set on c++ you could always start with c, it may be a little rockier start but the transition will be much easier and learning about pointers and memory in general is quite important for c++.

[C++] I'm new to C++ programming and could use some advice by bobbarker030in learnprogramming

[–]treeturtle 1 point2 points ago

And while you're installing your chosen IDE, check out www.learncpp.com, it has everything you need

What are some fun pranks to play when you have ssh access to a friend's machine? by snobby_penguinin linux

[–]treeturtle 1 point2 points ago

download espeak and make his computer talk to him

Nothing is scarier than having your computer tell you that it sees you, it knows where you are, and it's coming for you.

[Java] Mouse events not firing fast enough? by euclioin learnprogramming

[–]treeturtle 0 points1 point ago

Exactly. the mouse listener should only be used to check if the mouse is pressed or not, perhaps by then setting a boolean variable true or false, then in your loop, if the mouse is pressed just draw a shape at the mouse.

Alternatively, instead of drawing a point at each mouse location, get the new mouse location and keep the old mouse location during a drag, then you can draw a line of points from the old point to the new.

What is the name of this type of music? by TrollKyin classicalmusic

[–]treeturtle 0 points1 point ago

You will love Balmorhea

Hey guys, I just need to ask... by NaughtierLinkin learnprogramming

[–]treeturtle 1 point2 points ago

Learning programming can be very challenging but is very rewarding. A great place to start would be to grab python and pyscripter and follow along with the programming videos over at Khan Academy. Python is a great starter language and you can take the concepts back to c++ if you'd like.

I typically prefer books, but if you don't want to fork over some money to learn c++ Learncpp.com is an amazing step by step resource for c++.

As for as map design goes, two good ways to get started are buy using Valve's Hammer Editor which you can get through Steam. If you're not familar with steam, let me know, I can help you get hammer and a game (Team Fortress 2) set up so you can start mapping. Or another great choice is UnrealEd which you can use with a number of games that use the Unreal Engine, a great choice would be Unreal Tournament 3. Again, if you need help getting the editors set up, let me know. Both Hammer, and UnrealEd have awesome communities and tons of tutorials and documentation out there for the taking.

There are tons of other alternatives out there for map design, but these I believe are pretty accessible and understandable. If you get into Hammer, you can use you c++ knowledge to make your own mod full of your own Hammer maps.

Planning a High School Programming Course by Teddy2147in learnprogramming

[–]treeturtle 2 points3 points ago

I use emacs everyday at work, I would never recommend it to beginners, I can see where you're coming from though.

Completed two semesters of programming classes so far. What can I do over the summer to keep learning? by NuclearGoatVomitin learnprogramming

[–]treeturtle 0 points1 point ago

Vim is great, but don't forget about emacs! (I'm totally not biased). But seeing that you'll be at the command line alot, I definitely recommend learning Bash, once you know bash, automating mundane tasks becomes second nature. I think getting decent at writing bash scripts is one of the most 'useful' things I've done.

Or, you could solve the Eight Queens Puzzle, it's a great exercise in recursion and backtracking.

I'm sure you'll learn about graphs in your data structures class but they would be an easy thing to get ahead in.

If you have an old project you liked working on, three great ways to keep your knowledge growing are

  • doing a complete rewrite using knowledge and methods you didn't know about before

  • expanding the project in any direction

  • converting it to other languages

Planning a High School Programming Course by Teddy2147in learnprogramming

[–]treeturtle 0 points1 point ago

Netbeans is great too, it has all the same features and more. Netbeans would be great but I think the inclusion of a gui editor and some other advanced features might make it a bit overwhelming.

But it definitely makes sense to at least explain what [classes] are in the beginning so everything's not complete nonsense.

That's what I mean, don't teach OO early, just talk about it. They will have to make a class for every program, they should at least understand why.

Anywho, best of luck to ya!

Best introduction to programming for 6-year-old? by bourgeois_WASPin learnprogramming

[–]treeturtle 1 point2 points ago*

I started young with Game Editor, you can make pretty decent simple games while only writing a view lines of code. You can just click your way to a game.

make a new actor -> use this image -> when up is pressed -> perform an action -> xvelocity += 2.

Boom, a few clicks and one like of code later and you have a jumping main character. I can't imagine it would be easy for her to understand how to make a game, but with a 6 year old imagination I'm sure she can think of one. As she thinks of what she wants to happen, you can make it and tell her how you did it. Objects in the game can just be simply images drawn in paint so she could totally make all the artwork.

The more I think about this the more I love the idea of a 6 year old thinking up and game and drawing the graphics and paint and having the game actually made by someone. I want to play that game.

In school for computer engineering. Absolutely LOVING programming. Decided to learn a new language over the summer. Any ideas? by Quinciousin learnprogramming

[–]treeturtle 2 points3 points ago

I would just stick with C++ and Java and continue learning programming concepts. When it comes down to it, if you can write a bitmapped vector trie in Java, then you can in almost any language, its just a matter of syntax. Java and C++ are incredibly popular, strong, well documented, and universally used. Grab one or both of them, and start learning new concepts, not languages.

But if you are really set on a new language. You might as well get crazy and just learn Haskell.

Or maybe Ruby.

Planning a High School Programming Course by Teddy2147in learnprogramming

[–]treeturtle -3 points-2 points ago

A lot of people will disagree, but you should absolutely have them all working in eclipse. Don't try to go hardcore with just a simple text editor. Syntax highlighting and autocompletion will make it MUCH easier for your students to learn. It is impossible not to realize that you missed a semicolon in eclipse because it immediately points it out to you and tells you the problem.

Seriously, use eclipse.

Source: Personal experience, eclipse is what saved me from giving up on programming.

Also, talk about classes and OO early on. Don't actually have students use it, but students might see classes like Scanner, Random, Math, and System, very early on, and not knowing what

Scanner input = new Scanner(System.in);

and

System.out.println();

are actually doing can be very confusing (it was for me in high school).

Macbook replies "permission denied" when I enter the /etc/profile bash command by WrathoftheWalrusin learnprogramming

[–]treeturtle 1 point2 points ago*

that isn't a command. It is a bash script itself, if you want to run it, you have to run "bash /etc/profile", but it really won't do anything, it's not made for you to run. Read This for more info about the file

Be careful before you start messing with things like /etc/profile, if you want to snoop around in it, make a backup first.

a command is just a program, in this case, you have to run the program bash, and pass it the profile file as an argument.

If you're just learning bash, this file is a good thing to look at as an example. If you want to view the file from terminal you can either run ~$cat /etc/profile, or ~$nano /etc/profile. the cat program has a few uses, printing file contents is not really its main purpose but it is a handy one. Nano is a text editor right in your terminal, Ctrl-X exits nano.

Help me find a distro? by fableflamein linux

[–]treeturtle -1 points0 points ago

xubuntu

Am i the only with this problem ? by nczduckyin pics

[–]treeturtle 0 points1 point ago

lol.

Am i the only with this problem ? by nczduckyin pics

[–]treeturtle 0 points1 point ago

lol.

was i molested? by lurkertonin AskReddit

[–]treeturtle 0 points1 point ago

no.

Did you ever have a moment of "evil genius" that you actually went through with? by EvaSylvestrein AskReddit

[–]treeturtle 4 points5 points ago

expelled? The oil you made could easy kill someone who is very allergic to it. I'm quite allergic and have been hospitalized by less. You dodged a fucking bullet.

Another question about Model-View-Controller (Java) by nubyw00tzin learnprogramming

[–]treeturtle 0 points1 point ago

All your action listeners should be defined in your controller and added to your view objects via methods. The actionPerfomed Method should call a method in your controller which normal calls a method in the model, and passes it's result onto some gui element in your view. You seem to be doing it right, your view and gui should have no interaction or awareness of each other.

Improving My Eclipse Quality of Life by A_Mannin learnprogramming

[–]treeturtle 0 points1 point ago

  • Color Theme, for pretty colors

  • JUnit, for testing

  • UMLet, for UML

  • Emacs+, because speed

Which Coding Language Should I Learn? by TheRobotOverlordin learnprogramming

[–]treeturtle 5 points6 points ago

You really can't go wrong with Java or C#.

view more: next