Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 174 175 [176] 177 178 ... 796

Author Topic: if self.isCoder(): post() #Programming Thread  (Read 888038 times)

alway

  • Bay Watcher
  • 🏳️‍⚧️
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #2625 on: June 28, 2012, 10:14:36 pm »

For work I had mistakenly been developing 64 bit code instead of the 32 bit I needed (Ubuntu 64 bit + Codeblocks)... I spent about 6 hours trying to get the libraries working for a 32 bit build (mostly due to some incompatible libraries, one of which was being strange) and ended up saying 'screw this' and wiped the computer to put Ubuntu 32 bit on it. Which took under 2 hours to get fully compiling in 32 bit. :P

I was certainly looking back fondly at VS at that point. Though, granted, that's probably more due to inexperience with Ubuntu and Codeblocks.
Logged

Mego

  • Bay Watcher
  • [PREFSTRING:MADNESS]
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #2626 on: June 29, 2012, 02:09:44 pm »

I wish it was easier to add libraries in all compilers, not just VC++.

It's easy with gcc. Use the -L flag to say where the library is located (-L/home/Mego/random_library), and -l to include the library (-lrandom_library for a file named librandom_library.a).

Siquo

  • Bay Watcher
  • Procedurally generated
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #2627 on: June 29, 2012, 02:12:34 pm »

I wish it was easier to add libraries in all compilers, not just VC++.

It's easy with gcc. Use the -L flag to say where the library is located (-L/home/Mego/random_library), and -l to include the library (-lrandom_library for a file named librandom_library.a).
Well, and then you forgot to include the depencies and the dependencies of the dependencies which are of course not compiled yet so you'd have to do that yourself only it was made in VC2006 and that's the only thing it'll compile in, then they must be in the right order, include the right directories, and then you pray it won't go to hell the next time you add a library.
Logged

This one thread is mine. MIIIIINE!!! And it will remain a happy, friendly, encouraging place, whether you lot like it or not. 
will rena,eme sique to sique sxds-- siquo if sucessufil
(cant spel siqou a. every speling looks wroing (hate this))

Skyrunner

  • Bay Watcher
  • ?!?!
    • View Profile
    • Portfolio
Re: if self.isCoder(): post() #Programming Thread
« Reply #2628 on: June 29, 2012, 02:14:45 pm »

Also, I'm not savvy with compilers at all so I don't inow what the heck gcc is (I have heard of it), why my things don't work despite all stuff saying they should work, and .. stuff.
Logged

bay12 lower boards IRC:irc.darkmyst.org @ #bay12lb
"Oh, they never lie. They dissemble, evade, prevaricate, confoud, confuse, distract, obscure, subtly misrepresent and willfully misunderstand with what often appears to be a positively gleeful relish ... but they never lie" -- Look To Windward

Mego

  • Bay Watcher
  • [PREFSTRING:MADNESS]
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #2629 on: June 29, 2012, 02:22:27 pm »

I wish it was easier to add libraries in all compilers, not just VC++.

It's easy with gcc. Use the -L flag to say where the library is located (-L/home/Mego/random_library), and -l to include the library (-lrandom_library for a file named librandom_library.a).
Well, and then you forgot to include the depencies and the dependencies of the dependencies which are of course not compiled yet so you'd have to do that yourself only it was made in VC2006 and that's the only thing it'll compile in, then they must be in the right order, include the right directories, and then you pray it won't go to hell the next time you add a library.

Dependencies of a library should be compiled when the library is compiled. If the Makefile doesn't do that, the person who supplied the library is an idiot, so you probably don't want their library anyway.

Order of inclusion for libraries doesn't matter with gcc afaik.

Standardized library locations in *NIX filesystems (/lib, /usr/lib, /usr/local/lib) are very helpful.

kaijyuu

  • Bay Watcher
  • Hrm...
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #2630 on: July 03, 2012, 09:59:15 am »

Asking here since no one else I know has a clue, and google has failed me.


I need a good Python IDE. I'm doing a major overhaul of my program and I *know* there's a billion typos in here, but I really, really, really don't want to find said typos as errors at runtime. That will take forever to fix them all, as I have to run it until I get an error, go back and fix, repeat 800 times. I'm sick of doing that.

Any Python IDE that's not incredibly slow and is able to check for undefined variables (ie, ones I misspelled) would be awesome. I don't really care about other features like autocomplete.
Logged
Quote from: Chesterton
For, in order that men should resist injustice, something more is necessary than that they should think injustice unpleasant. They must think injustice absurd; above all, they must think it startling. They must retain the violence of a virgin astonishment. When the pessimist looks at any infamy, it is to him, after all, only a repetition of the infamy of existence. But the optimist sees injustice as something discordant and unexpected, and it stings him into action.

Lightningfalcon

  • Bay Watcher
  • Target locked. Firing main cannon.
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #2631 on: July 03, 2012, 12:41:54 pm »

What would be a good C compiler thing?  I will be able to get one from Microsoft next year for free, but I want would like to go ahead and start learning how to program.
Logged
Interdum feror cupidine partium magnarum circo vincendarum
W-we just... wanted our...
Actually most of the people here explicitly wanted chaos and tragedy. So. Uh.

Virex

  • Bay Watcher
  • Subjects interest attracted. Annalyses pending...
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #2632 on: July 03, 2012, 01:00:36 pm »

If you only need a compiler, GCC will do. It comes standard on Linux systems if you happen to have one. Otherwise, you can get MinGW for windows or Xcode for MacOS, which include it and all supporting software needed to run it.
« Last Edit: July 03, 2012, 01:02:21 pm by Virex »
Logged

