|
tinaun posted:watch this space. until then you could use FutureObj to store boxed futures 0.3 Futures, as all Box<F> where F: Future03 can be freely converted to a FutureObj. its useful! that's awesome I can't wait until I can actually use them
|
# ¿ Jul 27, 2018 17:08 |
|
|
# ¿ Sep 13, 2024 20:04 |
|
ratbert90 posted:There was no free booze. that's not a party that's misery, what the gently caress EDIT: this is the one that lost millions because they were poo poo to you, right?
|
# ¿ Jul 30, 2018 23:31 |
|
ha! hey guys.. yospos, bithc!!!!!!!
|
# ¿ Jul 31, 2018 06:17 |
|
ratbert90 posted:self. it's okay to explicitly state methods vs static functions op
|
# ¿ Aug 18, 2018 00:35 |
|
ratbert90 posted:self/this is terrible and bad. not shitposting: how would you differentiate the borrowing of self without, uh, explicit self?
|
# ¿ Aug 18, 2018 00:53 |
|
MALE SHOEGAZE posted:is self anything more than syntactic sugar in rust? I've gone pretty deep into that part of the language and I can't think of anything about self that can't be stated with functions that take foo as an argument. i came from c++ but i guess spent enough time in Java hell that I might prefer any sort of escape
|
# ¿ Aug 18, 2018 01:00 |
|
god, don't work with rust futures yet
|
# ¿ Aug 18, 2018 17:49 |
|
Mahatma Goonsay posted:so are futures kind of like promises in js? not in terms of how you interact with them at all, either ES6 promises or deferreds. especially working with Typescript and C# so much at work, going home to Rust futures feels.. clunky.
|
# ¿ Aug 18, 2018 22:54 |
|
MALE SHOEGAZE posted:I've spent a good deal of time with both rls+vscode and intellij+plugin and while I prefer vscode greatly as an editor, i have a much better experience overall with the intellij plugin. better completion (still a crapshoot) and it can fill out trait implementations which is a big deal for me. Bloody posted:rls just crashes nonstop this is my experience yep. RLS is..really, really, really not there yet, and it's frustrating they're pushing it to 1.0 for marketing.
|
# ¿ Aug 22, 2018 23:31 |
|
CRIP EATIN BREAD posted:back in my university days (~10 years ago) i put together a dedicated machine in VHDL that synthesized a VGA controller, ram controller, and a few shift registers to interface with a NES controller, as well as an instruction set dedicated to playing a tank game like the old atari game. it was cool having a dedicated "bullet" instruction. we did the same (well, the NES controller bit) at my college, was so much fun but I haaaated Verilog
|
# ¿ Aug 28, 2018 01:41 |
|
gonadic io posted:rls update: sounds like rls hit 1.0! gently caress it, ship it
|
# ¿ Aug 29, 2018 04:06 |
|
DONT THREAD ON ME posted:what's wrong with smart pointers? I'm not really using them yet because I want to get experience with raw pointers but I figured modern C++ was all about the smart pointers.
|
# ¿ Sep 2, 2018 17:08 |
|
CRIP EATIN BREAD posted:mix86tape
|
# ¿ Sep 5, 2018 00:55 |
|
no they're correct, it's mutually exclusive
|
# ¿ Sep 7, 2018 01:56 |
|
lol if the school u went to could afford sorting functions
|
# ¿ Sep 17, 2018 05:12 |
|
doing emulator 101, and keep bouncing back between mapping my instructions to Enums with the data(e.g. MOV(Register, Register), ), which sucks because it means my instructions are "special" in memory, or just opcodes I dereference when I need to care what they are. The downside to the -latter- is that during execution of the emulator, i have to care when i need to load more data, which arggh my perfect desiign.
|
# ¿ Sep 26, 2018 04:43 |
|
akadajet posted:yep. we're still making em can you stop please
|
# ¿ Oct 18, 2018 04:57 |
|
ratbert90 posted:Fun fact about my current boss: meanwhile the company you left is still millions of dollars in the hole right? happy endings are so heartwarming
|
# ¿ Oct 29, 2018 23:43 |
|
Kevin Mitnick P.E. posted:its rust. rust has worse usability than go lmao
|
# ¿ Nov 10, 2018 01:18 |
|
let's steer this topic of conversation towards something more wholesome Boy if there's one thing I love it's random drops of win32 API trivia
|
# ¿ Dec 11, 2018 04:47 |
|
to be fair es had amazon totally pull the rug out from under em lol
|
# ¿ Dec 24, 2018 23:24 |
|
Blinkz0rz posted:if you get into a place where you have questions about your types you're probably writing bad code anyway I don't think I've ever seen this particular defense of dynamic typing before but here we are.
|
# ¿ Jan 12, 2019 19:39 |
|
Plorkyeran posted:did you completely miss that 10 year period where everyone loved dynamic typing and thought that static types were just a legacy thing that used to be required for good performance? probably, i didn't program until 2011
|
# ¿ Jan 12, 2019 21:04 |
|
ThePeavstenator posted:terraform is pretty cool is it though
|
# ¿ Jan 14, 2019 01:54 |
|
uncurable mlady posted:types dont guard against npe why would you write in a language which allows null pointers
|
# ¿ Jan 26, 2019 04:38 |
|
DONT THREAD ON ME posted:like i woulda been totally fine with it sucking as long as it's unstable, that's just responsible development. it's not like I have to depend on it in my build, so i don't mind it being unstable. the dev responsible said he just wanted a way for more people to start trying it, which.. man. i dunno. do they even use it?
|
# ¿ Feb 6, 2019 04:54 |
|
Maximum Leader posted:just had an encounter with a programmer that doesn't use indentation, refuses to use indentation and claims its "normal" to write code like this. not only that but actually zero indentation (no spaces, no tabs) is supposedly the default in visual studio code I honestly have no idea how you can prevent VS Code from indenting code.
|
# ¿ Feb 19, 2019 15:22 |
|
Blinkz0rz posted:i haven't written a line of c++ since high school who the hell's high school had programming courses
|
# ¿ Apr 7, 2019 04:02 |
|
akadajet posted:who's didn't? mine had a computer course where you went into a computer room and they taught you how to use Microsoft Word and Excel. The teacher would walk behind you and make sure that you weren't browsing the internet. I once asked if they had any programming stuff and was told that's more of a technical school kind of thing. This was 2008-2011.
|
# ¿ Apr 7, 2019 20:05 |
|
Wheany posted:Regdate Nov 26, 2010 what? lmao I imagine most people registered for SA in high school
|
# ¿ Apr 7, 2019 23:11 |
|
akadajet posted:lol no. I wasn't going to spend $10 for a forums account in high school i mean your high school could probably hand out forums accounts for free if it was rich enough for programming courses lol
|
# ¿ Apr 8, 2019 04:15 |
|
pseudorandom posted:I'm both a couple days late and too lazy right now to actually investigate your code, but is there any reason you're going lower-level with hyper/tokio rather than one of the higher level frameworks? Rocket was really easy for simple projects, but I've moved over to Actix for my more recent toy projects. I would definitely recommend using a framework for Rust web things, unless your project is a web framework itself. pseudorandom posted:Look at this guy, graduating high school in 3 years. I was probably 7-11 too, but years are hard Powerful Two-Hander posted:honestly given how easy sql actually is I struggle to think of a case where a full fat orm is actually a benefit. like dapper owns because you can a use it as just an auto mapper and save some boilerplate, and yeah you can do stuff like embed lambas to split dataset outputs but you know what? If you're doing that poo poo you need to look at your data source queries and think "am I being too clever here?" EF is cool when you have to write an OData-compliant API oh god why
|
# ¿ Apr 10, 2019 02:35 |
|
Luigi Thirty posted:doc block convinced me that even if I don’t have a full runtime I can still write my own objc_msgSend and add object orientation features where they will do the most good since obj-c is effectively just bolted onto ansi c L..link?!
|
# ¿ Apr 13, 2019 02:26 |
|
the most frustrating thing about juniors to me is when they write code that they say works and that they finished a problem, so I ask okay great how'd you test it, and they tell me it compiles
|
# ¿ Apr 17, 2019 13:11 |
|
DONT THREAD ON ME posted:di is the one design choice that has never failed me
|
# ¿ May 3, 2019 22:18 |
|
Blinkz0rz posted:the best di frameworks force you to declare your interface to impl mappings in code somewhere near the application entry point yeah it's this. of the di frameworks i've used off the top of my head: spring was Fine. I can specify init methods and explicitly point at impls. i don't really think much else is usually needed. Autofac was Fine. interface->impl mappings, support for singletons when i just wanted config objects sometimes. good poo poo. .net core's built-in poo poo was Good. interface->impl mappings, support for singletons, lets you specify scopes, lets you specify lambdas instead, it doesn't give a gently caress. maybe just stick with one of these 3 (or write Rust code idk) (or poo poo does Rust have a di framework too now balls) EDIT: when i write serverless apps i still write my code using DI-centric patterns and have my startup just manually control creation, and switching between them when i choose to containerize my apps instead is the easiest thing in the world.
|
# ¿ May 4, 2019 01:31 |
|
animist posted:theyve been trying to solicit feedback from the community to avoid people getting pissed off like they did from arg-position impl Trait that was pretty dumb though, the pissed off i mean. people ignored the rfcs and all that then it got merged and they were like 'WOW WHAT'
|
# ¿ May 7, 2019 01:08 |
|
crazypenguin posted:the .await syntax seems like the right decision to me? it's hard to argue with beyond the "it looks like a magic field" thing. which is a big thing! but doesn't outweigh other advantages.
|
# ¿ May 7, 2019 02:57 |
|
elcannon posted:Does anyone have any terrible programmer opinions/experiences on serverless stuff? I'm currently doing work for a small startup and the overall setup for our webapp is 6 or so aspnetcore apps running in docker on an ec2 instance. This has worked with minimal hiccups so far with the CI/CD pipeline just being updates to the docker-compose file, but the more I read about putting aspnetcore in lambda the more I am leaning towards ditching our current setup and going down that path. The main thing that is drawing me towards it is that I know gently caress all about maintaining linux things and I'm super paranoid that I have something misconfigured and there are logs slowly building that are going to crash things in the middle of the night 3 months from now or there is some security thing I am overlooking. The scalability options and cost benefits are nice but I don't see us getting over ~10k requests a day for a very long time so I'm mostly focused on finding a solution that is going to involve as little interaction with the infrastructure as possible. don't do it using lambdas in aws tbh if you're intent on aspnetcore. the warmup times when it needs to become more parallel are genuinely impactful, unless your api is only being used by other apis asynchronously. it's just too much a pain in the rear end. throw it into a docker container run it in eks or whatever your favorite choice here is and be done with it. throw an elb and apigw in front.
|
# ¿ Jun 2, 2019 07:10 |
|
|
# ¿ Sep 13, 2024 20:04 |
|
Soricidus posted:typical questions when using maven:
|
# ¿ Jun 8, 2019 23:56 |