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
Cold on a Cob
Feb 6, 2006

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

College Slice

keygen and kel posted:

i think i want to start a project to access data in this horrible industry specific XML format from a horrible Web Service and dump it into a sql db. I'm back and forth between java and c# but i'm think c# because who am i kidding everyone uses windows, i'd like to make it not terrible what's a good starting point for learning c#. (i've done development before but it was a long time ago.)

http://msdn.microsoft.com/en-us/vstudio/hh341490
http://www.learnvisualstudio.net/

Adbot
ADBOT LOVES YOU

Nomnom Cookie
Aug 30, 2009



keygen and kel posted:

i think i want to start a project to access data in this horrible industry specific XML format from a horrible Web Service and dump it into a sql db. I'm back and forth between java and c# but i'm think c# because who am i kidding everyone uses windows, i'd like to make it not terrible what's a good starting point for learning c#. (i've done development before but it was a long time ago.)

idk does your company do c# normally? bc otherwise java is better. users shouldn't be allowed to run code anyway

manning books are p good imo but if you still remember a programming then u can probably get by on the msdn reference

CISADMIN PRIVILEGE
Aug 15, 2004

optimized multichannel
campaigns to drive
demand and increase
brand engagement
across web, mobile,
and social touchpoints,
bitch!
:yaycloud::smithcloud:

Nomnom Cookie posted:

idk does your company do c# normally? bc otherwise java is better. users shouldn't be allowed to run code anyway

manning books are p good imo but if you still remember a programming then u can probably get by on the msdn reference

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.

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

CISADMIN PRIVILEGE
Aug 15, 2004

optimized multichannel
campaigns to drive
demand and increase
brand engagement
across web, mobile,
and social touchpoints,
bitch!
:yaycloud::smithcloud:

Bloody posted:

read a thing about linq and become a happy

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.

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

CISADMIN PRIVILEGE
Aug 15, 2004

optimized multichannel
campaigns to drive
demand and increase
brand engagement
across web, mobile,
and social touchpoints,
bitch!
:yaycloud::smithcloud:
no i'm pretty sure i'm a terrible programmer now.

i'm an excellent debugger though.

Shaggar
Apr 26, 2006
linq is kind of overrated but it has its uses.

Juul-Whip
Mar 10, 2008

Doc Block posted:

No they don't, at least not in the way that you mean. They get turned into calls to the C function objc_msgSend(), which sends the object the message.

The message passing is what makes Objective-C such a dynamic language.

For instance, you can add methods to objects at runtime because calling methods is really just sending messages instead of making direct function calls like in c++/c#/whatever. And you can ask an object if it responds to a given message so that you can, say, use a method added in a certain version of iOS but still maintain backward compatibility without having to remember what specific version of iOS it was that added the method.

You can forward messages to other objects, or even make an object that consumes all messages.

Message passing is one of the things that I like about Objective-C.
yeah, I agree with this, it was just all a bit strange and foreign to me at first but now I'm all

Zaxxon
Feb 14, 2004

Wir Tanzen Mekanik

MononcQc posted:

If you want to know why things are like they are -- how is computer formed -- I think Code: The Hidden Language of Computer Hardware and Software is a very nice introductory text. I started with high-level languages from the beginning and reading it had me going "oooh that's how!"

I quite enjoyed this book as well.

~Coxy
Dec 9, 2003

R.I.P. Inter-OS Sass - b.2000AD d.2003AD

Shaggar posted:

I shopped around our maps contract about a year ago and sent stuff out to everyone. Bing got back to me immediately and was reasonably priced and had a great api. Then mapquest came back and said they'd give us the addition stuff we wanted for free with our current contract which is very cheap so we stuck w/ them. Google didnt respond until about a week after we had reupped w/ mapquest and was hilariously overpriced

google earth enterprise support is loving atrocious
slowly gotten slightly better over the least year but not really

PuTTY riot
Nov 16, 2002
Bing maps API is actually pretty drat good

MrMoo
Sep 14, 2000

Bing maps UI is still pretty drat terrible.

X-BUM-RAIDER-X
May 7, 2008
isn't bing pretty much the biggest thing that is losing microsoft money atm?

PuTTY riot
Nov 16, 2002

OBAMA BIN LinkedIn posted:

isn't bing pretty much the biggest thing that is losing microsoft money atm?

Idk surface maybe? Or winrt

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band
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:

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

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

Bloody posted:

post the curve itt and maybe we can explain it incorrectly

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)

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

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

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)

Oh cool, I think you and I both have the same awful learning style

CISADMIN PRIVILEGE
Aug 15, 2004

optimized multichannel
campaigns to drive
demand and increase
brand engagement
across web, mobile,
and social touchpoints,
bitch!
:yaycloud::smithcloud:

~Coxy posted:

google earth enterprise support is loving atrocious
slowly gotten slightly better over the least year but not really

All of the major map players are loving horrible to deal with on the enterprise scale, like getting a license to transfer x,y coords geocoded with bing maps, to another provider which also uses bing maps on an enterprise scale should be relatively simple when both parties pay 100K to 1M a year in license fees to the same company right? no it's a 6 month process. I had an issue open with Bing/Navteq where an entire inhabited island (pop 350) which was several miles long wasn't appearing on their map (you could clearly see it with sat view) it took them just shy of two years to resolve.

Squinty Applebottom
Jan 1, 2013

