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
Abandon
Nov 23, 2006

Jonny 290 posted:

lol

i guess i should not put in temporary things like this

code:

my $ftp = Net::FTP->new($site) or warn "this aint' happen" && die  ;
jesus do you do that fuckin spaces before the semicolon thing

Adbot
ADBOT LOVES YOU

Jonny 290
May 5, 2005



[ASK] me about OS/2 Warp
no i was just lolling at the this aint' happen thing

all this poo poo is 10 yr old code, i gently caress with it as little as possible

and no i dont do the space thing but i do use 4 space tabstops

Opinion Haver
Apr 9, 2007

Zombywuf posted:

Coffeescript normalises the syntax to something non-associative

elaborate

Zombywuf
Mar 29, 2008

https://github.com/satyr/coco/wiki/wtfcs

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug
don't hold it like that

cowboy beepboop
Feb 24, 2001

Jonny 290 posted:

lol

i guess i should not put in temporary things like this

code:
my $ftp = Net::FTP->new($site) or warn "this aint' happen" && die  ;

lol perl is so ugly

also ftp in tyool2012

Opinion Haver
Apr 9, 2007

i actually like perl syntax and i don't care what anybody says

Shameproof
Mar 23, 2011

Is there a secret to making obj c more concise, readable, whatever?

I'm writing a texas hold em thing. In C# a crude way to find an (IComparable) score value for the best full house, given a player's pocket and a set of community cards, is something like:

code:
var cardPool = pocket.Concat(communityCards);
var fullhouses =   from pairCard in cardPool
                   from pairCard2 in cardPool
                   from tripCard1 in cardPool
                   from tripCard2 in cardPool
                   from tripCard3 in cardPool
                   where pairCard1.SameRankAs(pairCard2) &&
			tripCard1.SameRankAs(tripCard2) &&
			tripCard2.SameRankAs(tripCard3)
                   select new HandScore
			{
				Type = 
					HandType.FullHouse
				TieBreaks = New List<T>
					{tripCard1.Rank, pairCard1.Rank}
			}
return HandScore.Max();
I think this might require as much as (7 choose 5)*5! checks, gotta double-check where linq does the Where operation, but w/e.

Obj-C requires roughly four times as much screenspace for all that, even when I try hard. I really like a lot of XCode/Cocoas's features, but this is orful.

Shameproof fucked around with this message at 23:19 on Nov 29, 2012

GameCube
Nov 21, 2006

there's enough poker games already, just stop

Posting Principle
Dec 10, 2011

by Ralp
why isn't my c as concise as my python?????

Shameproof
Mar 23, 2011

That would be a fair comparison, but half of the clutter doesn't even have to do with it being static & weak typed. Plus Cocoa is being continuously developed and some of it is really state of the art. I can get a date object representing 10PM on the first Tuesday after August 10 2012 by passing the string "10PM on the first Tuesday after August 10 2012." Has any effort been put into making data sets easier to pass around?

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



I dunno, maybe use an NSPredicate?

Shameproof
Mar 23, 2011

Carthag posted:

I dunno, maybe use an NSPredicate?

Oh there we go. Are you generally supposed to inherit from NSPredicate or just use that crazy string-passing approach?

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome
tftp supremacy

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug
lmao ftp
code:
tar jc dirtosend | nc -l 27420
nc otherhost 27420 | tar jx -

Lysidas
Jul 26, 2002

John Diefenbaker is a madman who thinks he's John Diefenbaker.
Pillbug
dont j if your network is fast, it'll just slow you down

if your network is slow do J it's better

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

Lysidas posted:

dont j if your network is fast, it'll just slow you down

if your network is slow do J it's better

last time I did this I was on wifi between two modern macs

Shameproof
Mar 23, 2011

smoke a J before you hit the hay

Shaggar
Apr 26, 2006

Cocoa Crispies posted:

lmao ftp
code:
tar jc dirtosend | nc -l 27420
nc otherhost 27420 | tar jx -

lol linux

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



Shameproof posted:

Oh there we go. Are you generally supposed to inherit from NSPredicate or just use that crazy string-passing approach?

I've mostly just made predicates with strings, it's pretty fast. not sure what pitfalls there might be to subclassing nspredicate, but its probably easier to use an nsblockpredicate than to subclass if you cant express the predicate with a string.

Jonny 290
May 5, 2005



[ASK] me about OS/2 Warp
haters need to remember that i am working for a company supporting a sole client who runs everything about their business in the most cartoonishly hyperconservative ways possible

