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
Bloody
Mar 3, 2013

OBAMA BIN LinkedIn posted:

singletons are bad and so are boolean arguments. both of these things should cause a programmer to be struck off the computer janitor register.

whats wrong with singletons please don't blackball me

Adbot
ADBOT LOVES YOU

Bloody
Mar 3, 2013

JG_Plissken posted:

whats wrong with static data please don't blackball me

Bloody
Mar 3, 2013

i strongly dislike the use of var in c# because i once came across a project that exclusively used var and in trying to read it i almost died because it was pointlessly hard to read and using intellisense to figure out what every loving method returned so i could have some idea of what the hell was going on in this program was pointlessly inconvenient

Bloody
Mar 3, 2013

polpotpi posted:

var domainContext = new DirectoryContext(DirectoryContextType.Domain, ntdomain);


WHAT THE gently caress DOES THIS MEAN WHAT DOES IT RETURN?!?!?!

I QUIT

var x = res.FirstOrDefault(r => r.isFoo())

did i mention it was bad code

also is the trivial difference in letters really that useful

oh no i have to change the type completely but i mysteriously only have to change one word and not any other part of the program

unless you're advocating using 'var' instead of 'int' or 'double' in which case lol its difficult to change 'int' to 'double' or vice-versa

Bloody
Mar 3, 2013

PleasingFungus posted:

that document seems to recommend only sometimes using var, and using explicit variable typing in cases where the type might not be obvious from context

I guess that means the truth was

somewhere in the middle????

i will allow this

i sortof forgot that things in linq queries have to be typed which is pretty annoying i suppose so i support using var there for sure

but seriously all my real code these days is C++ please release me from this mortal coil of suffering

i just want to write some scala

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

Bloody
Mar 3, 2013

code is words that computers can read

Bloody
Mar 3, 2013

uG posted:

no code is words a compiler can read no wonder ur in this thread

this thread is my home

did i mention i write java and c

i belong here

Bloody
Mar 3, 2013

please don't post my closed-source software code

Bloody
Mar 3, 2013

Ronald Raiden posted:

what if you had a language that didn't need braces as delimiters so you got readability and standardization for free without having to argue about curly brace style. That would be neat.
Also K&R is better than allman, why do you need 3 lines to have the word "else". Please sandwich your elses.

how wide are your tabs
do you prefer spaces or true tabs

Bloody
Mar 3, 2013

prefect posted:

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

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

Bloody
Mar 3, 2013

i thought i knew the difference between checked and unchecked exceptions but then i read this thread and now i am an even more terrible programmer what is this nonsense all about please explain like i am a terrible programmer

Bloody
Mar 3, 2013

Cold on a Cob posted:

python sucks sorry :shobon:

Bloody
Mar 3, 2013

JewKiller 3000 posted:

modern programming languages (not java, definitely not any p-lang)
modern programming languages except for every modern programming language

Bloody
Mar 3, 2013

or just don't sweat the small stuff because you're probably already coding in some horrible slow plang anyways

Bloody
Mar 3, 2013

Doc Block posted:

The worst programmers are the ones who can't/won't read compiler error messages, and instead immediately jump on [whatever programmer forum/site] and ask people how to fix it. Especially when they just paraphrase the error message instead of posting it and the offending code. Especially especially when they're using clang.

sometimes you just really need to discover yet a new reason for "segmentation fault"

or whatever that really cryptic mingw error was that i used to get that really just meant 'something somewhere is wrong'

i guess what i'm saying is gently caress c

Bloody
Mar 3, 2013

regex suck because they are completely unreadable and unless you have decades of autism are also completely unwriteable

Bloody
Mar 3, 2013

hi i am still a terrible programmer

just thought id keep you updated

Bloody
Mar 3, 2013

Farmer Crack-rear end posted:

does your php program 'run out of numbers' because you used a lovely random number function

i wish my problems could be such frivolities

my thesis is written in c++

poorly

Bloody
Mar 3, 2013

chumpchous posted:

heh

just as awful as engineering humor, if you ask me

Bloody
Mar 3, 2013

why would you do software in mississippi

you know you can send software over the internet

you could all go somewhere less poo poo

like

literally anywhere

Bloody
Mar 3, 2013

Stringent posted:

same reason you'd live in central america, southeast asia or w/e only you're trading climate/nature for decent hospitals.

i cant think of a single reason to live in any of those places but im not involved with organized crime so

