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
rotor
Jun 11, 2001

classic case of pineapple derangement syndrome
Vote Rotor for Tyrant King 2012

Adbot
ADBOT LOVES YOU

tef
May 30, 2004

-> some l-system crap ->

rotor posted:

i understand that but my point is that they aim at solving the same problems in the same way and if I was Tyrant King Of The Universe i'd kill off all but one and put the development efforts all behind one of them

I think we've already seen this with many of the scripting languages being available on the two major language vms, jvm and the clr.

It is mostly social problems getting in the way, not technical ones.

My Linux Rig
Mar 27, 2010
Probation
Can't post for 6 years!

tef posted:

I think we've already seen this with many of the scripting languages being available on the two major language vms, jvm and the clr.

It is mostly social problems getting in the way, not technical ones.

are you saying that programmers have social issues?????

tef
May 30, 2004

-> some l-system crap ->

My Linux Rig posted:

are you saying that programmers have social issues?????

i'm saying that it is more profitable to sue people using your language

tef
May 30, 2004

-> some l-system crap ->

rotor posted:

yep.

further to this, it seems like C# is actually allowed to develop as a language too :O

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

tef posted:

further to this, it seems like C# is actually allowed to develop as a language too :O

i think java was allowed to develop as well, but it was done stupidly and under what I can only asssume was immense market pressure

Sneaking Mission
Nov 11, 2008

Java Specification Request

tef
May 30, 2004

-> some l-system crap ->
project coin was a little attempt to move java on a bit, two years for what was mostly sugar :3:

Sang-
Nov 2, 2007
Doing things like closures/function pointers on the jvm is really, really poo poo and are basically just massive work arounds.

The way Scala does partially applied functions is by creating a new class file for each possible partial application of the function in question and you end up with files like this: "CheckSyntax$$anonfun$additive_exp$2$$anonfun$apply$160$$anonfun$apply$161.class"

hopefully jvm 8 will introduce function pointers or something similar to alleviate this.

Sapozhnik
Jan 2, 2005

Nap Ghost
tef is like the ultimate YOSPOS hipster

yeah i'm into some p obscure software engineering philosophies you've probably never heard of them

i'll leave you with this: the same people who propose new langauges/operating systems to solve all the ills of the programming world are the same ones who propose forming new political parties to solve the ills of the physical one

people's front of judea etc

salted hash browns
Mar 26, 2007
ykrop

iamthexander posted:

So essentially I have this kind of data:
code:
[timestamp][name][value]
0000000001  AAA1  100
0000000001  BBB2  728
0000000001  CCC3  343
...
0000000043  AAA1  233
0000000043  BBB2  111
0000000043  CCC3  552
And I want to obtain the objects 'AAA1', 'BBB2', 'CCC3' (that contain timestamp and value in order) so that I can perform comparisons against each possible combination, for example:

code:
myCompareFunction(AAA1, BBB2);
myCompareFunction(AAA1, CCC3);
myCompareFunction(BBB2, CCC3);
Except in reality I have like 500 of those objects. There has to be a better way of doing this!

answer my question nerds

blorpy
Jan 5, 2005

gently caress you

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

iamthexander posted:

answer my question nerds

kill you're sensors then your'e self

TOO SCSI FOR MY CAT
Oct 12, 2008

this is what happens when you take UI design away from engineers and give it to a bunch of hipster art student "designers"

iamthexander posted:

answer my question nerds
go to a local community college and take cs 101

Tokin Ring
Jun 12, 2011

  :dong:Teh boners:dong:

Markov Chain Chomp posted:

gently caress you

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>

Mr Dog posted:

tef is like the ultimate YOSPOS hipster

yeah i'm into some p obscure software engineering philosophies you've probably never heard of them

i'll leave you with this: the same people who propose new langauges/operating systems to solve all the ills of the programming world are the same ones who propose forming new political parties to solve the ills of the physical one

people's front of judea etc

hmm... nah

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>

iamthexander posted:

answer my question nerds

do your own homework

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>
use an excel pivot table

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>
im going to do your homework for you

salted hash browns
Mar 26, 2007
ykrop
realpost it's not homework i am just a bad programmer

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>
i did your homework for you while i was eating

code:
"""
    homework.py - Copyright 2012 ahhh spiders heavy industries. All rights reserved.

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <[url]http://www.gnu.org/licenses/[/url]>.
"""

