Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 460 461 [462] 463 464 ... 796

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

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #6915 on: January 28, 2015, 07:44:37 am »

I use TortoiseGit, which is great.
Logged

miauw62

  • Bay Watcher
  • Every time you get ahead / it's just another hit
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #6916 on: January 28, 2015, 08:06:49 am »

I noticed a lot of these errors eventually :V
Not fully clearing an array is pretty obvious when -876516579 starts to show up at the edges whenever you rotate a piece.
I also had my axes messed up completely, which I fixed.
Also, I DO need templates, because I also want to clear the playing field.
Current version is here. Mostly working, I still need to do rotation collision checking, line clearing, colors and fixing colissions at the borders.
Logged

Quote from: NW_Kohaku
they wouldn't be able to tell the difference between the raving confessions of a mass murdering cannibal from a recipe to bake a pie.
Knowing Belgium, everyone will vote for themselves out of mistrust for anyone else, and some kind of weird direct democracy coalition will need to be formed from 11 million or so individuals.

Thief^

  • Bay Watcher
  • Official crazy person
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #6917 on: January 28, 2015, 08:09:28 am »

Good going :)
Logged
Dwarven blood types are not A, B, AB, O but Ale, Wine, Beer, Rum, Whisky and so forth.
It's not an embark so much as seven dwarves having a simultaneous strange mood and going off to build an artifact fortress that menaces with spikes of awesome and hanging rings of death.

Telgin

  • Bay Watcher
  • Professional Programmer
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #6918 on: January 28, 2015, 08:28:34 am »

I use TortoiseGit, which is great.

I used TortoiseGit for a while and agree that it's a pretty good client.  Especially if you're just learning Git, it might be helpful to avoid being further confused by the CLI options.  We all pretty much stopped using it at work though, because the one problem we ran into with it is that becomes extraordinarily slow if you have a very large number of files in your repository.  I'm not sure why it's so much slower than the CLI in that case.
Logged
Through pain, I find wisdom.

miauw62

  • Bay Watcher
  • Every time you get ahead / it's just another hit
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #6919 on: January 28, 2015, 08:37:00 am »

I agree that TortoiseGit is pretty good. It has a few confusingly named functions though, mainly the one labeled "revert", which is not the same as the CLI "git revert".
Logged

Quote from: NW_Kohaku
they wouldn't be able to tell the difference between the raving confessions of a mass murdering cannibal from a recipe to bake a pie.
Knowing Belgium, everyone will vote for themselves out of mistrust for anyone else, and some kind of weird direct democracy coalition will need to be formed from 11 million or so individuals.

Thief^

  • Bay Watcher
  • Official crazy person
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #6920 on: January 28, 2015, 08:48:44 am »

I've got a little project to link here: http://www.bay12forums.com/smf/index.php?topic=148004.0
Logged
Dwarven blood types are not A, B, AB, O but Ale, Wine, Beer, Rum, Whisky and so forth.
It's not an embark so much as seven dwarves having a simultaneous strange mood and going off to build an artifact fortress that menaces with spikes of awesome and hanging rings of death.

DreamThorn

  • Bay Watcher
  • Seer of Void
    • View Profile
    • My game dev hobby blog (updates almost never)
Re: if self.isCoder(): post() #Programming Thread
« Reply #6921 on: January 28, 2015, 08:55:52 am »

Since I use TortoiseSVN at work, maybe TortoiseGit will make sense to me.
Logged
This is what happens when we randomly murder people.

You get attacked by a Yandere triangle monster.

Gentlefish

  • Bay Watcher
  • [PREFSTRING: balloon-like qualities]
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #6922 on: January 28, 2015, 05:39:22 pm »

No I get how it works I just got tripped up on the discussion haha.

Dutrius

  • Bay Watcher
  • No longer extremely unavailable!
    • View Profile
    • Arcanus Technica
Re: if self.isCoder(): post() #Programming Thread
« Reply #6923 on: January 29, 2015, 12:19:25 pm »

I'm looking at a subscription to the UE4 engine. Hmm... Well, I'll need £20 or so a month, and I'll need to learn C++ properly.
Logged
No longer extremely unavailable!
Sig text
ArcTech: Incursus. On hold indefinitely.

Thief^

  • Bay Watcher
  • Official crazy person
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #6924 on: January 29, 2015, 12:34:18 pm »