Bloody
Mar 3, 2013

double ***featureVectors = new double**[windows];

i wrote this. i did this. why did i do this. what is this poo poo. gently caress.

Bloody
Mar 3, 2013

:unsmith: you have come to the right place pal

Bloody
Mar 3, 2013

just use a lang with xml literals and hail satan

Bloody
Mar 3, 2013

today i thought id figure out how to make a webapp because apparently thats the hip thing to do these days so i opened visual studio (the one true ide) and creaded some sort of mvc project and looked at the autogenerated code for about half an hour and then decided that i dont know how to do anything and closed visual studio

Bloody
Mar 3, 2013

keygen and kel posted:

it comes down to needing to get a good handle on .net stuff, knowing MSSQL pretty well already and already having a full msdn sub. i'll be writing it to fulfill a pretty specific internal role, but want to do it generic enough i can open source it if it doesn't suck.

read a thing about linq and become a happy

Bloody
Mar 3, 2013

keygen and kel posted:

linq seems cool, but still gotta connect to the horrible servers and get the ugly xml then i can use linq to make it play nice in the internal db.

yeah with words like that im pretty sure youre in the wrong thread pal

Bloody
Mar 3, 2013

prefect posted:

c# is really frustrating me; there's a steep piece of the learning curve that i'm just staring at, uncomprehending

of course, if i spent my time researching and learning the fundamentals better, this wouldn't be a problem. but i'm trying to make this stupid web service so i can show it to somebody tomorrow :smith:

post the curve itt and maybe we can explain it incorrectly

Bloody
Mar 3, 2013

prefect posted:

it's a half-dozen concepts i don't really understand like "service contracts" and "data contracts" and magic words in brackets that go in front of the class and/or function definitions and there's this "service stack" thing that's supposed to simplify it, but it's still weird and involves web.config files and dtos and apphosts :psyduck:

i know none of those things should be terribly confusing by themselves, but not understanding any of them makes it tough for me to actually do anything

(yes, i know this is the wrong way to learn something new; i was like this with perl until i finally understood the basics of the programming language, and then all kinds of poo poo suddenly made sense. ultimately, it's my own fault. also, i need better air conditioning)

ah, yes, this reminds me of the time i hit 'new mvc website project' or whatever then gazed with horror for half an hour

Bloody
Mar 3, 2013

Police Academy III posted:

somebody tell me if i'm right in my understanding that MVC is actually just a loving state machine

you are in the right thread

Bloody
Mar 3, 2013

Nomnom Cookie posted:

Undergraduates should be seen and not heard

Bloody
Mar 3, 2013

but for real my terrible thesis is like 80% c++ 17% java











and 3% julia :getin:

Bloody
Mar 3, 2013

why can't i use orms

i loving hate dsls

Bloody
Mar 3, 2013

chumpchous posted:

sorry, you fail at the worst

http://www.studiosuite.net/

nope http://www.xilinx.com/products/design-tools/ise-design-suite/ise-webpack.htm

Bloody
Mar 3, 2013

Nomnom Cookie posted:

youre missing the two biggest factors in selecting a language. syntax and semantics is like, #5.

1. what your coworkers are using
2. what libraries are available

neither of those apply to homework assignments, thus undergraduates should be seen and not heard

a k a "why people still use php and c++"

Bloody
Mar 3, 2013

Sniep posted:

its shagger lumping together prolog, pascal and powershell as being poo poo

i thought it was perl, python, and pjavascript

Bloody
Mar 3, 2013

FamDav posted:

if you job a computer these are the representations of numbers you should know

1) binary
2) 2-adic
3) some kind of arbitrary-precision type
3) IEEE floats/doubles
4) church numerals

1 well duh
2 this is some sort of nerdy way to say 2s complement? okay i guess
3 lol we're gonna ignore the first 3
3 ieee754 duh yeah i mean dont need it memorized but you should know it exists and vaguely how it works
4 what the gently caress is this poo poo get out

Bloody
Mar 3, 2013

FamDav posted:

if you do any kind of scientific computing or graphics work, knowing how to write numerically stable code makes you less awful.

and church numerals are:

0 = \x.\f.x
1 = \x.\f.f x
2 = \x.\f.f (f x)

etc.

what the gently caress is this

do you really consider that a valid explanation

lmao

Adbot
ADBOT LOVES YOU

Bloody
Mar 3, 2013

use a lang with xml literals like scala thank me later

  • Locked thread