|
just stared learning python and I find it really funny that the answer to everything is a for in loop. arrays objects strings files whatever. there are lambadas but the docs recommend using list comprehensions which of course use for in loops.
|
# ? Mar 9, 2016 13:58 |
|
|
# ? May 11, 2024 10:21 |
|
Mahatma Goonsay posted:just stared learning python and I find it really funny that the answer to everything is a for in loop. arrays objects strings files whatever. foreach loops loving own
|
# ? Mar 9, 2016 14:00 |
|
applying functions over collections is better every time
|
# ? Mar 9, 2016 14:12 |
|
Bloody posted:applying functions over collections is better every time epic this ftw!
|
# ? Mar 9, 2016 14:13 |
|
Bloody posted:applying functions over collections is better every time
|
# ? Mar 9, 2016 14:22 |
|
i just briefly, for just a couple of minutes, gazed into the abyss of attempting to automate an fpga toolchain oh well didnt want any automation whatsoever anyways
|
# ? Mar 9, 2016 14:39 |
|
i have a bunch of xml files i need to manually dig through whats a good tool for looking around in xml files
|
# ? Mar 9, 2016 15:10 |
|
Bloody posted:i have a bunch of xml files i need to manually dig through whats a good tool for looking around in xml files excel
|
# ? Mar 9, 2016 16:03 |
|
when someone asks you to hand-edit xml, respond as if they've told you to go gently caress yourself and flicked a cigarette at you're face
|
# ? Mar 9, 2016 16:09 |
|
eclipse has decent xml tooling
|
# ? Mar 9, 2016 16:10 |
|
the xml parsing lib in a plang of your choice
|
# ? Mar 9, 2016 16:11 |
|
linqpad if you're on windows
|
# ? Mar 9, 2016 16:12 |
|
Captain Foo posted:the xml parsing lib in a plang of your choice* *)you don't have to use a plang, you can also use real language
|
# ? Mar 9, 2016 16:13 |
|
Bloody posted:applying functions over collections is better every time as long as you are aware of how and when execution will be deferred and the potential risks of doing so.
|
# ? Mar 9, 2016 16:14 |
|
Bloody posted:i have a bunch of xml files i need to manually dig through whats a good tool for looking around in xml files eclipse or vs, duh.
|
# ? Mar 9, 2016 16:14 |
|
Wheany posted:*)you don't have to use a plang, you can also use real language i know what thread i'm in
|
# ? Mar 9, 2016 16:25 |
|
Bloody posted:i have a bunch of xml files i need to manually dig through whats a good tool for looking around in xml files but seriously though Ctrl+F
|
# ? Mar 9, 2016 16:29 |
|
Mahatma Goonsay posted:just stared learning python and I find it really funny that the answer to everything is a for in loop. arrays objects strings files whatever. sometimes code golfing it's better to use curiously recursive class constructors
|
# ? Mar 9, 2016 16:47 |
|
JewKiller 3000 posted:oh come on mr president, what would you have to do to get an extra 20k from epic? threaten to move to somewhere hip, like milwaukee? actually since ill be moving from the junior developer equivalent to a full developer at eoy, i'm guaranteed a 30k raise this year i will finally be a 6 figgy fucktard.
|
# ? Mar 9, 2016 16:59 |
|
VikingofRock posted:I'll admit that I don't know perl, but what you wrote in perl doesn't really seem any nicer than what I wrote in sed perl compatible regular expressions pcre, bitch
|
# ? Mar 9, 2016 17:57 |
|
Shaggar posted:as long as you are aware of how and when execution will be deferred and the potential risks of doing so. or slap a .tolist at the end and call it a day
|
# ? Mar 9, 2016 21:55 |
|
or just use a for loop and suddenly your code is clear and its time and space complexity are both obvious.....but oh god it's more than a single line the horror the horror
|
# ? Mar 9, 2016 22:46 |
|
nuget is a dumb pain in the rear end
|
# ? Mar 9, 2016 22:59 |
|
i had to manually restore packages in jenkins' workspace (probably because jenkins' run of nuget wasnt using the proxy settings i was giving it maybe as a result of running as a different user? idk) but now it at least builds in jenkins GOOD ENOUGH
|
# ? Mar 9, 2016 23:01 |
|
nuget blows but nuget 3 is way better than 2 and vs2015 nuget is better cause it useds dnu for package management instead of visual studio AND/OR nuget powershell commands
|
# ? Mar 9, 2016 23:02 |
|
lesson learned: shove your package binaries into git with everything else
|
# ? Mar 9, 2016 23:02 |
|
Bloody posted:lesson learned: shove your package binaries into git with everything else i've recently started using git lfs for my unity project and it seems okay that's my story.
|
# ? Mar 9, 2016 23:22 |
|
Bloody posted:lesson learned: shove your package binaries into git with everything else no don't... its too late hes already dead
|
# ? Mar 9, 2016 23:25 |
|
i havent shoved them in there yet as usual, the issue is that every loving thing i do is kneecapped one way or another by our enterprise IT and usually its the proxy ugh
|
# ? Mar 9, 2016 23:27 |
|
nuget package restore is pretty good. when i have package problems i literally delete everything from my packages folder and just run restore. it usually fixes the problem and as an added benefit it might show me if i have mismatched versions of a package across all of the projects in my solution
|
# ? Mar 9, 2016 23:30 |
|
it works for me locally but doesnt work on the build server, which is the local machine.
|
# ? Mar 9, 2016 23:59 |
|
this link tells you how to restore packages in a variety of ways including with msbuild https://docs.nuget.org/consume/package-restore the most common way and the way i made it work was like this http://pastie.org/private/mvspvqur4gt4eurdis8xjw#10,19-21,27,31 all of the appropriate lines are highlighted in yellow, but you can basically use this whole file as is in virtually any project notice the RestorePackages target is depended upon by the other targets. this is in a file called build.proj which i have the build server (tfs/msbuild in my case) pointing to. i also have nuget.exe in the repo under a tools folder if this helped, please upvote
|
# ? Mar 10, 2016 00:24 |
|
paket is alright too
|
# ? Mar 10, 2016 00:26 |
|
Ludwig van Halen posted:pcre, bitch
|
# ? Mar 10, 2016 06:43 |
|
i've been writing a bunch of perl again. i can't quit this dumb language.
|
# ? Mar 10, 2016 06:49 |
|
jony neuemonic posted:i've been writing a bunch of perl again. i can't quit this dumb language. i'm the chomp keyword
|
# ? Mar 10, 2016 06:55 |
|
my stepdads beer posted:i'm the chomp keyword im the chop keyword, in that im shorter and badly-designed
|
# ? Mar 10, 2016 07:59 |
|
Soricidus posted:or just use a for loop and suddenly your code is clear and its time and space complexity are both obvious.....but oh god it's more than a single line the horror the horror depending on what you're doing exactly; for loops are usually far less clear than a linq method chain
|
# ? Mar 10, 2016 12:34 |
|
yeah linq method chains are extremely clear where's that color-coded screenshot of a for loop vs a linq expr in terms of basically the same functionality (iteration/filtering/etc)
|
# ? Mar 10, 2016 15:31 |
|
|
# ? May 11, 2024 10:21 |
|
Soricidus posted:or just use a for loop and suddenly your code is clear and its time and space complexity are both obvious.....but oh god it's more than a single line the horror the horror actually your code is usually less clear because its much easier to capture intent and meaning by applying functions than doing stuff in a loop
|
# ? Mar 10, 2016 15:54 |