a bug affecting maximum of 350 people out of 6 billion? let me get right on that.

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
350 rich assholes, probably

CISADMIN PRIVILEGE
Aug 15, 2004

optimized multichannel
campaigns to drive
demand and increase
brand engagement
across web, mobile,
and social touchpoints,
bitch!
:yaycloud::smithcloud:
more dope growing hippies, but at the same time it's 28 square mile inhabited island in a first world country.

Shaggar
Apr 26, 2006

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)

In c# there are these things called Attributes (java has the same thing, but calls them Annotations) that can be applied to many elements in your code to give them properties that can be used by the compiler or other users to figure out things about those elements programmatically. So for example the ServiceContractAttribute that you see as [ServiceContract] is used by WCF to discover interfaces to be used as Services. By adding [ServiceContract] you're telling WCF "here is a service". In addition the ServiceContract attribute has properties like the namespace or service name that can be used by WCF to figure out what information to display in the WSDL. Also in WCF you'll see OperationContracts which you use to annotate methods inside a service interface. By marking the method as an OperationContract it tells WCF "hey this is a method". Like with ServiceContract there are some properties you can use to tell WCF more info about the method. By default if you do not add any properties to the attribute, it will just use the method name and property names of the method in the WSDL. If you add the name property to the OperationContract attribute you can set the name to be whatever you want. The DataContractAttribute defines information (usually for a poco) about what parts of an object should be serialized.

Now normally when you create a WCF service in vs you get the service interface class (IService by default) that's got all the basic attributes it needs and then in the web.config you have the configuration that tells WCF what services to wire up and some basic information about classes and stuff. Then the WCF runtime uses the service attributes to figure out more information about the service.

Attributes are useful because they add information about an element without changing the element. They may seem weird now but once you understand them they're really straightforward and incredibly useful.

cowboy beepboop
Feb 24, 2001

Bloody posted:

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

lol

Police Academy III
Nov 4, 2011
somebody tell me if i'm right in my understanding that MVC is actually just a loving state machine

Damiya
Jul 3, 2012

Police Academy III posted:

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

Wat

MononcQc
May 29, 2007

MVC is not about state machines, but about how you break up components of a system.

It basically means that a given set of classes/modules take care of dealing with the 'model', or how you represent your data and state in memory or in disk, another set takes care of the 'view', or how to use the data in the model and display them to the user, and a controller is the set of classes or modules that deal with representing events, calling for poo poo to be changed.

- The view basically only gets stuff from the model and whatever the controller gives it to display content.

- The model is called both by the controller and the view. Usually the view only calls for read-only operations.

- The controller is going to receive user events, and ask the model to change data, or tell the view to alter how things are represented.

MVC is often used as the name of something called "MVP", or "Model-View-Presenter". In MVP:

- The view blindly receives data to be displayed. The data will usually come from the Presenter.

- The Model still represents data, but is only called by the Presenter, which will both read, write, and whatnot from it. The View doesn't know about the Model.

- The Presenter is the middle man that contains all the logic between the model and the view and glues them together. It will take user input, do whatever it needs with the model about it, and provide whatever data the view needs to have to present back to the user.

People will use MVC for both of these approaches rather interchangeably, though. MVC (and MVP) are both higher level ways to describe architecture patterns, and don't have much to do with state of the application as it executes as much as it has to do with how code is split up and responsibilities are divided across components of the code base.

tef
May 30, 2004

-> some l-system crap ->
aka: all our html templates go in this directory, all our sql goes in another, and then what's left over goes in the last directory

tef
May 30, 2004

-> some l-system crap ->
and curious to see what the thread makes of http://www.stanford.edu/~ouster/cgi-bin/papers/fiz.pdf

X-BUM-RAIDER-X
May 7, 2008

Police Academy III posted:

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

the gently caress is this?

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

Shaggar
Apr 26, 2006

tef posted:

and curious to see what the thread makes of http://www.stanford.edu/~ouster/cgi-bin/papers/fiz.pdf

looks like razor or any other modern mvc. it also makes the common academic mistake of assuming modules will be small and simple therefore the template language does not need many features. also I get a very portlet vibe from it and that's a bad thing.

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

Bloody posted:

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

chumpchous posted:

Oh cool, I think you and I both have the same awful learning style

yeah, you guys understand my bad brain :blush:

Shaggar posted:

In c# there are these things called Attributes...

thanks much; i appreciate the info. i've finally broken down and started watching intro-to-c# and intro-to-visual-studio videos. i won't get my dumb side project done any time soon, but maybe i'll actually understand what i'm doing eventually


(i'm actually quite good with p-langs, honest; i'm not totally clueless :()

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

tef posted:

and curious to see what the thread makes of http://www.stanford.edu/~ouster/cgi-bin/papers/fiz.pdf

it looks like it'd be terribly inflexible and ivory tower, just like most java software

Nomnom Cookie
Aug 30, 2009



Java is the quintessential language for solving real problems. That's why it's hardly used in academia

CamH
Apr 11, 2008

my school uses a lot of java and it is a dumb language

Nomnom Cookie
Aug 30, 2009



CamH posted:

my school uses a lot of java and it is a dumb language

Undergraduates should be seen and not heard

Adbot
ADBOT LOVES YOU

Bloody
Mar 3, 2013

Nomnom Cookie posted:

Undergraduates should be seen and not heard

  • Locked thread