IIRC it's $19, which is more like £12.50. I don't know if tax gets charged.
Logged
Dwarven blood types are not A, B, AB, O but Ale, Wine, Beer, Rum, Whisky and so forth.
It's not an embark so much as seven dwarves having a simultaneous strange mood and going off to build an artifact fortress that menaces with spikes of awesome and hanging rings of death.

Sensei

  • Bay Watcher
  • Haven't tried coffee crisps.
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #6925 on: January 30, 2015, 05:05:50 am »

So, I've been recently getting back into programming. I took APCS and learned some Java/C# in high school, but it's been a couple years since then and I'm mostly starting over. I'm interested in at some point making games/GUI programs, just for kicks. Anyway, I've been waffling over what language to focus on:

I started out recently in C#, motivated by modding Space Engineers mainly, but I'm not a huge fan of C# even if you can deploy it to non-windows systems now- how well does that work by the way?

I also tried a good bit of Python, it looks cleaner certainly, which is nice, but I'm wondering if it's good for large programs. I'm not really a fan of the use of tabulation instead of curly braces. I've been using Visual Studio as an IDE, and it's not easy to, say, take a bunch of lines and put them inside an IF statement. Is there an easy way to do that/should I be using a different IDE?

I also tried Java again, or at least, I installed Eclipse and spent a while trying to get it to find my JDK 8 installation. I'm not super excited to see "public static void main(String[] args)" again, but I was thinking of learning Java for convenience if I decide to make Android apps at some point.

So, I guess what am asking is, "Which OOP should I use for games and GUI applications, and if it's Python, how do I tab a bunch of lines at once dammit?"
Logged
Let's Play: Automation! Bay 12 Motor Company Buy the 1950 Urist Wagon for just $4500! Safety features optional.
The Bay 12 & Mates Discord Join now! Voice/text chat and play games with other Bay12'ers!
Add me on Steam: [DFC] Sensei

Thief^

  • Bay Watcher
  • Official crazy person
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #6926 on: January 30, 2015, 05:08:28 am »

Visual Studio does support batch indenting, so just select the lines and press tab? (shift+tab to remove a level of indent).

Also learn the Alt+drag or Alt+Shift+Arrows keys for editing across multiple lines at once, they're awesome.
« Last Edit: January 30, 2015, 05:12:06 am by Thief^ »
Logged
Dwarven blood types are not A, B, AB, O but Ale, Wine, Beer, Rum, Whisky and so forth.
It's not an embark so much as seven dwarves having a simultaneous strange mood and going off to build an artifact fortress that menaces with spikes of awesome and hanging rings of death.

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #6927 on: January 30, 2015, 05:22:36 am »

Unity can use either C#, a thing kinda like javascript, and a thing kinda like python, and is cross platform.
Logged

Reelya

  • Bay Watcher
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #6928 on: January 30, 2015, 05:26:05 am »

I've been using Visual Studio as an IDE, and it's not easy to, say, take a bunch of lines and put them inside an IF statement. Is there an easy way to do that/should I be using a different IDE?
What Thief said basically. Select all the lines, click tab to indent, then wrap your if statement and braces around the block. Shift-tab to move things to the left.

And I think the normal, quick select keys in Windows are Shift+Arrow (does by lines or by letter), or Ctrl-Shift+Arrow, which does whole words. These key combos work in many editors, including browser edit boxes. using the (ctrl+)shift+arrows, and then ctrl-c, ctr-x or ctrl-v, for copy, cut, paste can be a lot faster for editing than highlighting code with the mouse.

I forget how the Alt+ stuff Thief was talking about works in VS, I think it can move a whole block of text around.
« Last Edit: January 30, 2015, 05:36:47 am by Reelya »
Logged

alexandertnt

  • Bay Watcher
  • (map 'list (lambda (post) (+ post awesome)) posts)
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #6929 on: January 30, 2015, 06:29:47 am »

the Alt+MouseDrag thing lets you select rectangular chunks of text, and copy, paste, and delete it.

You can also use it to type (it adds the character on each line), which can be super useful for doing things like turning a whole bunch of public variables into privates, ints to floats etc.

It's incredibly useful.
Logged
This is when I imagine the hilarity which may happen if certain things are glichy. Such as targeting your own body parts to eat.

You eat your own head
YOU HAVE BEEN STRUCK DOWN!
Pages: 1 ... 460 461 [462] 463 464 ... 796