|
Dr Monkeysee posted:the twist ending is we're all idiot programmers I'm not!
|
# ? Oct 11, 2016 00:34 |
|
|
# ? Jun 8, 2024 18:46 |
|
https://twitter.com/dril/status/134787490526658561
|
# ? Oct 11, 2016 02:44 |
|
with the advent of java 8, go now gets to have the title of most boring mainstream language
|
# ? Oct 11, 2016 02:45 |
|
go is insanely boring but sometimes you need boring
|
# ? Oct 11, 2016 03:24 |
|
uncurable mlady posted:go is insanely boring but sometimes you need boring yeah but you never need poo poo
|
# ? Oct 11, 2016 03:26 |
|
Sweeper posted:yeah but you never need poo poo yet people keep using ruby and node
|
# ? Oct 11, 2016 03:29 |
|
they certainly don't use them from a place of need, just stupidity
|
# ? Oct 11, 2016 04:16 |
|
Bloody posted:they certainly don't use them from a place of need, just stupidity this is somewhat of a distinction without difference
|
# ? Oct 11, 2016 04:22 |
|
If being frustrated after having to keep running SW that was made by lowest cost Indian outsourcer makes me rear end in a top hat, then The industry made me that way.
|
# ? Oct 11, 2016 12:16 |
|
please don't conflate programming skill/experience/training with intelligence (or nationality) tia
|
# ? Oct 11, 2016 12:36 |
|
gonadic io posted:please don't conflate programming skill/experience/training with intelligence (or nationality) tia cheap outsourcing shops have perverse incentives to deliver garbage even if they're capable of delivering quality. there are a large number of these in India (for software specifically). china/argentina have similar shops for art. i'm sure other fields have similar orgs. it's not unreasonable to conflate cost with expected quality..
|
# ? Oct 11, 2016 12:48 |
|
Dr Monkeysee posted:the twist ending is me, I am an idiot programmer
|
# ? Oct 11, 2016 22:13 |
|
Sapozhnik posted:c# is only just gaining a credible port to Linux. Maybe in five years when it has a credible track record I'll consider it. As I keep saying, I really wish Java had async/await, but the stupefying badness of the java.util.concurrent.Future interface makes this rather difficult. one of c#'s greatest strengths is not running on linux.
|
# ? Oct 11, 2016 22:15 |
|
Asymmetrikon posted:C# also needs a better SQL mapper. yes that's true
|
# ? Oct 11, 2016 22:15 |
|
ive been using dapper but its definitely no mybatis
|
# ? Oct 11, 2016 22:16 |
|
I don't know what a mapper does
|
# ? Oct 12, 2016 00:43 |
|
Bloody posted:I don't know what a mapper does whine about GIS probably
|
# ? Oct 12, 2016 00:58 |
|
Bloody posted:I don't know what a mapper does helpers for the interface layer between your model objects and the database. kind of like a more explicit orm that doesn't suck. Dapper (the C# mapper) basically just adds a method Query<T> to SQL connection objects that takes a string of SQL, an object of parameters for that sql, and returns a T (or a collection of T) automatically "mapped" from the query result.
|
# ? Oct 12, 2016 01:29 |
|
ooh neat so it does a bunch of reflection stuff or something?
|
# ? Oct 12, 2016 01:40 |
|
dapper is very good, i enjoy using it.
|
# ? Oct 12, 2016 01:45 |
|
is it still pretty easy to wire up dapper and asp.net identity? because i sure would like to get entity framework out of my life.
|
# ? Oct 12, 2016 01:50 |
|
Bloody posted:ooh neat so it does a bunch of reflection stuff or something? yeah, kind of - it basically just takes a query result and either builds an object out of it based on the column names, or an IEnumerable. So you can do like, code:
MyBatis is a Java mapper, but it sort of extracts the mapping into XML configuration or annotations, and lets you fully define the interface between your tables and models. it would be really nice if there was a good, well-maintained C# batis, but dapper does alright in the meantime.
|
# ? Oct 12, 2016 01:52 |
|
Asymmetrikon posted:yeah, kind of - it basically just takes a query result and either builds an object out of it based on the column names, or an IEnumerable. So you can do like, idgi. if User is just something with id, username and password hash, how is it coming back to you as IEnumerable<User> any more useful than it just being IEnumerable<ResultTuple>. e: nm, I know what we're talking about. I think we just oversimplified and now it seems pointless. DONT THREAD ON ME fucked around with this message at 02:13 on Oct 12, 2016 |
# ? Oct 12, 2016 02:06 |
|
MALE SHOEGAZE posted:idgi. if User is just something with id, username and password hash, how is it coming back to you as IEnumerable<User> any more useful than it just being IEnumerable<ResultTuple>. at some point you're going to want to turn that ResultTuple into something closer to your domain. mappers save you writing and maintaining the glue code.
|
# ? Oct 12, 2016 02:26 |
|
Shaggar posted:one of c#'s greatest strengths is not running on linux. mono is good
|
# ? Oct 12, 2016 02:49 |
|
mono is a disease
|
# ? Oct 12, 2016 03:06 |
|
you just gotta own it, man
|
# ? Oct 12, 2016 06:35 |
|
Asymmetrikon posted:helpers for the interface layer between your model objects and the database. kind of like a more explicit orm that doesn't suck. Dapper (the C# mapper) basically just adds a method Query<T> to SQL connection objects that takes a string of SQL, an object of parameters for that sql, and returns a T (or a collection of T) automatically "mapped" from the query result. Would that be what you'd call Django's raw sql? i know once I figured that poo poo out years ago I've used it extensively when I'm on a django project because it's awesome
|
# ? Oct 12, 2016 14:48 |
|
leper khan posted:mono is good i assume you've never tried to run a big c# server app in production on mono, on linux? (and if you haven't, don't worry, you have made the right choice there)
|
# ? Oct 13, 2016 10:50 |
|
Sagacity posted:that is incorrect lomarf, no, why would you do that when you could just deploy to azure or whatnot i have used mono to work on .net projects on my mac and it works ok. it's good.
|
# ? Oct 13, 2016 11:18 |
|
Thermopyle posted:Would that be what you'd call Django's raw sql? isnt this like "how to get SQL injection 101"? why wouldn't u just use an ORM like SQLAlchemy?
|
# ? Oct 13, 2016 11:29 |
|
SQL injection comes from allowing users to supply data that "runs" as a raw part of a sql query, which you should never do and can solve by using parameterized sql correctly, so that's not an issue. The reason to not use an ORM is that ORMs, while okay for small applications and things that are built from the ground up and structured for that ORM, can't handle complex SQL as well as a human can yet.
|
# ? Oct 13, 2016 14:47 |
|
I'm writing c++ for the first time in like 3 years and my opinion is that c++14 seems good.
|
# ? Oct 13, 2016 14:59 |
|
Mr SuperAwesome posted:isnt this like "how to get SQL injection 101"? why wouldn't u just use an ORM like SQLAlchemy? django already has an ORM so no need for SQLAlchemy. you use rawSQL in Django for better expressing non-trivial queries and then getting the results back as your ORM models. as mentioned sql injection isn't really an issue here
|
# ? Oct 13, 2016 18:06 |
|
more like dICK posted:I'm writing c++ for the first time in like 3 years and my opinion is that c++14 seems good. Its nice.
|
# ? Oct 13, 2016 20:07 |
|
more like dICK posted:I'm writing c++ for the first time in like 3 years and my opinion is that c++14 seems good. it feels like the language finally has the tools to properly express its semantics. like the c++ ownership model hasn't changed since day one but it was always a clusterfuck to implement because you couldn't actually say what you meant. on the other hand the language is so very large that i just become overwhelmed by the possibilities and give up.
|
# ? Oct 13, 2016 22:19 |
|
some stuff about the insides of windows subsystem for linux https://www.youtube.com/watch?v=_p3RtkwstNk
|
# ? Oct 17, 2016 16:41 |
|
Pollyzoid posted:some stuff about the insides of windows subsystem for linux https://www.youtube.com/watch?v=_p3RtkwstNk good ol ion, the single least creative person on the planet. reverse engineer by birth
|
# ? Oct 17, 2016 17:00 |
|
so, virtual member function pointers, right? just a vtable index in type-safe drag, right? in visual c++ 15 (2008), they are flat function pointers. what function do they point to? a stub that jumps to a hardcoded vtable slot loving microsoft e: "but we made it a comdat so we're good, guys?" in their defense they switched to a sane layout in recent versions but still. loving microsoft hackbunny fucked around with this message at 18:00 on Oct 19, 2016 |
# ? Oct 19, 2016 17:55 |
|
|
# ? Jun 8, 2024 18:46 |
|
their member function pointer representation is so much more complicated than you're giving it credit for i didn't know that they'd changed it to not thunk virtual functions, though. also not sure what you think the problem is with that
|
# ? Oct 19, 2016 18:18 |