nothing changes over there without dragging them kicking and screaming

its a bad environment to learn in but im taking it all in stride and will work for a real company soon.

jony neuemonic
Nov 13, 2009

Jonny 290 posted:

haters need to remember that perl owns

NeoHentaiMaster
Jul 13, 2004
More well adjusted then you'd think.

Jonny 290 posted:

haters need to remember that perl owns

AWWNAW
Dec 30, 2008

http://forums.somethingawful.com/showthread.php?noseen=0&threadid=2262300&perpage=40&pagenumber=336#post410079468

Stringent
Dec 22, 2004


image text goes here

Jonny 290 posted:

its a bad environment to learn in but im taking it all in stride and will work for a real company soon.

seeing how not to do things has value too

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

yaoi prophet posted:

What about the shared libraries your compiler uses? What about all the other OS stuff? Better do all your development in a VM, snapshot it, and toss that in the repo just to be safe.

wait do windows people not keep the chef recipes to set up their dev environment in version control?

Blotto Skorzany
Nov 7, 2008

He's a PSoC, loose and runnin'
came the whisper from each lip
And he's here to do some business with
the bad ADC on his chip
bad ADC on his chiiiiip

Cocoa Crispies posted:

wait do windows people not keep the chef recipes to set up their dev environment in version control?

windows people are gross so of course

Jonny 290
May 5, 2005



[ASK] me about OS/2 Warp
holy poo poo last night i just started doing bong rips and drinking really strong coffee while i read Object Oriented Perl and i finally loving started to get it

perl naked OO isn't that bad at all
Moose is actually pretty loving cool

wolffenstein
Aug 2, 2002
 
Pork Pro
Moose makes Perl OO tolerable. Perl OO by itself is p bad compared to other OO languages.

wolffenstein
Aug 2, 2002
 
Pork Pro
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO

Jonny 290
May 5, 2005



[ASK] me about OS/2 Warp

wolffenstein posted:

Moose makes Perl OO tolerable. Perl OO by itself is p bad compared to other OO languages.

it does seem clunky compared to what little i know of, say, the python model, but eh

Opinion Haver
Apr 9, 2007

Cocoa Crispies posted:

wait do windows people not keep the chef recipes to set up their dev environment in version control?

i've never used .net or any windows dev but in ~*haskell*~ you just set up a .cabal file which lists all your package version dependencies so you can say 'i need any version of foo after 2.7, any version of bar in 4.2.0-6.9, and any version of baz at all' and then it has a dependency solver

i assume most languages have something similar

GameCube
Nov 21, 2006

Jabor posted:

Why would you think it is a joke? Did whoever teach you revision control say "don't check binaries in" and you thought he meant all binaries instead of just your build outputs?
holy poo poo what an :iceburn:

Shaggar
Apr 26, 2006

yaoi prophet posted:

i've never used .net or any windows dev but in ~*haskell*~ you just set up a .cabal file which lists all your package version dependencies so you can say 'i need any version of foo after 2.7, any version of bar in 4.2.0-6.9, and any version of baz at all' and then it has a dependency solver

i assume most languages have something similar

yeah so does the .net stuff. but the jokers in that linked post arent talking about that, they're talking about including not only the binary compiled dependency libraries but also the compiler + all its resources as well.

Opinion Haver
Apr 9, 2007

Shaggar posted:

yeah so does the .net stuff. but the jokers in that linked post arent talking about that, they're talking about including not only the binary compiled dependency libraries but also the compiler + all its resources as well.

right, and that's braindead

Shaggar
Apr 26, 2006
nothings as good as maven tho.

GameCube
Nov 21, 2006

svn add "C:\Program Files (x86)"

yeah sure ok

Egan Yardley
Jun 11, 2010

Jonny 290 posted:

holy poo poo last night i just started doing bong rips and drinking really strong coffee while i read Object Oriented Perl and i finally loving started to get it
i learned about 50% of my coding languages while high as tits

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

Shaggar posted:

yeah so does the .net stuff. but the jokers in that linked post arent talking about that, they're talking about including not only the binary compiled dependency libraries but also the compiler + all its resources as well.

the only thing that makes that untenable is the hosed-up state of microsoft's compiler/toolchain/sdk distribution

Adbot
ADBOT LOVES YOU

AWWNAW
Dec 30, 2008

TONSIL HOCKEY posted:

i learned about 150% of my coding languages while high as tits

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