Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
double sulk
Jul 2, 2010

Shaggar posted:

c#'s configuration manager is bad rear end.

you mean piss

Adbot
ADBOT LOVES YOU

Cold on a Cob
Feb 6, 2006

i've seen so much, i'm going blind
and i'm brain dead virtually

College Slice

prefect posted:

yeah, i'm doing a section that's name-value pairs, but it now looks like i'll need a second section where it's a list of patterns that i have to match the computer name against :barf:

i still think in terms of perl, so i want everything to be a hash with nice key lookups :argh:

is this some sort of deployment thing where you do different settings for different servers? if so look into slowcheetah. if this is client side stuff, lol sorry have fun :tipshat:

GameCube
Nov 21, 2006

OBAMA BIN LinkedIn posted:

use vim if ur serious about your text editing

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

Cold on a Cob posted:

is this some sort of deployment thing where you do different settings for different servers? if so look into slowcheetah. if this is client side stuff, lol sorry have fun :tipshat:

i'm trying to rewrite a vbscript into c#, partly as a learning experience, partly because the vbscript occasionally hangs itself for no good reason when trying to load xml files

and yes, it runs on the client machines

prefect fucked around with this message at 16:25 on May 13, 2013

Shaggar
Apr 26, 2006

Cold on a Cob posted:

is this some sort of deployment thing where you do different settings for different servers? if so look into slowcheetah. if this is client side stuff, lol sorry have fun :tipshat:

vs2012 has slowcheetah built in for the default config files (app.config, web.config,etc...)

Cold on a Cob
Feb 6, 2006

i've seen so much, i'm going blind
and i'm brain dead virtually

College Slice

Shaggar posted:

vs2012 has slowcheetah built in for the default config files (app.config, web.config,etc...)

oh yeah? cool. maybe i'll upgrade this year, after i get a new machine. 2010 is bad enough on this pos laptop.

Shaggar
Apr 26, 2006
I need to get an ssd cause this spinny drive sucks, but vs2012 is still decently fast.

Condiv
May 7, 2008

Sorry to undo the effort of paying a domestic abuser $10 to own this poster, but I am going to lose my dang mind if I keep seeing multiple posters who appear to be Baloogan.

With love,
a mod


Cold on a Cob posted:

yo here's a thing if you want to learn vim and graduate to a better level of coding

http://vim-adventures.com/

don't forget to buy a license



played this a bit, it seems like good practice, but goddamn $25 for this is wayyyyy overpriced.

X-BUM-RAIDER-X
May 7, 2008

Shaggar posted:

the most glaring of these mistakes is no checked exceptions.

Cold on a Cob
Feb 6, 2006

i've seen so much, i'm going blind
and i'm brain dead virtually

College Slice

Shaggar posted:

I need to get an ssd cause this spinny drive sucks, but vs2012 is still decently fast.

i have a core2duo 2.4 GHz w/ 4 gigs of ram running win7 (32 bit lol)

the disk is 7200 rpm too i don't get why it's so bad/slow

everything just chugs but outlook and vs2010 are the worst

MeruFM
Jul 27, 2010
lamao at people seriously suggesting vim and saying it's not an unusable piece of poo poo

ah yes let me just :%s/fart/burp/g
/my posts n n n n n 5dd :14 p

trap sprung

X-BUM-RAIDER-X
May 7, 2008

MeruFM posted:

lamao at people seriously suggesting vim and saying it's not an unusable piece of poo poo

ah yes let me just :%s/fart/burp/g
/my posts n n n n n 5dd :14 p

trap sprung

go back to gbs

MeruFM
Jul 27, 2010
vim because cmd/ctrl-f is too mainstream

sublime text allows directory grep without the need to memorize all your directories. It even improves upon grep because it searches while you type.
it has regex search while you type
most of the hotkeys for it have parity with other tools and IDEs
it's much easier to install user made plugins

it has a toolbar for more obscure features with the keyboard command next to it so you can learn it without consulting a wiki.

i'm sorry you don't like the last 20 years of UI improvements

this is all without going through a million tweaks and plugins to fix everything

MeruFM fucked around with this message at 20:42 on May 13, 2013

GameCube
Nov 21, 2006

sublime

jony neuemonic
Nov 13, 2009

MeruFM posted:

