Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
CaptainMeatpants
Jun 1, 2010

is there anything for documentation, or program flow, or anything

Adbot
ADBOT LOVES YOU

etcetera08
Sep 11, 2008

tinselt0wn posted:

if being able to manage your projects efficiently to save you time isnt worth $200 your job is a pos

yes the only two options are a $200 poo poo program or you have a lovely job, ty for yr analysis

0xB16B00B5
Aug 24, 2006

by Y Kant Ozma Post

etcetera08 posted:

yes the only two options are a $200 poo poo program or you have a lovely job, ty for yr analysis

another option is that you work hard for your manager to make all the money and get all the attention and you resent your customers and anyone not in IT

Bobbin Threadbear
May 6, 2007

yet another is to get out

Bobbin Threadbear
May 6, 2007

of yospos i mean

Shaggar
Apr 26, 2006

CaptainMeatpants posted:

what the hell are these

bad

Nomnom Cookie
Aug 30, 2009



I bought all the omnifoci and it was worth it. Idk what omniplan is but it's probably pretty good

CaptainMeatpants
Jun 1, 2010

idk if you guys realize but i was trying to write a program, not synergize a forward-thinking brand outreach initiative

rotor
Jun 11, 2001

classic case of pineapple on pizzadog derangement syndrome

CaptainMeatpants posted:

is there anything for documentation, or program flow, or anything

visio

Nomnom Cookie
Aug 30, 2009



Yup buy the omnifoci. The best part is they only work on apple products so it gives you a good reason to upgrade if you're using lesser hardware

CaptainMeatpants
Jun 1, 2010


is visio good for personal/very small team use

does it really handle documentation (for, say, an internal api)

is there a version that isn't like a thousand dollars

Necc0
Jun 30, 2005

by exmarx
Broken Cake

CaptainMeatpants posted:

is visio good for personal/very small team use

does it really handle documentation (for, say, an internal api)

is there a version that isn't like a thousand dollars

yes, yes, lol

Inverse Icarus
Dec 4, 2003

I run SyncRPG, and produce original, digital content for the Pathfinder RPG, designed from the ground up to be played online.

Wheany posted:

how to make an empty array of org.javatuples.Triplet:

new Triplet<>[]{};

:haw:

what the gently caress is a javatuples

Inverse Icarus
Dec 4, 2003

I run SyncRPG, and produce original, digital content for the Pathfinder RPG, designed from the ground up to be played online.
there is literally no other way to store two associated pieces of data

i need an object that has exactly two Objects internally

Opinion Haver
Apr 9, 2007

there's definitely been times where i wanted to pass around two associated objects, which is why languages with compact abstract datatype declarations own

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

CaptainMeatpants posted:

is visio good for personal/very small team use

does it really handle documentation (for, say, an internal api)

is there a version that isn't like a thousand dollars

lol you buyin' tools when you should just be writing better code

Inverse Icarus
Dec 4, 2003

I run SyncRPG, and produce original, digital content for the Pathfinder RPG, designed from the ground up to be played online.
i also need objects that hold exactly three, four, five, six, seven, eight, nine, and ten associated objects. these objets need to be distinct and named completely differently. thanks.

Nomnom Cookie
Aug 30, 2009



Inverse Icarus posted:

there is literally no other way to store two associated pieces of data

i need an object that has exactly two Objects internally

Commons collections has a pair class that extends map.entry

Nomnom Cookie
Aug 30, 2009



Inverse Icarus posted:

i also need objects that hold exactly three, four, five, six, seven, eight, nine, and ten associated objects. these objets need to be distinct and named completely differently. thanks.

There's probably some poo poo commons library that includes this

Inverse Icarus
Dec 4, 2003

I run SyncRPG, and produce original, digital content for the Pathfinder RPG, designed from the ground up to be played online.

Nomnom Cookie posted:

Commons collections has a pair class that extends map.entry

:aaa:

gangnam reference
Dec 26, 2010

shut up idiot shut up idiot shut up idiot shut up idiot

Shaggar posted:

java owns

i was doin java today and i was like "man shaggar would be happy"

then 5 minutes later i was like "i wanna do the snake"

tef
May 30, 2004

-> some l-system crap ->
been learning ruby's “grammar” :toot:

"a -1; a=0; a -1" parses as "a(-1); a=0; a.+(-1)"

and that "p ([1]).map(&:next)" and "p([1]).map(&:next)"
parses as "p(([1]).map(&:next))" and "(p([1])).map(&:next)"

and that p(1 if 1) is a syntax error but p((1 if 1)) isn't

"while not nil.nil? {} do nil end" parses.
"while not nil.nil? do end do nil end" doesn't.

"while not nil.nil? &-> do end do nil end" parses.
"until not nil.nil? &-> do end do nil end" doesn't

:2bong:

rotor
Jun 11, 2001

classic case of pineapple on pizzadog derangement syndrome
ain't nothin wrong with a pair class