Siquo

  • Bay Watcher
  • Procedurally generated
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #2633 on: July 03, 2012, 03:53:38 pm »

He's about to "learn how to program", I guess he wants the full package with IDE and tutorials on how to set everything up, preferably for windows.

Here, have a tutorial.
Logged

This one thread is mine. MIIIIINE!!! And it will remain a happy, friendly, encouraging place, whether you lot like it or not. 
will rena,eme sique to sique sxds-- siquo if sucessufil
(cant spel siqou a. every speling looks wroing (hate this))

MorleyDev

  • Bay Watcher
  • "It is not enough for it to just work."
    • View Profile
    • MorleyDev
Re: if self.isCoder(): post() #Programming Thread
« Reply #2634 on: July 10, 2012, 06:57:17 pm »

At work I'm rapidly coming to love Test Driven Design. If you combine good tests with letting the code be the comments and the amount of explicit documentation needed drops by several orders of magnitude. Glorious.

Seriously, wrapping everything in unit, integration and acceptance tests that you can use to make sure your blackbox implementation works is incredibly effective, and lets you think about the important things (inputs, output and how the class will be used) from the get go. And helps stop you or someone else breaking things during a refactor. And enforce good separation of responsibilities, which is good practice.

I weep that this wasn't taught at university (and don't know of many Universities that do mention it with any particular emphasis). Even Unit Testing only got a token mention...
« Last Edit: July 10, 2012, 07:01:26 pm by MorleyDev »
Logged

Twiggie

  • Bay Watcher
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #2635 on: July 10, 2012, 07:29:14 pm »

I'm in my second year of CS, we've had two courses on telling us to use TDD :p
Logged

Nadaka

  • Bay Watcher
    • View Profile
    • http://www.nadaka.us
Re: if self.isCoder(): post() #Programming Thread
« Reply #2636 on: July 10, 2012, 11:55:26 pm »

At work I'm rapidly coming to love Test Driven Design. If you combine good tests with letting the code be the comments and the amount of explicit documentation needed drops by several orders of magnitude. Glorious.

Seriously, wrapping everything in unit, integration and acceptance tests that you can use to make sure your blackbox implementation works is incredibly effective, and lets you think about the important things (inputs, output and how the class will be used) from the get go. And helps stop you or someone else breaking things during a refactor. And enforce good separation of responsibilities, which is good practice.

I weep that this wasn't taught at university (and don't know of many Universities that do mention it with any particular emphasis). Even Unit Testing only got a token mention...

Yup, it is a good thing. But be warned, never EVER try to convert a project to test driven design in mid stream. It has almost exactly the opposite effect of running tdd from the start. It is a titanic sink of development time and compound headaches of complexity.
Logged
Take me out to the black, tell them I ain't comin' back...
I don't care cause I'm still free, you can't take the sky from me...

I turned myself into a monster, to fight against the monsters of the world.

Squeegy

  • Bay Watcher
  • I don't really have any answers for you.
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #2637 on: July 11, 2012, 01:55:07 am »

If anyone wants to experiment with Ruby, I can't promise I'll have all the answers, but I've been tinkering with it on and off for like a year now and I'm a damn good googler. I can try to answer any questions, as long as you're asking them about the language and not, say, Ruby on Rails.
Logged
I think I'm an alright guy. I just wanna live until I gotta die. I know I'm not perfect, but God knows I try.
Kobold Name Generator
⚔Dueling Blades⚔
Fertile Lands
The Emerald Isles

MorleyDev

  • Bay Watcher
  • "It is not enough for it to just work."
    • View Profile
    • MorleyDev
Re: if self.isCoder(): post() #Programming Thread
« Reply #2638 on: July 14, 2012, 02:38:46 pm »

Yup, it is a good thing. But be warned, never EVER try to convert a project to test driven design in mid stream. It has almost exactly the opposite effect of running tdd from the start. It is a titanic sink of development time and compound headaches of complexity.

Actually where I work have found a way to do it: Assume the old code just "works" for all new test-driven classes, and introduce unit tests as you are either refactoring the old code (which is going to be needed eventually) or tracking down bugs that stray into the old code. Don't do it in one go, just slowly ease the old code into testing as you go along.

The one issue I'm really finding with the heavy application of agile development practices there is pair programming. I'm one of those people who finds prolonged face-to-face interaction with other people tiring (not exactly unpleasant, just kinda draining), so whilst I'm getting through work fine I'm going home not tired but still utterly unwilling to talk to people most days. Since I do most of my socialisation with friends on weekends and/or when drinking teh alcomahols this isn't much of a problem, but coming home to family (whom I'm temporarily back living with) is soul crushing.

Yes mother, my day was fine. No, I am not hungry. Please stop trying to be nice and just leave me alone.
« Last Edit: July 14, 2012, 02:40:41 pm by MorleyDev »
Logged

Valid_Dark

  • Bay Watcher
  • If you wont let me Dream, I wont let you sleep.
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #2639 on: July 16, 2012, 06:43:59 am »

derpa derpa derp derp.

This is why you shouldn't post drunk at 5 am.

Post removed by author.
« Last Edit: July 16, 2012, 07:42:13 pm by Valid_Dark »
Logged
There are 10 types of people in this world. Those that understand binary and those that don't


Quote
My milkshake brings all the criminals to justice.
Pages: 1 ... 174 175 [176] 177 178 ... 796