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
prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

Mr Dog posted:

Programming is better suited to being taught by means of apprenticeships rather than degrees

this is how people learn to program in practice anyway, just in an informal and inefficient way

ideally, you'd have a combination of formal education with the apprenticeships; i am always wishing i knew more "hard" computer science stuff

Adbot
ADBOT LOVES YOU

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

Cold on a Cob posted:

the best part of being a coder is going back and looking at old code and being like "what the hell is this poo poo this is terrible" then checking the repo history and seeing it was u

this takes about two weeks

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

Martytoof posted:

how do i make a webpage with it

with a form and ecommerce and a sweet flash intro

at least i've never tried (or wanted) to learn how to create flash things

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

Martytoof posted:

idgi should i be using a perl instead

i unironically love perl and i don't care who knows :swoon:

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

BANME.sh posted:

inline conditionals and loops own if they fit on one line, sorry

gently caress that; i've had to untangle the stupid things that go on for four hundred characters with no newlines

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

A Sloth posted:

MiDAS

Multiplication, Division, Addition, Subtraction

Hope this helps

division is just a kind of multiplication, and subtraction is just a kind of addition, so

ma

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

MORE CURLY FRIES posted:

write a function in javascript which redefines itself once its run

you can probably name a javascript function with a non-printable character

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

keygen and kel posted:

you also apparently think australia is part of europe.

well, they have a queen, don't they?

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

Rexicon1 posted:

Who det queen er austrailier

australia believes in queens

europe is where queens come from

australia is part of europe

qed

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band
perl

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

i'm guessing there's a language out there named after piet mondrian :shrug:

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

Resplendent Spiral posted:

inline short if statements
align end brackets to start
deeper lines are 1 tab in

glad i don't code for a living or i'd be dead from nerd rage

pre:
void dickbuggeryfucksacks(int fuckbuckets)
{
   if(loldongs){no();ok();actuallyno();}
   else
      {
          fuckyou();
      }
}

also, put some loving spaces in there -- they are cheap, and you don't have to ram everything together like that :corsair:

pre:
void dickbuggeryfucksacks(int fuckbuckets) {
    if (loldongs) {
        no();
        ok();
        actuallyno();
    } else {
        fuckyou();
    }
}
there you go :colbert:

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

echinopsis posted:

this is better to read


but indentations are sufficient on they own. just use languages that use that

i like the funny symbols; they light up nice in my editor

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band
allman is a heretic who should burn

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

OBAMA BIN LinkedIn posted:

its 2 spaces shaggar. thats what it means. the width of the tab is two spaces. hope this helps.

four-space indents or fight

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

OBAMA BIN LinkedIn posted:

sure, i mean, if you like pointless whitespace

the point is that my old eyes get lost without enough indentation :corsair:

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

OBAMA BIN LinkedIn posted:

C++ code:
if (u){

the lack of a space before that opening brace enrages me to an unreasonable degree :argh:

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

chumpchous posted:

I am finding javascript/jquery really difficult to understand. Is there a decent resource for learning js or should I just kill myself

o'reilly has a "complete guide to javascript" (something like that) that is really excellent, even for most of the learning

once you've got that, all the jquery can be done by reading the docs on their site

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band
maybe i'm just lazy and dumb (okay, no "maybe" about it), but sublime does nice auto-complete without being obnoxious, and i don't know how to make (g)vim do that :shrug:

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band
although sublime does annoy me at times. if you hit escape to make it stop suggesting an auto-complete, you have to hit escape _again_ in order to get out of edit mode, and i find myself not escaping often enough (thanks, reflexes) and winding up typing stupid poo poo without realizing it

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band
resharper says to do "var whatever" instead of "SomeConvolutedClassNameHere whatever". (http://resharper.blogspot.com/2008/03/varification-using-implicitly-typed.html) but when you do that, the autocomplete says "gently caress you, i'm not going to try to figure that poo poo out" :saddowns:

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

Cold on a Cob posted:

i kinda like var when the type name is ridiculously long but i turned that rule off in resharper so it would stop suggesting it

i'm writing babby's first c# program, so i don't have the confidence to turn anything off (although i fixed the indenting so it does proper k&r style) :ohdear:

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band
i want to put some run-time configuration-type information into an app.config file (this is c#). do they document the kind of xml formatting you need to use anywhere?

like, do you use tags or attributes?


edit: i'm an idiot and of course i found it as soon as i pinched off a post about it :downs:

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

Shaggar posted:

c#'s configuration manager is bad rear end. if you're just looking to do simple name value pair stuff you can use the default appSettings section, but if you want to get fancy you can write your own extended config sections w/ custom config managers.

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:

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

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

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

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

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)

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band
i did find a post on these here forums including code that would have allowed me to map a drive without shelling out, but i found it a bit disturbing

http://forums.somethingawful.com/showthread.php?threadid=2262300&pagenumber=13&perpage=40#post324849558

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

THC posted:

last summer I worked at a C# shop which swears by K&R style. but nobody could figure out how to stop ReSharper autocorrecting to Allman style. So every time I checked in code I had to K&R-ize it first

:confused: i see it in the resharper options, languages > c# > formatting style > braces layout

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

Bloody posted:

keep in mind this is a shop dumb enough to not use allman so they cant exactly be expected to be able to navigate menus

don't make me cut you :ese:

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

Shaggar posted:

cool ugly unreadable crap

when all the braces are on lines by themselves, things get stretched out vertically and my eyes have trouble understanding them

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

Tiny Bug Child posted:

this is almost correct, but opening braces never go on their own line

:thumbsup:

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

GNU Order posted:

I never had to use braces, perfectteeth crew represent

BRACES EVERYWHERE

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

nrook posted:

code:
using System.Diagnostics; {
}
This isn't what that means, but it'd be way cooler

why, in order to run some external program, do i have to get involved with something in "system.diagnostics"? that seems like the wrong place for "i want to execute something" :argh:

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

cliffy posted:

code:
try {
	for (int i = 0; /*wot no test?*/ ; i++)
		array[i]++;
} catch (ArrayIndexOutOfBoundsException e) {}
if anyone ever does this fire them immediately full stop

never allow people to omit braces on for/if statements :colbert:

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

gucci void main posted:

no, they're all loving terrible and much of the communities are especially terrible. it varies greatly but the only redeeming thing about the profession is the money as long as you can tolerate insufferable nerds with autism

I'm not familiar with the java/.net communities, but I'm going to assume that the normalcy of a community is inversely proportional to how far it's trying to get away from corporate culture

in my (limited) experience, the perl community is pretty sensible :shrug:

Adbot
ADBOT LOVES YOU

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

chumpchous posted:

if you love regular expressions, have i got a language for you

i do like regular expressions, and get a bit depressed when people reflexively act like they're wizard magic :smith:

  • Locked thread