|
reading this thread because I'm way behind the other one hello there present yospos I'm going back to the past now
|
# ¿ May 16, 2013 02:17 |
|
|
# ¿ May 10, 2024 04:00 |
|
I would love to work remotely, like a really good job here in the 3rd world would be like $13k/year. come on yospos hire me I must be super cheap
|
# ¿ May 23, 2013 19:56 |
|
I'm not serious about hiring me though, I'm terrible
|
# ¿ May 23, 2013 19:57 |
|
I never thought of javascript as a plang, I feel like it's on a category of its own: javascriptlangs
|
# ¿ Jun 9, 2013 17:15 |
|
I wish I knew some basic number representation poo poo before I attempted to do anything in Fortran. oh the pain, don't make this mistake fellow terrible programmers
|
# ¿ Jun 9, 2013 17:43 |
|
my limited experience with ruby made me respect the language, it was much better than I ever expected. idk it's like ruby got oop right or something at least compared to python, perl or... php.
|
# ¿ Jun 23, 2013 14:14 |
|
also I like to think that sulk is a dumbass and doesn't know poo poo
|
# ¿ Jun 23, 2013 14:15 |
|
prefect posted:can you give me a thumbnail sketch of how it got oop right and the others got it wrong? uh no, I can't? sorry I'm a terrible programmer. I guess it boils down a lot to the syntax, in ruby oop feels much more at home compared to say python. here's my sorry excuse for an example: Ruby code:
Python code:
|
# ¿ Jun 24, 2013 07:38 |
|
gucci void main posted:ruby is bad not as much because it's slow and is mostly used for web poo poo, but because of the way that a majority of ruby programmers write their code. also there are way too many tdd zealots who are worse than any javascript obsessor oh ok, that sounds fair enough
|
# ¿ Jun 24, 2013 07:39 |
|
chumpchous posted:numbers as objects is cool, it lets you do things like lol most definitely. the mixins I wrote overriding Numeric was some fun poo poo loving around p-langs is bliss
|
# ¿ Jun 24, 2013 07:43 |
|
the Unix environment is my IDE I'm a wizard bitches
|
# ¿ Jun 24, 2013 16:28 |
|
I use vim and also I hate myself for using it and not bothering to make any effort to try something else. tbf it doesn't matter really
|
# ¿ Jun 24, 2013 16:35 |
|
I think vim is more like a drug, once an addict you'll never be clean so kids don't do vim
|
# ¿ Jun 24, 2013 16:45 |
|
polpotpi posted:vim doesn't but everyone who uses vim fills it with garbage plugins to mimic things that are naturally part of a GUI IDE I don't do that but I know what you're saying, it's like this silly guy here: https://www.youtube.com/watch?v=YhqsjUUHj6g
|
# ¿ Jun 24, 2013 16:52 |
|
FamDav posted:i skimmed but he basically set up a vimrc and has a couple of plugins. he seems too clueless about simple commands and he's already changing a lot of poo poo geeeeez
|
# ¿ Jun 24, 2013 17:07 |
|
FamDav posted:the syntax highlighting/indenting/stuff on oh hey all those seem nice and cool I gue-- FamDav posted:unmap arrows why
|
# ¿ Jun 24, 2013 17:17 |
|
FamDav posted:
and there's no reason whatsoever for using these short not self-explanatory 2 letters commands in a loving config file. also I'm Eddard *loving* Stark
|
# ¿ Jun 24, 2013 19:01 |
|
what if you ask for sublime and your boss pays for it and then you're an rear end and go like "you know what VIM IS BETTER i love my vimrc" and never use sublime I'm just wondering if the boss would get pissed for this or if they just don't care.
|
# ¿ Jun 25, 2013 02:15 |
|
I used to have jj as esc but I never used it. idk there's nothing wrong with punching esc I guess
|
# ¿ Jun 27, 2013 12:41 |
|
notepad++ used to have some really bad syntax highlighting for python, did it get better?
|
# ¿ Jun 27, 2013 16:26 |
|
uG posted:all you python scrubs are going to be programming perl6 in 10 years (if you havent killed urself by then) eh I'm ok with this. like it could be way worse.
|
# ¿ Jun 28, 2013 13:08 |
|
Python code:
No, I can't explain why lambda is such a piece of poo poo in python other than mumbling "lexical scope and closure or something". My rule of thumb is that if I want to do something fancy like I would in racket it'll go wrong in python.
|
# ¿ Jul 18, 2013 12:43 |
|
also there's functools.partial, it never disappointed me unlike loving lambda
|
# ¿ Jul 18, 2013 12:51 |
|
oh hey the same thing already posted from 2 pages agoJewKiller 3000 posted:
prefect posted:could somebody explain why the first is okay but the second is bad? the way I understand is when you do i += 1 inside a block it's like: - oh hey is there some name assignment around here? yes. yes there is. gently caress the corresponding nonlocal plebs - creates new name i - tries to assign (i + 1) to i - oops can't evaluate this expression coz there's nothing in i yet!
|
# ¿ Jul 18, 2013 15:44 |
|
chumpchous posted:Wow what the gently caress?? no also this returns the same error without any prints: Python code:
|
# ¿ Jul 18, 2013 16:30 |
|
PleasingFungus posted:
I see what's happening in the case of the named function and when you try to use it but it still baffles me in the case of the lambda, it's like they aren't really anonymous or something.
|
# ¿ Jul 20, 2013 05:54 |
|
tef posted:the i is stored in the outer scope, and not copied into the lambda, so i keeps the value from exiting the loop. code:
ok I'm happy now.
|
# ¿ Jul 20, 2013 22:01 |
|
tef posted:ps should i make a smart dog book thread in CoC and then argue about stuff? prefect posted:i think that looks pretty cool, but i am also fond of perl, so you might want to reconsider that code Python code:
everybody is exactly like "I don't need this perl poo poo in my python"
|
# ¿ Jul 24, 2013 04:09 |
|
oh well it looks good to me and understandable for those kinds of brute-force things and also very convenient to tinker and reorder the loops. it's not very natural at first but I guess I got used with the bottom-up flow from comprehensions? something huge like this rarely came up for me besides challenge problems though but yeah I guess I gotta rethink this stuff
|
# ¿ Jul 24, 2013 05:25 |
|
anyway here's the entire code:Python code:
here's one way to rewrite the function but it's pretty much the same thing qntm did and I didn't see his post before. Python code:
I don't think in this case the comprehension would be faster because he's only getting the first possible solution but even so it looks better to me. a similar brute force case where it would matter is in this problem. here's one of my first attempts before figuring the real trick: Python code:
Python code:
|
# ¿ Jul 24, 2013 14:11 |
|
oh hey that for-if ladder actually looks kinda cool when you put it this way *farts* I wonder if the zebra puzzle is one of those things that can be done particularly well in prolog from what I hear people say about it edit: what the gently caress FamDav
|
# ¿ Jul 24, 2013 17:24 |
|
reading sicp and it's really neat the way it explains tail recursion separating the idea of recursive procedures from recursive processes. also loving all the numerical examples. those are my terrible programmer's first impressions on this book thanks for reading.
|
# ¿ Aug 1, 2013 10:46 |
|
how fitting for js people to be douchebags
|
# ¿ Aug 1, 2013 22:42 |
|
I think I use way too much breaks and continues in my code.
|
# ¿ Aug 26, 2013 22:58 |
|
idk it may be a symptom of my inability to decompose poo poo in small and smart looking functions but using gotos not even once
|
# ¿ Aug 26, 2013 23:23 |
|
Mr SuperAwesome posted:people still teach fortran in academia in tyool 13 don't diss the 'tran Notorious b.s.d. posted:numpy and scipy means we're stuck with python for the long haul regardless, because it will survive in the darkness of academic labs long after the outside world has abandoned it I never seen ksh and I guess I'm glad for this because the bash scripts were already hideous enough
|
# ¿ Sep 21, 2013 18:32 |
|
Notorious b.s.d. posted:tbh i don't even like operators that much for numbers. this is an angle where lisp syntax rules imo
|
# ¿ Sep 23, 2013 20:33 |
|
code:
|
# ¿ Sep 23, 2013 21:24 |
|
this is why python numpy is a gift from gods, matlab is so drat awkward
|
# ¿ Sep 25, 2013 04:32 |
|
|
# ¿ May 10, 2024 04:00 |
|
Pollyana if you're already comfortable with the basic python stuff (lists, tuples, dictionaries, opening a file idk) take a look at this course. Peter Norvig, the guy who teaches it, seems to be more of a functional programming kind of person and doesn't really like using classes regularly. imo this is the right approach with python. if you're insecure about python basics then check the mentioned cs101, I never watched it but I hear it's good. if you're into reading books check Think Python. I first learned python with that and it's p good. if you REALLY like oop, WHOA CLASSES AND STUFF then go learn ruby (if you don't care). but actually going with java would probably be the non-joke path to go but don't ask me about that, idk poo poo about java.
|
# ¿ Sep 26, 2013 01:18 |