Wheany
Mar 17, 2006

Spinyahahahahahahahahahahahaha!

Doctor Rope

Inverse Icarus posted:

there is literally no other way to store two associated pieces of data

i need an object that has exactly two Objects internally

i used that because it's immutable, generic and takes care of all the lovely little details, hashCode() etc.

it's not like it's hard to write

public static class Pair {
public int number;
public String someString;
}

if you just want to associacte a number with a string

tef
May 30, 2004

-> some l-system crap ->

Inverse Icarus posted:

i also need objects that hold exactly three, four, five, six, seven, eight, nine, and ten associated objects. these objets need to be distinct and named completely differently. thanks.

http://projectlombok.org/features/Data.html :toot:

Inverse Icarus
Dec 4, 2003

I run SyncRPG, and produce original, digital content for the Pathfinder RPG, designed from the ground up to be played online.

lombok looks awesome but the library i build/maintain at work doesn't use it and i've never really needed to do any personal project with java

homercles
Feb 14, 2010

Object tuple = new Object[] { iDontCare, aboutThisShit };

boom done commit it. or you could also copy out android.util.Pair, but then you'd have godawful code like this:

Pair<Integer,Map<String,String>> tuple = new Pair<Integer,Map<String,String>>(anInt, aMap);

but wait, java 7 fixes everything nothing you still get this stuff

for (Entry<String,Pair<Integer, Map<String,String>>> ent: myTuplesMap.entrySet()) { ... }

homercles
Feb 14, 2010

roll your own idl and autogen all your tuple classes

Wheany
Mar 17, 2006

Spinyahahahahahahahahahahahaha!

Doctor Rope
use an ide, you heathen. prioblem solved

Inverse Icarus
Dec 4, 2003

I run SyncRPG, and produce original, digital content for the Pathfinder RPG, designed from the ground up to be played online.

homercles posted:


but wait, java 7 fixes everything nothing you still get this stuff

for (Entry<String,Pair<Integer, Map<String,String>>> ent: myTuplesMap.entrySet()) { ... }

yeah ok i'm almost glad my project builds in java 5

Shameproof
Mar 23, 2011

*farts quietly*

Wheany
Mar 17, 2006

Spinyahahahahahahahahahahahaha!

Doctor Rope

homercles
Feb 14, 2010

yeah that is rather cool

Zombywuf
Mar 29, 2008

homercles posted:

for (Entry<String,Pair<Integer, Map<String,String>>> ent: myTuplesMap.entrySet()) { ... }

Is Java really still that primitive?

code:
for (auto i = mymapoftupleswiththebigdumbtype.begin();
     i != mymapoftupleswiththebigdumbtype.end; ++i) {
  ...
auto type declarations are the best thing ever.

hobbesmaster
Jan 28, 2008

Zombywuf posted:

Is Java really still that primitive?

code:

for (auto i = mymapoftupleswiththebigdumbtype.begin();
     i != mymapoftupleswiththebigdumbtype.end; ++i) {
  ...

auto type declarations are the best thing ever.

why does crapple hate c++11

skeevy achievements
Feb 25, 2008

by merry exmarx
is there some use for tuples besides a quick and dirty way to return multiple objects from a function call because that's the only time I wished I had them in languages that don't support them

I see features like iterators over tuples and I wonder why

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

Internaut! posted:

is there some use for tuples besides a quick and dirty way to return multiple objects from a function call because that's the only time I wished I had them in languages that don't support them

I see features like iterators over tuples and I wonder why

sometimes you want something that's not self-documenting like a class and implicitly defined so you have to read the source or have prose documentation to understand what it does

hashtables/maps in java have really bad syntax so you can't just use those

tef
May 30, 2004

-> some l-system crap ->
tuples are convenient in python

some things return pairs:

for key,value in d.items():
....

or

for index, item in enumerate(items):
....


no big deal :confused:

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

Internaut! posted:

also trexeaterofcadrs does groovy 2.0 fix those problems you experienced, we have some jvm integration work coming up and I'd like to use it

ya groovy 2.0 is a good step up but i think 3.0 will be the big improvement.

2.0 has indy support which is cool but there's still some silliness, for example
code:
for (def i in is) ...
is WAY faster than
code:
is.each { i -> ... }
there's also still some weirdness, it's definitely not as well put together as clojure, imo

that said, if you keep your programs simple and don't get all keyboard cowboy it'll work really well for you

Adbot
ADBOT LOVES YOU

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

tef posted:

tuples are convenient in python

some things return pairs:

for key,value in d.items():
....

or

for index, item in enumerate(items):
....


no big deal :confused:

for k, v in {butt: 'fart', toot: 'poot'}
puts "#{k} => #{v}"
end

this is the part where dave thomas asks why nobody uses for … in and always uses #each and the whole room says "because you told us to" (june 30 2012, scottish ruby conference)

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply