|
Mr SuperAwesome posted:personally i write all my string janitoring scripts in c#
|
# ? Oct 23, 2013 02:16 |
|
|
# ? May 16, 2024 18:50 |
|
Mido posted:depends m8 C# is entirely Microsoft. Very little of the standard library is contained in the emca "standard." Mono is an abandoned crock of poo poo. I used to hack on it. Code is easy to read because it's primitive. Dog slow. Missing huge chunks of the Microsoft standard library. Compatibility with existing csharp code bases is a joke. Don't talk to me about xamarin. 30 semi-employed iOS/android hackers are not the key to a robust language platform for commercial applications. Ximean and Novell could barely be arsed to support server side usage in the glory days and xamarin has 1/10000th of the budget w/ none of the focus
|
# ? Oct 23, 2013 02:22 |
|
use awk for text manipulation
|
# ? Oct 23, 2013 02:23 |
|
has anyone made a python ide worth using yet i have some horrible lovely foss thing (that despite being python is windows only apparently, eugh) to make less lovely
|
# ? Oct 23, 2013 02:24 |
|
Mr SuperAwesome posted:has anyone made a python ide worth using yet Komodo
|
# ? Oct 23, 2013 02:24 |
|
i tried using xamarin and it was great once you got past everything being tricky and broken (this was never) with no debug warnings which is a shame hopefully its better with ios 7 being live i cant wait to make my app for anderoid so poors can steal it then again objc is good but c# ios dev is so tempting
|
# ? Oct 23, 2013 02:27 |
|
Mr SuperAwesome posted:i tried using xamarin and it was great once you got past everything being tricky and broken (this was never) with no debug warnings which is a shame Mono has been quirky and broken for eight years. Not gonna hold my breath for a smaller staff with a more difficult target platform to smooth out all the rough parts.
|
# ? Oct 23, 2013 02:33 |
|
drat you have a lot of rage about xamarin/C# i've been using xamarin at work to do mobile poo poo and they seem to push out pretty meaningful patches every month and things work well and i get poo poo done without having to fiddle with 3 different langs to deploy a similarly behaving application on a buncha different platforms
|
# ? Oct 23, 2013 02:35 |
|
Any time you think you want csharp without windows, stop, take a deep breath and reconsider. You actually needed java 8 or scala. Will you like them as much as csharp? Probably not. But you gotta choose between csharp and non-windows platform support. That's just how it is.
|
# ? Oct 23, 2013 02:36 |
|
Notorious b.s.d. posted:Any time you think you want csharp without windows, stop, take a deep breath and reconsider. jfc, i use C#/GTK#(ugh) to deploy internal tools that we depend on and it's fuckin' fine, GOSH
|
# ? Oct 23, 2013 02:39 |
|
the only reason to use .net is f#, and if you're not running on windows, you should just use ocaml. so there's no incentive for it to work outside windows
|
# ? Oct 23, 2013 02:40 |
|
Mido posted:drat you have a lot of rage about xamarin/C# to be fair mobile is xamarin's focus so I hope that part works. I am not expecting c.a.s or entity framework or asp.net to see a lot of new dev work in mono
|
# ? Oct 23, 2013 02:42 |
|
Mido posted:jfc, i use C#/GTK#(ugh) to deploy internal tools that we depend on and it's fuckin' fine, GOSH Gtk# is tied to gtk2, which is dead They could update to gtk3, but the API is unstable and there is like, one dev left working on ggtk, so have fun getting bugs fixed. (I waited over three years on a bug report and it got fixed by accident) When you write mono/ggtk sharp code you are two layers deep in dead projects
|
# ? Oct 23, 2013 02:46 |
|
MononcQc posted:use awk for text manipulation i had to look at logs today
|
# ? Oct 23, 2013 02:48 |
|
if you're dealing with logs and are not using awk you need to learn awk (unless you have something sweet like splunk going on)
|
# ? Oct 23, 2013 02:51 |
|
Notorious b.s.d. posted:perl, Python, and ruby are all much more similar than they are different. They're all slow, they share a lot of the same awful implementation problems, they all have half baked type systems Jonny 290 posted:perl loving sucks for text manipulation what the gently caress are you gibbering fools blathering on about, INSANITY, theres no way to even manipulate a loving text file at ALL in perl. its worthless leftover glue garbage from slackware autists who couldnt possibly fathom writing a shell script more than four lines long. throw it in the trash why are the best posts always at the bottom of the page?
|
# ? Oct 23, 2013 03:06 |
|
Mr SuperAwesome posted:has anyone made a python ide worth using yet i think pycharm is pretty cute. they also released a free version somewhat recently that has most of the functionality that you would need unless you do a lot of web stuff.
|
# ? Oct 23, 2013 03:39 |
|
what is a python ide going to do for you that vim doesn't? i guess you can have one window containing code, a directory tree, and a console, great. what about any of the actual features that make ides useful? you're limited by python to no more than a gui for grep
|
# ? Oct 23, 2013 03:44 |
|
why don't modern .net apps have reasonable cross-platform guarantees within the windows ecosystem? i feel like all .net 4.5 or whatever applications should be compatible with x86, winRT, and winphone out of the box (unless youre doing something weird/stupid/whatever) but i also feel like that almost certainly isn't the case? shouldnt the whole CLR nonsense make this trivial (if you are microsoft)?
|
# ? Oct 23, 2013 03:49 |
|
MononcQc posted:if you're dealing with logs and are not using awk you need to learn awk I keep two books on my desk at all times, APUE and sed and awl pocket reference. awk owns
|
# ? Oct 23, 2013 04:18 |
|
Mr SuperAwesome posted:has anyone made a python ide worth using yet is wing any good? i haven't done python in a while, but it seemed pretty good (although i'm not really a huge ide person in general) also, shell scripting is terrible, and powershell is no exception
|
# ? Oct 23, 2013 11:56 |
|
so installing the windows driver update for my laptop's video card updates microsoft's .net framework to a version that crashes all visual studio poo poo the instant i try to load it. not even an error, just straight up closes with a windows must close this poo poo error anyway now its 3 days later and i'm ready to start writing this project for the music thread
|
# ? Oct 23, 2013 15:13 |
|
Stringent posted:oh god no joke i had an entire contract to convert a bunch of word docs to a new xml format they were moving to just converted those things to plaintext, dumped them into a perl script, this was when ruby was my preferred language in the first 3-month stint i had written code that did 90% of the job for me. later on, the company acquired another contract from the same place, asked me back. within two weeks i had gotten that to about 99% literally just ran the tool on a bunch of files, sanity checked them, did the couple of manual steps required (there was a part of the job that actually required human thought, you know, the part you actually can't automate but don't really want to anyway) and blam six months' work done in two weeks
|
# ? Oct 23, 2013 15:26 |
|
and then i hosed around on the internet for the next four months because i knew they wouldn't have paid me the amount they were making off that contract otherwise
|
# ? Oct 23, 2013 15:26 |
sublime text is the best editor. it helps to have basic vim knowledge for if youre in ssh or have no other editor available, but subl is generally all you need.
|
|
# ? Oct 23, 2013 15:35 |
|
Dessert Rose posted:no joke i had an entire contract to convert a bunch of word docs to a new xml format they were moving to writing a wacky deployment tool last fall for some wireless configs is giving me 2 week vacations all through the fall and winter "Deployment framework will take two weeks" "that's all?"
|
# ? Oct 23, 2013 15:38 |
|
JewKiller 3000 posted:what is a python ide going to do for you that vim doesn't? i guess you can have one window containing code, a directory tree, and a console, great. what about any of the actual features that make ides useful? you're limited by python to no more than a gui for grep plangers often feel inadequate so they try to look for things the people they look up to, real programmers, use. it doesnt matter why the real programmers use them, because you're a planger, you just want to emulate them without having to invest any time.
|
# ? Oct 23, 2013 17:23 |
|
MononcQc posted:if you're dealing with logs and are not using awk you need to learn awk is there any reason to use awk instead of perl i remember back when i started in the perl4 days one of its big selling points was that it was an awk- and sed-killer and thats still all i use it for, all " perl -pi.back -e 's/buttz/butts/g;' "
|
# ? Oct 23, 2013 17:30 |
|
Nomnom Cookie posted:if history substitution is enabled, ! is a special character within "". however, if you escape it with \ then bash doesn't remove the \. what if i want to substitute a variable into a string containing a ! ? afaict the answer is gently caress you or use a heredoc a way back but: don't use double quotes, just backslash-escape every non-alphanumberic character including spaces
|
# ? Oct 23, 2013 17:37 |
|
Mr SuperAwesome posted:has anyone made a python ide worth using yet sublime text 2
|
# ? Oct 23, 2013 17:47 |
|
fritz posted:is there any reason to use awk instead of perl if you're already an awk expert, it's probably worth sticking with awk. there's value in using what you know well. but perl can do just about all the same stuff, and more
|
# ? Oct 23, 2013 17:54 |
|
fritz posted:is there any reason to use awk instead of perl you are too stupid to understand/too lazy to learn perl
|
# ? Oct 23, 2013 17:57 |
|
also if you get butt hurt about things like string/numerical comparison operators http://perldoc.perl.org/perltrap.html#Awk-Traps
|
# ? Oct 23, 2013 17:58 |
|
Notorious b.s.d. posted:Gtk# is tied to gtk2, which is dead oh believe me i know, gtk# is hell "yes let us attempt to write an OO wrapper for a bunch of nasty C code and let the namespaces be a total loving clutterfuck" amongst other atrocities when i'm doing desktop applications i usually give up and just do them in C++/Qt
|
# ? Oct 23, 2013 18:30 |
|
Notorious b.s.d. posted:People who get butthurt bout the trivial differences between scripting languages should be tied down and forced to debug ksh code. A full 40 hour work week for every time they bring it up.
|
# ? Oct 23, 2013 18:44 |
|
fritz posted:is there any reason to use awk instead of perl Awk is fast as hell and so simple it takes literally 15-30 minutes to learn the basics and get going if you have the right tutorial. I have parsed crash dumps before to do some simple analytics using awk and it was fairly sweet and straightforward: code:
REGEX AND/OR BOOLEAN { THINGS TO DO IF IT MATCHES } Every line goes down every clause to be possibly matched, and you have special BEGIN and END clauses that get run once at the beginning and at the end respectively. The REGEX AND/OR BOOLEAN part uses C syntax to do the matching, and supports one or more regex, and works by line. Then you have a few special variables that can be used:
Each variable is otherwise global in scope, doesn't need initialization, and will act both as string and integers if they can (what is lovely in PHP and JS, but kind of useful for logs). There are also arrays (with trick arrays to multidimensional). Comments start with a #. The script above would be run by calling: code:
MononcQc fucked around with this message at 19:28 on Oct 23, 2013 |
# ? Oct 23, 2013 19:24 |
|
MononcQc posted:It's stupidly fast to get something going to parse log files. The one above showed that blocking IO would back memory up and kill nodes. sir im going to have to ask you to leave this is a safespace for bad programmers
|
# ? Oct 23, 2013 19:42 |
|
I'm too enthusiastic about my one-off awk scripts to leave!!
|
# ? Oct 23, 2013 20:09 |
|
MononcQc posted:I'm too enthusiastic about my one-off awk scripts to leave!! I really do wonder though how regex based languages became so utterly dominant to the point that the "regexes" they parse arent even regular anymore but some sort of hybrid hellspawn of backtracking and exponential running time, when context free grammar parsing has been a solved problems for so long now. I mean obviously snobol and its successors are poo poo too, but why havent any modern, usable CFG based parsing languages been invented for whats literally decades now, when its quite obvious to anyone with a brain that regexes arent really what people actually want or need for parsing in most cases as, for one, what people call regexes nowadays actually arent
|
# ? Oct 23, 2013 20:15 |
|
|
# ? May 16, 2024 18:50 |
|
MononcQc posted:Awk is fast as hell and so simple it takes literally 15-30 minutes to learn the basics and get going if you have the right tutorial. the perl version is like ten characters longer and is still a one-liner. there's no reason to learn a terrible 1980s scripting language to write one-liners. learn perl be happy
|
# ? Oct 23, 2013 20:17 |