|
ok how about expresso
|
# ¿ May 2, 2012 05:33 |
|
|
# ¿ May 9, 2024 20:03 |
|
tinselt0wn posted:im "learning" j again I don't like this. Same with poo poo like fancy perl oneliners. If its hard to tell what the code actually does then its lovely code imo.
|
# ¿ May 2, 2012 16:14 |
|
clrs was the textbook for my algorithms class. Its probably the textbook for a lot of algorithms classes.
|
# ¿ May 5, 2012 00:55 |
|
clrs is also available for free if you know where to look. I rarely pay for textbooks.
|
# ¿ May 5, 2012 00:58 |
|
MononcQc posted:While we're in algorithm talk, I'd like to ask if anyone has a few tips here. have you tried mongo db? It's web scale you know.
|
# ¿ May 5, 2012 06:34 |
|
I can see the reasoning behind 0 being true, but having it false is still super convenient.
|
# ¿ May 6, 2012 20:06 |
|
ahhh spiders posted:in what context doing something if something is or isn't 0, or looping while something isn't 0, or checking if something returns 0, is really common.
|
# ¿ May 6, 2012 20:12 |
|
ahhh spiders posted:not in lua, because you wouldn't do those retarded C things in lua you don't work with numbers? weird.
|
# ¿ May 6, 2012 20:13 |
|
this thread sucks now
|
# ¿ May 6, 2012 22:29 |
|
last bunch of pages have all been "my language is better because *faaaaart" and I hear that all the time so if everyone could either shut up, start posting constructively or at least entertainingly (lol like that's gonna happen) or if we could get this shitheap closed, that would be cool. just stop flinging poo poo and nothing else yall, if you are going to fling poo poo at least fling something interesting too. Are we out of interesting things to fling? (I sure am)
|
# ¿ May 7, 2012 05:42 |
|
rotor posted:how about you shut the gently caress up sorry, that was a drunkpost. carry on thread, i'll quit bitching.
|
# ¿ May 7, 2012 14:36 |
|
shaggar and tbc are way more entertaining than sulk
|
# ¿ May 14, 2012 16:49 |
|
remember that one time when tbc talked about security and it was really funny. shaggar was probably funny once too.
|
# ¿ May 14, 2012 16:54 |
|
Sweevo posted:shaggar, like a stopped clock is right twice a day sometimes it doesn't work because its php, but when that happens the whole hting just fails and doesn't inform the user so just vomits up random posts.
|
# ¿ May 14, 2012 17:50 |
|
someone give me an idea for a cool (and maybe useful???) thing to do wiht haskell so I have a reason to mess around with haskell again tia
|
# ¿ May 14, 2012 18:04 |
|
tef posted:buttbot is yet to be ported to haskell that actually sounds like a thing that might be fun to do, a relearn me some haskell project.
|
# ¿ May 14, 2012 19:33 |
|
JawnV6 posted:yeah string-heavy programthat relies on a perl library SOUND LIKE FUN HASKELLIN yea but there are butts
|
# ¿ May 14, 2012 19:37 |
|
Markov Chain Chomp posted:bytes are not integers and i will fight anyone who says otherwise well duh, iirc ANSI C doesn't specify a byte type, the 8 bit numeric (integer) type is char
|
# ¿ May 16, 2012 04:15 |
|
python uses exceptions for control-flow sometimes. It works. Takes a bit of getting used to if you are used to thinking of exceptions as always bad instead of just another tool.
|
# ¿ May 17, 2012 18:07 |
|
Werthog posted:this is getting pretty old, this isn't even shaggaring anymore. put some effort into it
|
# ¿ May 18, 2012 20:06 |
|
tef posted:ahahahahahaha
|
# ¿ May 19, 2012 00:26 |
|
Shaggar posted:lol thats awful can you elaborate on exactly why it is awful? tia
|
# ¿ May 29, 2012 17:12 |
|
Shaggar posted:because 1 its ordering on the natural order of butt which isnt the same as a comparator. 2 if you're using a comparator in a bunch of different locations and need to update the logic you do it inside the comparator and you're done. in your shitlanguages you'd have to search and replace for all your compares. 3 the java is far more readable than gross rear end shitlanguages 1 is a valid point since you might not always want to sort on the natural order (usually us), but at least the python sort implemention can take an optional cmp argument that specifies a comparator function. That also solves 2, or you can just put the sort in its own function. 3... is debatable. I think key=[function] and cmp=[function] is perfectly understandable unless you are really dumb. The java way works but the ability to easily sort any list by an arbitrary key is pretty cool since usually that's the kind of sorting you do anyway.
|
# ¿ May 29, 2012 17:25 |
|
BonzoESC posted:does python have both comparator sort and a schwartzian transform sort-by method the same sort method (either sorted(list) or list.sort(), they do the same thing) can take a key function, which will sort by that key, or a cmp funtion, which specifies a comparator. In general a key is prefered because it's faster. You can also tell it to give the reverse if you want.
|
# ¿ May 29, 2012 17:32 |
|
BonzoESC posted:"In Python 2.4 and above, both the sorted() function and the in-place list.sort() method take a key= parameter that allows the user to provide a "key function" (like foo in the examples above). In Python 3 and above, use of the key function is the only way to specify a custom sort order (the previously-supported comparator argument was removed)." well the only way in python 3 I guess. I didn't know they removed it, neither did anyone else I guess, nobody uses python 3
|
# ¿ May 29, 2012 17:33 |
|
Shaggar posted:function pointers make me want to vomit oh yea that reminds me that functions and methods not being first-level objects in java is dumb
|
# ¿ May 29, 2012 21:25 |
|
Lysidas posted:shaggar how do you feel about other callables that aren't technically functions ducktyping is cool
|
# ¿ May 29, 2012 21:58 |
|
shagger doesn't like it but he doesn't actually have a good reason not to like it because functions and callables as first-level objects is actually really handy and hes just shaggering
|
# ¿ May 29, 2012 21:59 |
|
ahhh spiders posted:wahts that have to do with duck typing it's a callable because it has the __call__ attribute
|
# ¿ May 29, 2012 22:00 |
|
if you understand how objects work it actually makes perfect sense!
|
# ¿ May 29, 2012 22:02 |
|
ahhh spiders posted:wouldn't that just be operator overloading what? idk how operators come into the picture here. functions are equivalent to objects with a __call__ attribute as far as python is concerned, it's not overloading the () operator. Function/methods are just one type of callable. so are ducks. It's p simple. Quack. You could make a duck that was callable and iterable!
|
# ¿ May 29, 2012 22:04 |
|
ahhh spiders posted:the function call operator. calling a function is an operation on the function I know I addressed that, jeez. Rufo what's CSP?
|
# ¿ May 29, 2012 23:35 |
|
Wheany posted:Oh no, the threads are no longer normalized....
|
# ¿ Jun 1, 2012 00:01 |
|
that's stuff wasn't required for cs at all at my uni but I started as a physics major as well so I took through diff eq anyway. I don't remember a lot of how to do diff eq, but I did calc for long enough (learned it in HS first) that I still remember it.
|
# ¿ Jun 1, 2012 03:42 |
|
I deffo don't remember ANYTHING about solving pde's.
|
# ¿ Jun 1, 2012 03:44 |
|
Ridgely_Fan posted:i remember the pde stuff that was basically breaking stuff down to fourier components after separation of variables, but i would have a hard time solving an ode by hand yea I remember being taught a bunch of techniques to analytically solve certain classes of ODEs by hand and I don't remember any of them and probably wouldn't have used them much anyway. THat class was neat though, also taught numerical analysis and ~computer~ methods. oh yea also since you mentioned fourier there is the laplace transform I might be able to remember that if I looked some stuff up about it. I do remember what the fourier transform is, if not how to do it analytically, because it's super useful.
|
# ¿ Jun 1, 2012 03:55 |
|
Rufo posted:calculus is terrible but you need to earn the right to say so I kind of actually think calculus is pretty rad and useful even though I don't use it in what I do anymore
|
# ¿ Jun 2, 2012 08:20 |
|
bob arctor posted:i hated calculus it was the only subject that got in the way of my drinking. a mathematician walks into a bar, he orders a beer. Another mathematician walks in, he orders half a beer. Another one walks in, orders a quarter beer. Another one, and Eighth of a beer. The bartender says gently caress you and pours 2 beers. the moral of the story is that mathematician jokes aren't funny + if infinity mathematicians come into your bar and order 2 drinks total they are assholes and also you probably exceeded the occupancy limit of the bar and the fire dept will get pissed. Also they probably drink a lot more than that.
|
# ¿ Jun 2, 2012 08:33 |
|
unless they tip well, like if you get a dollar per drink, regardless of drink size, that's infinity dollers, and only the federal reserve has that much.
|
# ¿ Jun 2, 2012 08:34 |
|
|
# ¿ May 9, 2024 20:03 |
|
Jonny 290 posted:[ASK] me about this really depressing theory I have that humans are literally nothing more than bags of water and lookup tables that spend most of their time and resources and life building up one database of i/o but actually only take action when they receive input from another, much smaller and more critical set of inputs are we talking just key/value pairs or a proper relational db? Really what im saying is are humans webscale?
|
# ¿ Jun 3, 2012 06:33 |