|
Shameproof posted:I think var is fine iff the type name is in the method that returns it. So i agree, but its just another thing to gently caress up that people will gently caress up. java forces you to do the right thing always which is one of the things i like about it. people gettin mad bout long type declarations are probably scrubs used to writing their badlanguages in text editors.
|
# ? Jul 10, 2012 01:07 |
|
|
# ? May 31, 2024 04:42 |
|
i put shaggar on ignore and 7 weeks later i had a programming job
|
# ? Jul 10, 2012 01:11 |
|
luv ya, buddy
|
# ? Jul 10, 2012 01:11 |
|
JawnV6 posted:it's not "learn x language to be a good programmer" thats stupid I read higher order perl It's got some interesting stuff, but it is really repetitive. "I wrote this function. What if you want it to do x too? I rewrote it to do that. But that's really bad practice, so I've tweaked it to do x in a different way. Now it's great!" *new chapter* "so that function we wrote last chapter needs to be reworked" It has a lot of great information on perl's scopes and the things you can use them for. Also using anonymous functions effectively. If youre familiar with perl I'm not sure it adds much
|
# ? Jul 10, 2012 01:38 |
|
CaptainMeatpants posted:and for the love of god do at least one decent sized project without jquery ugh. this is like those people that say you should learn c so you know about pointers/memory management/stupid antiquated poo poo
|
# ? Jul 10, 2012 01:55 |
|
god drat perl is cool like srs every day im learning a new module and some new poo poo to do and am constantly thinking of ways to implement it, as a language it never frustrates me without my fuckup being the root cause, i am pretty good with the debugger at this point, hell yeah
|
# ? Jul 10, 2012 01:57 |
|
Tiny Bug Child posted:ugh. this is like those people that say you should learn c so you know about pointers/memory management/stupid antiquated poo poo hey you don't have to do that if you dont want to learn about programming but the guy said he wanted to learn about programming
|
# ? Jul 10, 2012 02:02 |
|
Jonny 290 posted:god drat perl is cool Now you can look forward to constant frustration as 'people' tell you its a dead language that was only good for 'simple scripts'
|
# ? Jul 10, 2012 02:33 |
|
Jonny 290 posted:god drat perl is cool Do you have a good resource for the debugger cause I haven't been using it and I think I should be for my next project
|
# ? Jul 10, 2012 02:49 |
|
Tiny Bug Child posted:ugh. this is like those people that say you should learn c so you know about pointers/memory management/stupid antiquated poo poo you really should learn c. And maybe some ASM too. its good to know about what is lower level than the poo poo you program, gives you some insight into it. PLus c owns.
|
# ? Jul 10, 2012 03:59 |
|
also, perl dudes: i've never really done much perl, what kinda oo is it? also how high level, comparatively. Tia.
|
# ? Jul 10, 2012 04:01 |
|
Sweeper posted:i want to read a blog that teaches me about the latest and greatest in programming languages without having to read giant white papers full of math and poo poo i dont feel like reading lambda the ultimate
|
# ? Jul 10, 2012 04:01 |
|
Ronald Raiden posted:also, perl dudes: i've never really done much perl, what kinda oo is it? also how high level, comparatively. Tia. perl's object oriented facilities are provided via moose, which is essentially a port of CLOS from lisp if you're familiar with that. it's very high level (the canonical style is more or less declarative), supports traits/roles, composition thereof, traditional inheritance, really deep introspection, and has a metaobject protocol such that the object framework itself is extensible (there are a bit over seven hundred packages in the MooseX namespace - this isn't for show) there are some that will tell you that perl has some other object oriented system, based on python's old-style classes with some of larry wall's zany nomenclature thrown in; if you run into one of these people, shoot them.
|
# ? Jul 10, 2012 04:09 |
|
Jonny 290 posted:god drat perl is cool ps devel::nytprof is real cool i'm told
|
# ? Jul 10, 2012 04:12 |
|
Casao posted:It has a lot of great information on perl's scopes and the things you can use them for. Also using anonymous functions effectively. If youre familiar with perl I'm not sure it adds much it introduces closures, function composition, and laziness pretty well. the first you might know just from being a language lawyer but the other two you wouldn't. the incrementalism you mentioned is pretty common in tutorial works as a way to introduce new concepts or features with the motivation for using them
|
# ? Jul 10, 2012 04:14 |
|
no way are you gettin 5 in a row buddy
|
# ? Jul 10, 2012 04:15 |
|
Otto Skorzeny posted:perl's object oriented facilities are provided via moose, which is essentially a port of CLOS from lisp if you're familiar with that. it's very high level (the canonical style is more or less declarative), supports traits/roles, composition thereof, traditional inheritance, really deep introspection, and has a metaobject protocol such that the object framework itself is extensible (there are a bit over seven hundred packages in the MooseX namespace - this isn't for show) that sounds promising, and makes me kinda want to give perl another shot. In whatever the newest perl is, How oo is it? is everyting including functions a first-class object, or is it half-assed oo like java.
|
# ? Jul 10, 2012 04:17 |
|
or php but that's really not worth mentioning, except to invoke tbc. php OO is like, .000001 assed.
|
# ? Jul 10, 2012 04:19 |
|
what's wrong with php oo
|
# ? Jul 10, 2012 04:28 |
|
perl debugger is dead simple, at least how i use it -d flag to invoke of course add this up top: use Data::Dumper; s to single step (after you s you can just enter enter enter to step) c <line number> or c <sub> breaks you there c <enter> to just blow through to the end R restarts from the beginning L lists your breakpoints V lists your vars S lists subroutines p <$scalar> prints it x <@array or %hash> prints those but dont use that use print Dumper(\%hash) if you want to do a postmortem on your vars, do an o inhibit_exit before you c also imo it is easier + faster to gently caress around in the debugger versus writing/running if you're just learning how print works and poo poo. run 'perl -de 1', boom youre in a clean interpreter. R wipes your vars, fresh start. Jonny 290 fucked around with this message at 04:32 on Jul 10, 2012 |
# ? Jul 10, 2012 04:30 |
|
Tiny Bug Child posted:what's wrong with php oo ugh im arguing with tbc but im drunk so whatever ill bite. The oo itself isn't completely terrible, but its super inconsitent, you can't expect any given thing to behave like an object, some behave sorta l ike some, some aren't and.... actually gently caress it, nevermind. I'm not gonna do this. PHP is bad but arguing with tbc about it, even drunk, will get me nowhere. TBC I love you. But no homo. Well, Maybe A little homo, if we get some taco bell in the mix.
|
# ? Jul 10, 2012 04:35 |
|
github just raised $100M in their first round of funding. drat
|
# ? Jul 10, 2012 06:42 |
|
nice that should be one hell of a logo redesign
|
# ? Jul 10, 2012 06:44 |
|
Php type definitions are static but php variables are dynamically typed. It's the worst thing ever and the best you can do is c++ for retards without all the handholding you get from a c++ compiler.
|
# ? Jul 10, 2012 07:06 |
|
woah when did PHP add reflection, that's sort of useful
|
# ? Jul 10, 2012 07:11 |
|
quote:Please note that certain parts of the internal API are missing the necessary code to work with the Reflection extension. E.g., an internal PHP class might be missing reflection data for properties. These few cases are considered bugs, however, so they should be discovered and fixed. is there a for php
|
# ? Jul 10, 2012 07:14 |
|
What I like about Perl, in addition to all that stuff previously mentioned is lists. gently caress yeah lists! Get your hash keys or values or take some array, throw it into map and grep and maybe take some stuff from List::Util/List::MoreUtils (like zip, mesh, partition into multiple arrays) and baby you've got a stew going As for the Java stuff, to be more specific in Java 7 "Type Inference for Generic Instance Creation" was added, that is the RHS of an assignment can omit type parameters, so this: Map<String, List<Trade>> trades = new TreeMap<String, List<Trade>> (); becomes Map<String, List<Trade>> trades = new TreeMap<> (); So, it is some minor syntax sugar that applies to the RHS of an assignment. Better than nothing I guess? tef please also learn scala and post about that
|
# ? Jul 10, 2012 07:15 |
|
it is good to see perl getting the love it deserves.Ronald Raiden posted:that sounds promising, and makes me kinda want to give perl another shot. oh man its my time to shine: *deep breath* In perl 6 everything is an object -- actually, it's a metaobject which can be represented by anything; you can declare an object that is actually mapped to a C struct for instance. But yes! Even classes are objects. They don't need to be initialized! here, read a code: Perl code:
The actual grammar of the language is also first class and can be accessed as if it were a 'regex'. I say regex because perl 6 actually uses full recursive grammars as its regex, and the parser is written using said grammars. This means the language can be redefined during compile-time by altering its parsing grammar. Here's how: Perl code:
my $tup = 4 Y 'fart'; This is pretty swell because then metaoperators get involved. What the gently caress are they, you probably didn't ask? yu should know, you've undoubtedly used one: $a += 5; ^ Metaoperator! an operator that uses another operator. Lets get the awful Y combinator thing I just made and try it out: Perl code:
Perl code:
|
# ? Jul 10, 2012 10:59 |
|
Perl 6 isn't perl yet sorry bro
|
# ? Jul 10, 2012 11:50 |
|
Otto Skorzeny posted:lambda the ultimate lol Otto Skorzeny posted:there are some that will tell you that perl has some other object oriented system, based on python's old-style classes with some of larry wall's zany nomenclature thrown in; if you run into one of these people, shoot them. it's more likely than you think. but yeah jonny might have issues with moose on ~5.0~
|
# ? Jul 10, 2012 11:54 |
|
http://vimeo.com/45474360 welp so I gave a talk. but someone else's talk http://vimeo.com/45433299 was much better. tef fucked around with this message at 14:23 on Jul 10, 2012 |
# ? Jul 10, 2012 11:56 |
|
Jonny 290 posted:god drat perl is cool Stop it, you're making me jealous.
|
# ? Jul 10, 2012 12:31 |
|
Casao posted:Perl 6 isn't perl yet sorry bro he asked, unless u think he really wanted to know if everything in perl 5.16 was a 1st class object
|
# ? Jul 10, 2012 13:02 |
|
I don't know guys, I think programming is pretty rad. What sucks is the bunch of lovely business problems that many get paid to solve while they'd never ever touch that poo poo for free. I.e. what sucks is more often the environment you program in and the problems you solve, not programming itself.
|
# ? Jul 10, 2012 13:47 |
|
MononcQc posted:I don't know guys, I think programming is pretty rad. What sucks is the bunch of lovely business problems that many get paid to solve while they'd never ever touch that poo poo for free. I.e. what sucks is more often the environment you program in and the problems you solve, not programming itself. well of course everyone feels this way
|
# ? Jul 10, 2012 13:54 |
|
Apocadall posted:i'm currently working my way through code academy for the past couple weeks trying to understand programming better. while it has been enjoyable and i like the way the teaching itself is set up i have had a few people tell me that i should do more with java or learn c++ before using js because it will create bad habits. is this true and how do people here recommend self-teaching, past week i've been trying to teach myself linear algebra but that is going to a much harder task i'm feeling. congrats on being a stand up self learner c++ gives you more rope to hang yourself with than java, if your goal is to learn c++ and java then you're stuck, but if your goal is to learn a modern oo language then I'd probably recommend python as it's easier to start with - js is junk but useful if you want a web programming job linear algebra (and probably most types of math) are way more fun to learn if you have a fancy calculator to actually grind the numbers for you, I always recommend MATLAB but depending on what your interests are and what you're learning, Excel may work just as well (if you plan to work in a numerate field, learn both) certifications can make you learn things about a language or piece of tech that you wouldn't otherwise know and reinforce your confidence for interviews, they're not a panacea but only a hipster employer would think less of you for spending the time, effort and money to attain them - that said I'm sure there's a huge spectrum of quality and cost effectiveness in the certifications out there so do your homework
|
# ? Jul 10, 2012 17:20 |
|
Internaut! posted:hipster employer would think less of you for spending the time, effort and money to attain them - that said I'm sure there's a huge spectrum of quality and cost effectiveness in the certifications out there so do your homework I found that there is no correlation between certificates and ability, or at least not a significant enough one to warrant only looking at certified programmers.
|
# ? Jul 10, 2012 18:14 |
|
Internaut! posted:congrats on being a stand up self learner python is bad. dont learn python
|
# ? Jul 10, 2012 18:57 |
|
on the other hand, python is good, do learn python. really makes u think
|
# ? Jul 10, 2012 19:00 |
|
|
# ? May 31, 2024 04:42 |
|
don't listen to shaggar, learn all the languages.
|
# ? Jul 10, 2012 19:00 |