import fileinput

pizza = {}

for cheese in fileinput.input():
	peppers, tomatoes, olives = cheese.split()

	if tomatoes not in pizza:
		pizza[tomatoes] = []

	pizza[tomatoes].append((int(peppers), int(olives)))

for topping in pizza.values():
	topping.sort()

def pepperoni(fn):
	global pizza
	[fn(slice1, slice2) for slice1 in pizza for slice2 in pizza if slice1 != slice2]

blorpy
Jan 5, 2005

Pizza Dot Values

salted hash browns
Mar 26, 2007
ykrop

ahhh spiders posted:

i did your homework for you while i was eating

ty

gonna implement pizza as a hashmap and then an array and profile the poo poo out of it to see which is faster

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>
what

duTrieux.
Oct 9, 2003

rotor posted:

Vote Rotor for Tyrant King 2012

i got into an argument with somebody the other day about how sometimes there's a place for a tyrannical philosopher king who suspends everything, fixes poo poo, then gives it all back. the problem is finding somebody willing to do the third step, let along the second.

e: i could argue that lincoln was on this path what with the whole habeus corpus thing during the civil war.

Sapozhnik
Jan 2, 2005

Nap Ghost
I think Cincinnatus was the most well-known example, though that wasn't so much a case of "Yo you guys suck and i'mma fix your poo poo" as "omg we suck plz fix our poo poo". twice.

but yeah SOPA thread is thataway

Police Academy III
Nov 4, 2011
someone tell spiders he should've used a defaultdict there

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

Deuterieux posted:

i got into an argument with somebody the other day about how sometimes there's a place for a tyrannical philosopher king who suspends everything, fixes poo poo, then gives it all back. the problem is finding somebody willing to do the third step, let along the second.

if anyone is actually arguing against this then they're loving dipshits

penus de milo
Mar 9, 2002

CHAR CHAR

ahhh spiders posted:

i did your homework for you while i was eating

code:
python homework.py
> peperony and chease

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>

Deuterieux posted:

i got into an argument with somebody the other day about how sometimes there's a place for a tyrannical philosopher king who suspends everything, fixes poo poo, then gives it all back. the problem is finding somebody willing to do the third step, let along the second.

e: i could argue that lincoln was on this path what with the whole habeus corpus thing during the civil war.

nice. something something hitler

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>

Police Academy III posted:

someone tell spiders he should've used a defaultdict there

i looked briefly for something like that but i completely forgot about defaultdict. the best part is that since i released it under the GPLv3 you're free to fix it yourself.

Wheany
Mar 17, 2006

Spinyahahahahahahahahahahahaha!

Doctor Rope
i modified ur code and released to a client and didn't give him access to the source :hehe:

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>
oh no

Peanut and the Gang
Aug 24, 2009

by exmarx

Hammerite
Mar 9, 2007

And you don't remember what I said here, either, but it was pompous and stupid.
Jade Ear Joe

Deuterieux posted:

i got into an argument with somebody the other day about how sometimes there's a place for a tyrannical philosopher king who suspends everything, fixes poo poo, then gives it all back. the problem is finding somebody willing to do the third step, let along the second.

e: i could argue that lincoln was on this path what with the whole habeus corpus thing during the civil war.

https://www.youtube.com/watch?v=Vxi7JRJrod4

Emacs Headroom
Aug 2, 2003

Police Academy III posted:

someone tell spiders he should've used a defaultdict there

you can just call get with a default argument

pizza[tomatoes] = pizza.get(tomatoes, []) + [int(peppers), int(olives)]

you dont need a whole nother type

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>
i hope everyone read my GPLv3 code. cya

tef
May 30, 2004

-> some l-system crap ->

Mr Dog posted:

tef is like the ultimate YOSPOS hipster

i have no idea what this means

sent from my apple ][

tef
May 30, 2004

-> some l-system crap ->

quote:

yeah i'm into some p obscure software engineering philosophies you've probably never heard of them

i'll leave you with this: the same people who propose new langauges/operating systems to solve all the ills of the programming world are the same ones who propose forming new political parties to solve the ills of the physical one

people's front of judea etc

or this. there are words here but nothing makes sense

Adbot
ADBOT LOVES YOU

Nomnom Cookie
Aug 30, 2009



iamthexander posted:

answer my question nerds

program to interfaces, not implementations

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