Off Topic > Off Topic
Programming Megathread
eboyblue10:
i'm aware but like. whoa. what are all these features. i'm used to this (minus the sidebars with only one panel):
while eclipse looks like this:
i tried to make it look as close to jcreator as i could but i can't get over all this fancy formatting
Becquerel:
Eclipse is pretty complex, it requires time to understand it.
Foxscotch:
ignore everything you don't understand
if you know how to type and click that little run button, you're pretty much good to go
devildogelite:
Python was definitely the best language for what I was trying to do. It also seems like python is the best for dealing with text, from regex and formatting to multidimensional arrays or lists or whatever.
The program I had to make creates a matrix that's the height and width of two strings which is already annoying to do in C++. Then passing a multidimensional array to functions in C++ another pain in the ass. But with python it was crazy simple, the only thing I got hung up on was how the X and Y coordinates are backwards which was easy to get over.
Overall I like python but don't know if I'll use it for most of what I do. The syntax is just odd but I'm sure that wouldn't be a problem after doing any amount of work in it. I really wanna give R a shot since that language seems like it was made for doing all the stuff I hate to do in C++ and the fact you integrate with C++ is pretty cool.
Here's a link to the program so far
Foxscotch:
I don't remember* why I ended up deciding to learn to use python in the first place, but I was pretty reluctant to do so, because of its syntax
then I fell in love
I'm not sure what you mean by X and Y coordinates though. (2, 3) is still (2, 3). arrays aren't meant specifically to represent coordinate planes, so why would the first index select from the innermost array? that'd make using arrays in python (and in any other language, where it certainly doesn't work like that either) 1000000x more complicated
maybe you'd like numpy. it has a matrix data type that can be accessed with coordinates. I can't remember exactly what the API is like for numpy but it goes something like this:
import numpy
m = numpy.matrix([
[['a'], ['b'], ['c']],
[['i'], ['j'], ['k']],
[['x'], ['y'], ['z']]
])
m[1, 1] # == 'j', I think
*turns out I don't need to remember