|
OddObserver posted:I can appreciate the buttons compared to trying to deal with keyboard events (which historically belonged in this thread). Why use one <input> when 26 will do!
|
# ? Oct 9, 2023 17:23 |
|
|
# ? Jun 13, 2024 05:26 |
make me draw the letter i want to guess on a canvas
|
|
# ? Oct 9, 2023 20:17 |
|
Exuberant Cowboy sounds like a name from a bad cyberpunk novel. "Greetings, electron-slingers, I am called the Exuberant Cowboy."
|
# ? Oct 10, 2023 02:16 |
|
https://twitter.com/thatfrood/status/1711479173049385282
|
# ? Oct 10, 2023 04:52 |
|
Tann posted:Just found you can do something like sql injection in my game lol little jenny hitpoints
|
# ? Oct 10, 2023 05:16 |
|
Genuinely blessed
|
# ? Oct 10, 2023 05:34 |
|
The Cavern of COBOL > Coding Horrors: You are now trapped forever in the COWBOY GRAVEYARD
|
# ? Oct 10, 2023 08:36 |
|
Ironically, Finnish seems like a difficult language for mobile phone display.
|
# ? Oct 10, 2023 23:05 |
|
code:
|
# ? Oct 15, 2023 15:11 |
|
Mind_Taker posted:
this is what code from programmers who "don't like to be tied down to types" actually looks like in the wild. dynamic and the expandoobject have enabled some really bad c# code.
|
# ? Oct 15, 2023 17:17 |
|
In our Java project it is annoying enough when people don’t clearly define their types. I have to fix their all raw types/classes etc. Very annoying.. it isn’t that hard guys!
|
# ? Oct 15, 2023 17:48 |
|
Mind_Taker posted:
one day that function might need to check another data attribute and you're going to look sooooooo stupid adding it in
|
# ? Oct 15, 2023 17:56 |
|
I'm glad that in the modern C++ codebases I've had exposure to, auto and decltype are only really ever used either idiomatically (no need to specify what the type of container.begin() is) or to simplify when you're already specifying the type one or more times in the declaration.
|
# ? Oct 15, 2023 19:40 |
|
Mind_Taker posted:
Is it doing some weird interop thing?
|
# ? Oct 15, 2023 21:26 |
|
raminasi posted:Is it doing some weird interop thing? Yes, interop between bad developers and a compiler that wants them to be good.
|
# ? Oct 16, 2023 11:40 |
|
more falafel please posted:I'm glad that in the modern C++ codebases I've had exposure to, auto and decltype are only really ever used either idiomatically (no need to specify what the type of container.begin() is) or to simplify when you're already specifying the type one or more times in the declaration.
|
# ? Oct 16, 2023 12:36 |
|
dynamic is this thing that has like 2 tiiiiiny niches where it is useful, but then people use it elsewhere and you want to first break their hands and then take it out of the language.
|
# ? Oct 16, 2023 13:12 |
|
Death to the ViewBag.
|
# ? Oct 16, 2023 14:11 |
|
Surprise T Rex posted:Death to the ViewBag.
|
# ? Oct 16, 2023 14:16 |
|
Rottbott posted:Auto is never as bad as this anyway, because the variable still has a type, and your IDE can tell you what it is. It can still bite you in the rear end if you change, say, the return type of a function that's initializing an auto. Harder to do, but still doable.
|
# ? Oct 16, 2023 15:53 |
|
My use of 'auto' has shrunk to three cases. 1. Declaring iterators, especially for complex types, because the type names get really long and I'm far too lazy to type that crap. 2. Declaring variables that are initialized with the result of a cast, because the type is obvious because it's right there in the cast. 3. Structured bindings, because they are sexy and I love them. The rest of the time I'd rather see the actual type.
|
# ? Oct 16, 2023 19:15 |
|
Presto posted:My use of 'auto' has shrunk to three cases. Your item 2 is close to the "almost always auto" idea, which advocates that declarations like code:
code:
|
# ? Oct 16, 2023 20:40 |
|
more falafel please posted:It can still bite you in the rear end if you change, say, the return type of a function that's initializing an auto. Harder to do, but still doable. That is usually an advantage of auto.
|
# ? Oct 16, 2023 23:12 |
|
Presto posted:My use of 'auto' has shrunk to three cases. I also use it in non-generic code where I don't 'care' what the type is. This is harder to define and is no doubt a horror to some of you. For instance, let's say some library gives me a handle, and I don't care what it is except that I need it to make other calls to that library - I'm likely to use auto. Makes no difference to me if the handle is actually an int, an alias for an int, a pointer, or some opaque type. Zopotantor posted:
|
# ? Oct 16, 2023 23:12 |
|
It looks pretty stupid for 1-argument constructors like that where you can just use "Fart fart = 42" but it can be nice to cut down repetition for multi-arg constructors where you actually do have to type out the constructor name for example if I want to make a vector with 10 pre-initialized objects: C++ code:
|
# ? Oct 16, 2023 23:45 |
|
There's an upside to making all your constructor calls look the same, instead of using different syntax for 1-arg constructors just because you're allowed to.
|
# ? Oct 16, 2023 23:55 |
|
I think there's a better argument that every one argument constructor should be marked explicit and not be participating in implicit conversions unless you're absolutely sure you want that
|
# ? Oct 17, 2023 02:33 |
|
Foxfire_ posted:I think there's a better argument that every one argument constructor should be marked explicit and not be participating in implicit conversions unless you're absolutely sure you want that Agreed. This post brought to you by the time we found a bug caused by a library-internal array type (havok's hkArray) being initialized with an engine-internal bool type (UE3's UBOOL, which was typedef'd to signed int).
|
# ? Oct 17, 2023 02:59 |
|
https://mastodon.gamedev.place/@badlogic/111246798083590676 Ranzear fucked around with this message at 03:39 on Oct 17, 2023 |
# ? Oct 17, 2023 03:22 |
|
is the horror that public posts on a social media website are visible on its public api? surely even if they required that the api consumer have a "bsky invite code" during the closed beta period it would make no difference, that data is out there anyway. if someone wanted to scrape stuff they could finagle a code from somewhere
|
# ? Oct 17, 2023 03:26 |
|
There's supposed to be a 'private' account setting. This ignores it. Blocks are public this way too. Shouldn't be. When they say everything is visible to the public API, they mean everything. Having an account plugged into the API gives less access than public. Bonus horror: Resizing images on Android, followed immediately by resizing images on imgur itself. Ranzear fucked around with this message at 03:35 on Oct 17, 2023 |
# ? Oct 17, 2023 03:33 |
|
Ranzear posted:There's supposed to be a 'private' account setting. This ignores it. https://blueskyweb.xyz/blog/5-19-2023-user-faq quote:Can I set my profile to be private? That page also says blocks are public, though I suppose not every user might know that. Mutes are private.
|
# ? Oct 17, 2023 05:12 |
|
Dylan16807 posted:Where did you hear that? That certainly seems like a bunch of stuff that would make me never want to use their service.
|
# ? Oct 17, 2023 05:30 |
|
Dylan16807 posted:Where did you hear that? Extrapolated from elsewhere, unfortunately. Silly me and my expectations. I could have just gestured at bluesky in general, lack of DMs, post tagging of any form (topical nor content warning beyond three things), video or even loving animated GIF support even after four years, but likes and blocks being public is just way too much stalking and harassment potential to even dip a toe into now.
|
# ? Oct 17, 2023 05:53 |
|
RPATDO_LAMD posted:It looks pretty stupid for 1-argument constructors like that where you can just use "Fart fart = 42" but it can be nice to cut down repetition for multi-arg constructors where you actually do have to type out the constructor name can't you just use typedef to make it short? typedef MyThing MyAnnoyinglyLongCustomTemplateClass<Foo>; // whichever way around it is, idc std::vector<MyThing> foos = std::vector<MyThing>(MyThing(someDefaultValue, 10); C# has the equivalent of typedef but you can only apply it at file scope, which is a bit poo poo because I don't see why they couldn't let you do it locally. They introduced local functions several versions ago.
|
# ? Oct 17, 2023 08:47 |
|
RPATDO_LAMD posted:It looks pretty stupid for 1-argument constructors like that where you can just use "Fart fart = 42" but it can be nice to cut down repetition for multi-arg constructors where you actually do have to type out the constructor name Wouldn't you do this? C++ code:
|
# ? Oct 17, 2023 11:05 |
|
Galaxy brain: #define T ...
|
# ? Oct 17, 2023 14:20 |
|
So our software creates charts. Data requests are asynchronous and they return data with metadata to which chart they belong to. If data requests fail, they return no data, only an exception. So I am now coding a system to run a Service, which runs a Task of periodically checking a list of pending chart requests. If a chart is not generated after n seconds, the task assumes the data requests failed and we did not get the data to create the chart. It compares timestamps of now and the moment a chart creation request was issued, so it can understand how “old” each chartgen request is. I asked that would it be possible for the datamanager to return some kind of useful metadata, even within the exception? I was shot down so I am now coding this stupid rear end garbage collection service. I guess that after enough cases like this it is how spaghetti monster and coding horrors are eventually born..
|
# ? Oct 17, 2023 21:07 |
|
Ranzear posted:Extrapolated from elsewhere, unfortunately. Silly me and my expectations. Aren't likes public on Twitter?
|
# ? Oct 17, 2023 23:09 |
|
|
# ? Jun 13, 2024 05:26 |
|
usually yes, but one of the recently added perks for paying users is the ability to hide your likes i don't know why you'd hide your likes rather than using bookmarks that are always private
|
# ? Oct 17, 2023 23:14 |