|
abraham linksys posted:using double-equals is so uncommon in js these days i can assure you that it is, in fact, not uncommon
|
# ? Jul 28, 2016 12:16 |
|
|
# ? May 25, 2024 15:21 |
|
LeftistMuslimObama posted:c++ but do it all with templates and implement a modding script language using boost::spirit
|
# ? Jul 28, 2016 13:11 |
|
Bloody posted:webapi projects build into a dll i guess? how do i host this on a local machine outside of launching it from the debugger. do i have to gently caress around a bunch with iis or something? i just wanna hit run are you using iis express right now? if so just publish it to the destination IIS server. its ez.
|
# ? Jul 28, 2016 14:34 |
|
BiohazrD posted:but i thought microsoft could do no wrong ORMs are bad and entity framework is a very bad orm.
|
# ? Jul 28, 2016 14:35 |
|
kalstrams posted:thinking about trying to write a simple rpg game to check out a new language. c++, c#, or java - thoughts? java or c# but probably c#
|
# ? Jul 28, 2016 14:36 |
|
Shaggar posted:ORMs are bad and entity framework is a very bad orm. orm is good, just make sure you map the database into objects instead of the other way around (which no one does)
|
# ? Jul 28, 2016 14:41 |
|
Shaggar posted:are you using iis express right now? if so just publish it to the destination IIS server. its ez. idk I just press play in visual Studio. there is no destination server yet and I want the least hassle in setting one up
|
# ? Jul 28, 2016 14:51 |
|
Shaggar posted:ORMs are bad and entity framework is a very bad orm. One of the big problems with ORM, HoboMan, is that they are supposed to be a database abstraction... except they are a very bad abstraction because any scenario outside of the simplest use cases require you to know/understand the implementation details of how the ORM is generating SQL, otherwise you start running into huge performance issues. So, what did it save you? You're usually better off just building a thin repository layer with hardcoded SQL statements (or use a SQL bulder or whatever idc) that returns your data objects.
|
# ? Jul 28, 2016 14:52 |
|
HoboMan posted:orm is good, just make sure you map the database into objects instead of the other way around (which no one does) i do. by hand. uphill. both ways.
|
# ? Jul 28, 2016 14:53 |
|
statement mappers and stored procs are the best
|
# ? Jul 28, 2016 14:53 |
|
Shaggar posted:ORMs are bad here's what i've learned in the last few years: orms are bad the alternatives are worse
|
# ? Jul 28, 2016 14:56 |
|
statement mappers are so much better
|
# ? Jul 28, 2016 14:57 |
|
Shaggar posted:statement mappers are so much better I can agree with this i think of orm as a thing you do if database load is not a concern. then it's great because you don't have to write any sql. i will admit this is not very common though e: it's also good if you HoboMan fucked around with this message at 15:10 on Jul 28, 2016 |
# ? Jul 28, 2016 14:59 |
|
HoboMan posted:I can agree with this this depends on your orm hibernate can be ok with even minimal effort rails and django suck dead weasels through a hose
|
# ? Jul 28, 2016 15:34 |
|
wish there was a good statement mapper for C#, dapper is ok but not great
|
# ? Jul 28, 2016 15:34 |
|
Notorious b.s.d. posted:this depends on your orm hibernate is bad
|
# ? Jul 28, 2016 15:36 |
|
Asymmetrikon posted:wish there was a good statement mapper for C#, dapper is ok but not great dapper is not really a statement mapper but its better than EF. there is still the old ibatis.net libs, but they're unmaintained. mybatis+mybatis-spring on java are own zone.
|
# ? Jul 28, 2016 15:37 |
|
bloody are you using asp.net core or the old asp.net? if it's core, just make your project build as an exe and put UseKestrel in the webhostbuilder config in Main. if it's old-asp you need to use IIS; you can install that on a windows system using the "programs and features" control panel -> "turn windows features on or off". it installs a thing called IIS Manager which you can use for config
|
# ? Jul 28, 2016 15:44 |
|
ughhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh my source control is hosed up and none of my commits yesterday are showing in the history
|
# ? Jul 28, 2016 16:05 |
|
holy poo poo nhibernate is REALLY bad
|
# ? Jul 28, 2016 16:15 |
|
Finster Dexter posted:holy poo poo nhibernate is REALLY bad nhibernate still exists?
|
# ? Jul 28, 2016 16:18 |
|
isn't asp.net core really bad? I forget I like asp.net and shaggar was right as usual
|
# ? Jul 28, 2016 16:24 |
|
asp.net core is good
|
# ? Jul 28, 2016 16:24 |
|
Finster Dexter posted:You're usually better off just building a thin repository layer with hardcoded SQL statements (or use a SQL bulder or whatever idc) that returns your data objects. no you're not. you lose validation, and it's a loving chore to extract data from a record into an object. orms are convenient disclaimer: I have only ever used orms on small scales. only bad part was never knowing when exactly your data would be saved. also transactions
|
# ? Jul 28, 2016 16:25 |
|
HoboMan posted:ughhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh if you're using git they're probably in the reflog
|
# ? Jul 28, 2016 16:28 |
|
hackbunny posted:no you're not. you lose validation, and it's a loving chore to extract data from a record into an object. orms are convenient No, you can still do validation at your data layer if you really want to, but part of this goes back to having good db schema. Don't allow nulls if the column shouldn't loving have nulls, etc. But I've done exactly this: repositories with SQL statements, validation via attribute notations provided by MVC/EF. It was insanely easy to set up, and was infinitely better than what we would've had with an ORM. And said chore of extracting data is what statement mappers would help alleviate. But the thing is, yes it's a chore, but if you know how to DRY you only have to do it once and you're done. And if you're smart about it, you don't even have to edit SQL if you add a column, just add a line of code to your db mapping code.
|
# ? Jul 28, 2016 16:31 |
|
loving lol if you think the only good way to validate is with an ORM
|
# ? Jul 28, 2016 16:32 |
|
hackbunny posted:no you're not. you lose validation, and it's a loving chore to extract data from a record into an object. statement mappers will typically handle extracting the data for you writing the statement mapper configuration code sucks though and, of course, it means hand-writing a lot of sql
|
# ? Jul 28, 2016 16:54 |
|
Luigi Thirty posted:isn't asp.net core really bad? I forget asp.net core is good but its still kind of beta in terms of component availability. In theory the API is finalized so its safe to use
|
# ? Jul 28, 2016 17:03 |
|
Notorious b.s.d. posted:this depends on your orm Squeryl lol
|
# ? Jul 28, 2016 18:25 |
|
Unrelated: man I love when xml schemas have abbreviated txtSpk names. Gotta save those bytes!
|
# ? Jul 28, 2016 18:41 |
|
gonadic io posted:Unrelated: man I love when xml schemas have abbreviated txtSpk names. Gotta save those bytes! gotta save space in your verbose as gently caress markup language
|
# ? Jul 28, 2016 18:46 |
|
Asymmetrikon posted:wish there was a good statement mapper for C#, dapper is ok but not great if you're on .net make a separate project for talking to the database (which you should be doing anyways) and use f# type providers
|
# ? Jul 28, 2016 18:47 |
|
NihilCredo posted:if you're on .net make a separate project for talking to the database (which you should be doing anyways) and use f# type providers Oh hey now you're talkin
|
# ? Jul 28, 2016 18:50 |
|
EclipseLink and JPA2 are quite nice, and the metamodel generator is surprisingly easy to integrate into a Maven build and Java IDE as well. Most of the time I don't actually model the relationships in the entity classes, I just map the ID fields as IDs. Then I do various criteria query joins in my data service layers. So I guess that means I kinda abuse it as a statement mapper. Attempting to model joins behind the scenes is I think where ORMs start to become a net source of problems. The criteria API is a bit on the wordy side, but it's also type-safe ...ish. You kinda build an SQL syntax tree by calling a bunch of functions instead of bashing strings together. If all else fails (read: you need to do a window query) then you can escape to raw SQL too.
|
# ? Jul 28, 2016 18:55 |
|
this iis poo poo is dumb and annoying
|
# ? Jul 28, 2016 19:55 |
|
im going to just launch this poo poo from the debugger every time gently caress this. it will only do .net 2.0? what is this garbage
|
# ? Jul 28, 2016 19:55 |
|
hell yeah i got 3-dimensional scene rotation and movement actually working this time for reals i want to figure out texture mapping now but maybe i should actually de-fuckify the player's eye into the scene so it's tied to an object's forward vector instead of existing outside of the simulation Bloody posted:im going to just launch this poo poo from the debugger every time gently caress this. it will only do .net 2.0? what is this garbage ??? you're doing something wrong did you set the app pool to .net framework 4.0?
|
# ? Jul 28, 2016 19:57 |
|
idk what an app pool even is. i just want to run a website
|
# ? Jul 28, 2016 20:02 |
|
|
# ? May 25, 2024 15:21 |
|
literally zero parts of this management interface have anything to do with hosting a website
|
# ? Jul 28, 2016 20:06 |