ah yes let me just :%s/fart/burp/g

best vim command

Hellsworn Barn
Apr 11, 2008

hi
are you fuckers serious about checked exceptions

PleasingFungus
Oct 10, 2012
idiot asshole bitch who should fuck off

Hellsworn Barn posted:

are you fuckers serious about checked exceptions

do you even shaggar ????

Hellsworn Barn
Apr 11, 2008

hi
no i do not shaggar and no i do not like checked exceptions

X-BUM-RAIDER-X
May 7, 2008

Hellsworn Barn posted:

no i do not shaggar and no i do not like checked exceptions

when a trivial error can kill your program then you should drat well have to make sure that is what you intended

echinopsis
Apr 13, 2004

by Fluffdaddy
I like to put the odd

code:

if random.random() < 0.0001:
sys.break()

in my code, you know, coz gently caress computers

Bloody
Mar 3, 2013

OBAMA BIN LinkedIn posted:

when a trivial error can kill your program then you should drat well have to make sure that is what you intended

i read this as indented then laughed about p-langs which will implode if not properly indented

zokie
Feb 13, 2006

Out of many, Sweden
Var helps terrible programmers like me, and with type erasure why would c# not have it?
Also checked exceptions, I think it's annoying when resharper nags about possible null-pointer stuff...

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band
how do i map a network drive with c#? :saddowns:

(i'm having a tough time finding what i need in the dot-net class library reference)

shaggar, i apologize for arguing with you all the time

Cold on a Cob
Feb 6, 2006

i've seen so much, i'm going blind
and i'm brain dead virtually

College Slice

prefect posted:

how do i map a network drive with c#? :saddowns:

(i'm having a tough time finding what i need in the dot-net class library reference)

shaggar, i apologize for arguing with you all the time

there's no straight up native .net way to do it iirc

easiest way to do it and avoid the windows api is do a process.start to invoke "net.exe use \\server\path\goes\here\"

The Management
Jan 2, 2010

sup, bitch?
So what does the future hold for our terrible programmer? Job out of college at some boring company dumb enough to hire you. Maintaining bad internal business apps. Never getting the time to work on making things better internally so that you're always stuck maintaining poo poo code. Being annoyed at your management because they don't know anything about software and will literally believe anything a sales rep says. Browsing the web and Facebook and yosposting out of boredom/resentment and barely doing any work (nobody notices the difference). Hating computers and your stupid colleagues. Dealing with outsourced developers that are so bad that you have to be their tester just to make sure things get done. Picking a fight with the CJs over server access or deployment or something else they're bad at. Reading some development books/sites, subsequent anger that your company does none of the things you view as "good". Getting laid off or quitting in disgust, continue cycle at new company. Becoming the bitter old guy by 28. Watching porn at work. Getting lousy raises based on things out of your control. Finding excuses to walk by the new receptionist's desk. Drinking at lunch. Becoming a manager, dying inside.

Why do all this when you can kill yourself now?

Cold on a Cob
Feb 6, 2006

i've seen so much, i'm going blind
and i'm brain dead virtually

College Slice
lol if you try to get fulfillment at work

it's a job, just do it, go home, and then do whatever really makes you happy or makes you feel accomplished

PleasingFungus
Oct 10, 2012
idiot asshole bitch who should fuck off

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

Cold on a Cob posted:

lol if you try to get fulfillment at work

it's a job, just do it, go home, and then do whatever really makes you happy or makes you feel accomplished

if you don't have anything that makes you feel happy/accomplished, you can pass the time before death with video games and recreational chemicals

Tiny Bug Child
Sep 11, 2004

Avoid Symmetry, Allow Complexity, Introduce Terror

The Management posted:

So what does the future hold for our terrible programmer? Job out of college at some boring company dumb enough to hire you. Maintaining bad internal business apps. Never getting the time to work on making things better internally so that you're always stuck maintaining poo poo code. Being annoyed at your management because they don't know anything about software and will literally believe anything a sales rep says. Browsing the web and Facebook and yosposting out of boredom/resentment and barely doing any work (nobody notices the difference). Hating computers and your stupid colleagues. Dealing with outsourced developers that are so bad that you have to be their tester just to make sure things get done. Picking a fight with the CJs over server access or deployment or something else they're bad at. Reading some development books/sites, subsequent anger that your company does none of the things you view as "good". Getting laid off or quitting in disgust, continue cycle at new company. Becoming the bitter old guy by 28. Watching porn at work. Getting lousy raises based on things out of your control. Finding excuses to walk by the new receptionist's desk. Drinking at lunch. Becoming a manager, dying inside.

Why do all this when you can kill yourself now?

sounds like your job sucks, the only thing here that applies to me is "watching porn at work"

Cold on a Cob
Feb 6, 2006

i've seen so much, i'm going blind
and i'm brain dead virtually

College Slice

Tiny Bug Child posted:

sounds like your job sucks, the only thing here that applies to me is "watching porn at work"

you got it worse than me. i got bored with coding for fun because of coding for work, at least watching porn is still fun for me

uG
Apr 23, 2003

by Ralp
maybe you should write porn apps for fun

The Management
Jan 2, 2010

sup, bitch?

Tiny Bug Child posted:

sounds like your job sucks, the only thing here that applies to me is "watching porn at work"

I'm actually a great programmer so none of that applies to me

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

The Management posted:

I'm actually a great programmer so none of that applies to me

i'm not sure you're allowed in this thread

or at least you're not allowed to be mean to us

Shaggar
Apr 26, 2006

prefect posted:

how do i map a network drive with c#? :saddowns:

(i'm having a tough time finding what i need in the dot-net class library reference)

shaggar, i apologize for arguing with you all the time

I don't think theres a way to do it which is probably cause its a userland feature and lots of c# stuff runs w/out user credentials. if you're just looking to access network files you can treat \\computer\sharename as any other folder in c#. if you want to map a drive for a user then shelling out to net use or a batch script or something is probably doable.

e: looks like someone wrote a p/invoke wrapper for u http://www.codeproject.com/Articles/6847/Map-Network-Drive-API

e2: other option is to include the windows script host libraries via COM http://techisolutions.blogspot.com/2011/12/map-network-drive-using-c-vbnet-code.html

Shaggar fucked around with this message at 17:06 on May 14, 2013

The Management
Jan 2, 2010

sup, bitch?
I was trying to save you a lifetime of agony, I don't see how I could be any more kind.

Tiny Bug Child
Sep 11, 2004

Avoid Symmetry, Allow Complexity, Introduce Terror

Cold on a Cob posted:

you got it worse than me. i got bored with coding for fun because of coding for work, at least watching porn is still fun for me

sorry about your misogyny

Cold on a Cob
Feb 6, 2006

i've seen so much, i'm going blind
and i'm brain dead virtually

College Slice

Tiny Bug Child posted:

sorry about your misogyny

i only watch organic vegan bespoke artisinal porn :colbert:

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

Shaggar posted:

I don't think theres a way to do it which is probably cause its a userland feature and lots of c# stuff runs w/out user credentials. if you're just looking to access network files you can treat \\computer\sharename as any other folder in c#. if you want to map a drive for a user then shelling out to net use or a batch script or something is probably doable.

e: looks like someone wrote a p/invoke wrapper for u http://www.codeproject.com/Articles/6847/Map-Network-Drive-API

e2: other option is to include the windows script host libraries via COM http://techisolutions.blogspot.com/2011/12/map-network-drive-using-c-vbnet-code.html

i wound up shelling out

but my program actually works! :woop:

(people tell me i shouldn't be so surprised when things work)

Cold on a Cob
Feb 6, 2006

i've seen so much, i'm going blind
and i'm brain dead virtually

College Slice

prefect posted:

but my program actually works! :woop:

(people tell me i shouldn't be so surprised when things work)

gently caress those people, this is when programming is still super fun :unsmith:

plenty of time to be jaded about coding in the future

Adbot
ADBOT LOVES YOU

Shaggar
Apr 26, 2006

prefect posted:

i wound up shelling out

but my program actually works! :woop:

(people tell me i shouldn't be so surprised when things work)

one of the dirty secrets of .net is that on windows you have access to everything in com which is a whole shitload of stuff. you can also register your .net libraries in com too so old com poo poo can use them. what that means is if you've got some old rear end vb6 app and you want to do something like webservice or have a nice database model or w/e you can do that in .net and then expose it to the vb6 via com so you never need to upgrade from vb6!!!

  • Locked thread