#this is why everyone hates javascript
Explore tagged Tumblr posts
side-teched ¡ 2 years ago
Text
Javascript's not very optional "optional semicolons"
It's something we all hear about: Javascript's semicolons are optional except when they aren't. But it's actually kinda surprising how many people haven't encountered what this is referring to. So I thought I would share a real example encountered by Jr. Dev at work (well an example snippet version of what they encountered, NDAs gotta be followed and all that).
So for various reasons they needed to set up an anonymous async function and use a then to attach an async callback. They ended up with something like this:
console.log("I am a line of code that works") (async () => { console.log("I'm doing some async things") await new Promise(resolve => setTimeout(resolve, 1000)); })().then(() => { console.log("Done!") })
It's a clever little construction actually. But what's weird is that there's now an error on the first line (Firefox):
Uncaught TypeError: console.log(...) is not a function
Why is the line before borked? Like it'd make sense if the weird async bit had an error, but no, it's the entirely normal console.log call.
Well it's because Javascript doesn't always treat whitespace the same. When something is in brackets Javascript gives 0 hoots about the whitespace between it and the previous token. So what the interpreter is actually seeing is this:
console.log(...)(...).then(...)
It thinks you are trying to call the result of console.log and attach an async callback to the result of that. console.log 'returns' undefined. undefined is not a function. Hence the error "console.log(...) is not a function".
The way to solve this is to add the good ol' "optional" semicolon back into the code like this:
console.log("I am a line of code that works"); (async () => { ...
Now the interpreter knows that the first line is a complete statement, and it will no longer think you are trying to call it as a function.
Don't forget your semicolons, people!
0 notes
mrsmangi ¡ 6 months ago
Note
Tulip please 🌷🌷🌷🌷
love - luigi mangione
Tumblr media
♡ flower prompt: tulip - an act of affection so blatant everyone notices - meaning: declaration of love ♡ w.c.: 1.1k ♡ a/n: thank you, anon! hope you enjoy!
♡ send me a flower & i'll write a drabble based off the prompt !
Tumblr media
An art gallery wasn’t exactly Luigi’s scene, and you knew it. He made it clear enough when you mentioned the event to him last week. His exact words were, “I’d rather get lost in a JavaScript rabbit hole for 8 hours than stand around with pretentious people pretending they understand abstract art.”
So, when he showed up at your door the evening of the show–hair still slightly damp from a rushed shower, wearing a crisply ironed button-up that actually made him look like he belonged at a high-end gallery–needless to say, you were more than surprised. Still, you were grateful except–
“You hate places like the gallery,” you had said, folding your arms in skepticism. He leaned against your doorway with a grin.
“Not entirely true,” he countered cheekily. “Besides, I would never leave my beautiful girlfriend to fend for herself against these rich snobs.”
“You’re rich, Luigi,” you pointed out.
“Okay, but this is different.”
“I can handle myself,” you said, locking up your apartment door. Your hard expression softens when you look over his outfit once more. He really put in the effort for you.
“You really didn’t have to come,” you sighed, feeling slightly guilty.
In reality, you were sure he had only agreed because you had talked about the exhibit for weeks. It wasn’t some random outing; your good friend from college had artwork in the show. You had even planned to go alone, determined not to let his lack of interest deter you. Somehow, though, Luigi still showed, drove you, and stayed at your side like he wasn’t bored in the slightest.
He didn’t make any snide comments. Didn’t crack a single joke about the ridiculously priced paintings or showy titles. He just listened when you explained why a certain piece caught your attention, nodding in a way that made you feel like he was genuinely paying attention.
“You’re really trying, huh?” you ask him. You’re paused in front of an acrylic piece titled Two Bodies, One Heart, a portrait of two people splashed in color. Their bodies are melded together– a melting, golden heart in the center of their jointed figures.
“Trying what?” he asks, shoving his hands in his pockets, staring at the piece.
“To not say anything snarky.”
He gives you a sidelong glance. “You know, if you didn’t want me to behave myself tonight, you should have just said so.”
You roll your eyes, laughing. “You’re unbelievable, Mangione.”
From the corner of your eye, you spot another piece. “I’ll be back,” you say, already drifting away from him. “That one looks so gorgeous.”
He gives a lazy wave, staying behind as you disappear into the crowd. You don’t mind, Luigi isn’t one to follow you like a lost puppy, but after about ten minutes, you realize he hasn’t joined you. You scan the crowd for his figure, but when you don’t spot his curly hair towering over everyone else, you frown.
“You’re awfully quiet tonight.”
Luigi appears by your side, hands behind his back. A casual smile rests on his face, one you recognize all too well. You turn your back to the large, abstract painting you had been admiring. He has his hands behind his back, but you pay the detail no mind, shrugging.
“Just taking it in,” you say, turning your attention back to the painting. “Not everything needs commentary, you know.”
“Says you,” he teases. His arm brushes against yours as he leans closer. “But okay, I’ll let you have your moment.”
It wasn’t unusual for Luigi to stand so close to you in moments like these. But there is something about the way he shifts his weight, the way his eyes dart to yours and then back to the crowd, that causes suspicion to rise.
“What are you up to?” you ask, narrowing your eyes.
“Who?” he asks, feigning innocence. “Me?”
“Yes, you.”
“Nothing,” he shrugs, “just wanted to…” He trails off, bringing his hands from behind his back, revealing a bright bouquet of tulips. They bloom with color, bright with shades of reds, yellows, and pinks. Their petals are vivid against the otherwise muted tones of the gallery. They stand out. They remind you of Luigi.
The sight of them catches you off guard, mouth falling open. You barely have time to react before he holds them out to you. A soft murmur shifts through the room as people begin to whisper and exchange glances, turning their heads to look at you two. You accept them, holding them delicately by the stems, laughing.
“Luigi,” you whisper, cheeks flushing. “What are you doing?”
He takes a step closer, his height forcing you to tilt your head up to meet his gaze. “Making a point.”
“A point?” you echo, clutching the flowers to your chest.
“I’m sorry you have to find out this way, (Name),” he begins, sighing dramatically. “I have a really, really big crush on you.”
Your lips twitch, before you burst into a fit of giggles, slapping his chest lightly. “Luigi, we’re dating,” you cry through your laughter. “You’re so ridiculous.”
“Ridiculously in love with you,” he replies with no hesitation, grin widening. It’s so corny, cliche and sweet–you can feel your tooth ache. Your cheeks are burning, but you don’t care. The tulips feel a bit heavier with his declaration. You clutch them tighter, stepping closer to him.
“You didn’t have to make a scene, baby,” you say gently, although the small smile that lingers on your lips betrays your humility. Luigi knows you love the idea of romantic gestures.
“Of course I had to,” he says, tone lightening as he leans in to you. “How else could I have let everyone know you’re the most important thing in this room?”
Overwhelmed with love for him, you lift yourself onto your toes and kiss his cheek. “Thank you,” you whisper, fondly.
“I love you,” he says gently, kissing the temple of your forehead. With that, he steps back, arm slipping casually around your waist. The crowd gradually returns to their conversations, though a few people continue to glance your way with unmasked interest.
“Now,” he says, “let’s go find your friend’s painting before she accuses me of stealing everyone’s attention.”
“You did hijack it,” you say, but the warmth in your tone betrays you and exposes your appreciation. “You’re lucky I love you.”
“Lucky doesn’t even begin to cover it, baby.”
You shake your head, laughing as he guides you through the gallery. For the rest of the evening, the art fades into the background, eclipsed by the warmth of the man at your side.
232 notes ¡ View notes
anheliotrope ¡ 8 months ago
Text
Rambling About C# Being Alright
I think C# is an alright language. This is one of the highest distinctions I can give to a language.
Warning: This post is verbose and rambly and probably only good at telling you why someone might like C# and not much else.
~~~
There's something I hate about every other language. Worst, there's things I hate about other languages that I know will never get better. Even worse, some of those things ALSO feel like unforced errors.
With C# there's a few things I dislike or that are missing. C#'s feature set does not obviously excel at anything, but it avoids making any huge misstep in things I care about. Nothing in C# makes me feel like the language designer has personally harmed me.
C# is a very tolerable language.
C# is multi-paradigm.
C# is the Full Middle Malcomist language.
C# will try to not hurt you.
A good way to describe C# is "what if Java sucked less". This, of course, already sounds unappealing to many, but that's alright. I'm not trying to gas it up too much here.
C# has sins, but let's try to put them into some context here and perhaps the reason why I'm posting will become more obvious:
C# didn't try to avoid generics and then implement them in a way that is very limiting (cough Go).
C# doesn't hamstring your ability to have statement lambdas because the language designer dislikes them and also because the language designer decided to have semantic whitespace making statement lambdas harder to deal with (cough Python).
C# doesn't require you to explicitly wrap value types into reference types so you can put value types into collections (cough Java).
C# doesn't ruin your ability to interact with memory efficiently because it forbids you from creating custom value types, ergo everything goes to the heap (cough cough Java, Minecraft).
C# doesn't have insane implicit type coercions that have become the subject of language design comedy (cough JavaScript).
C# doesn't keep privacy accessors as a suggestion and has the developers pinkie swear about it instead of actually enforcing it (cough cough Python).
Plainly put, a lot of the time I find C# to be alright by process of elimination. I'm not trying to shit on your favorite language. Everyone has different things they find tolerable. I have the Buddha nature so I wish for all things to find their tolerable language.
I do also think that C# is notable for being a mainstream language (aka not Haskell) that has a smaller amount of egregious mistakes, quirks and Faustian bargains.
The Typerrrrr
C# is statically typed, but the typing is largely effortless to navigate unlike something like Rust, and the GC gives a greater degree of safety than something like C++.
Of course, the typing being easy to work it also makes it less safe than Rust. But this is an appropriate trade-off for certain kinds of applications, especially considering that C# is memory safe by virtue of running on a VM. Don't come at me, I'm a Rust respecter!!
You know how some people talk about Python being amazing for prototyping? That's how I feel about C#. No matter how much time I would dedicate to Python, C# would still be a more productive language for me. The type system would genuinely make me faster for the vast majority of cases. Of course Python has gradual typing now, so any comparison gets more difficult when you consider that. But what I'm trying to say is that I never understood the idea that doing away entirely with static typing is good for fast iteration.
Also yes, C# can be used as a repl. Leave me alone with your repls. Also, while the debugger is active you can also evaluate arbitrary code within the current scope.
I think that going full dynamic typing is a mistake in almost every situation. The fact that C# doesn't do that already puts it above other languages for me. This stance on typing is controversial, but it's my opinion that is really shouldn't be. And the wind has constantly been blowing towards adding gradual typing to dynamic languages.
The modest typing capabilities C# coupled with OOP and inheritance lets you create pretty awful OOP slop. But that's whatever. At work we use inheritance in very few places where it results in neat code reuse, and then it's just mostly interfaces getting implemented.
C#'s typing and generic system is powerful enough to offer you a plethora of super-ergonomic collection transformation methods via the LINQ library. There's a lot of functional-style programming you can do with that. You know, map, filter, reduce, that stuff?
Even if you make a completely new collection type, if it implements IEnumerable<T> it will benefit from LINQ automatically. Every language these days has something like this, but it's so ridiculously easy to use in C#. Coupled with how C# lets you (1) easily define immutable data types, (2) explicitly control access to struct or class members, (3) do pattern matching, you can end up with code that flows really well.
A Friendly Kitchen Sink
Some people have described C#'s feature set as bloated. It is getting some syntactic diversity which makes it a bit harder to read someone else's code. But it doesn't make C# harder to learn, since it takes roughly the same amount of effort to get to a point where you can be effective in it.
Most of the more specific features can be effortlessly ignored. The ones that can't be effortlessly ignored tend to bring something genuinely useful to the language -- such as tuples and destructuring. Tuples have their own syntax, the syntax is pretty intuitive, but the first time you run into it, you will have to do a bit of learning.
C# has an immense amount of small features meant to make the language more ergonomic. They're too numerous to mention and they just keep getting added.
I'd like to draw attention to some features not because they're the most important but rather because it feels like they communicate the "personality" of C#. Not sure what level of detail was appropriate, so feel free to skim.
Stricter Null Handling. If you think not having to explicitly deal with null is the billion dollar mistake, then C# tries to fix a bit of the problem by allowing you to enable a strict context where you have to explicitly tell it that something can be null, otherwise it will assume that the possibility of a reference type being null is an error. It's a bit more complicated than that, but it definitely helps with safety around nullability.
Default Interface Implementation. A problem in C# which drives usage of inheritance is that with just interfaces there is no way to reuse code outside of passing function pointers. A lot of people don't get this and think that inheritance is just used because other people are stupid or something. If you have a couple of methods that would be implemented exactly the same for classes 1 through 99, but somewhat differently for classes 100 through 110, then without inheritance you're fucked. A much better way would be Rust's trait system, but for that to work you need really powerful generics, so it's too different of a path for C# to trod it. Instead what C# did was make it so that you can write an implementation for methods declared in an interface, as long as that implementation only uses members defined in the interface (this makes sense, why would it have access to anything else?). So now you can have a default implementation for the 1 through 99 case and save some of your sanity. Of course, it's not a panacea, if the implementation of the method requires access to the internal state of the 1 through 99 case, default interface implementation won't save you. But it can still make it easier via some techniques I won't get into. The important part is that default interface implementation allows code reuse and reduces reasons to use inheritance.
Performance Optimization. C# has a plethora of features regarding that. Most of which will never be encountered by the average programmer. Examples: (1) stackalloc - forcibly allocate reference types to the stack if you know they won't outlive the current scope. (2) Specialized APIs for avoiding memory allocations in happy paths. (3) Lazy initialization APIs. (4) APIs for dealing with memory more directly that allow high performance when interoping with C/C++ while still keeping a degree of safety.
Fine Control Over Async Runtime. C# lets you write your own... async builder and scheduler? It's a bit esoteric and hard to describe. But basically all the functionality of async/await that does magic under the hood? You can override that magic to do some very specific things that you'll rarely need. Unity3D takes advantage of this in order to allow async/await to work on WASM even though it is a single-threaded environment. It implements a cooperative scheduler so the program doesn't immediately freeze the moment you do await in a single-threaded environment. Most people don't know this capability exists and it doesn't affect them.
Tremendous Amount Of Synchronization Primitives and API. This ones does actually make multithreaded code harder to deal with, but basically C# erred a lot in favor of having many different ways to do multithreading because they wanted to suit different usecases. Most people just deal with idiomatic async/await code, but a very small minority of C# coders deal with locks, atomics, semaphores, mutex, monitors, interlocked, spin waiting etc. They knew they couldn't make this shit safe, so they tried to at least let you have ready-made options for your specific use case, even if it causes some balkanization.
Shortly Begging For Tagged Unions
What I miss from C# is more powerful generic bounds/constraints and tagged unions (or sum types or discriminated unions or type unions or any of the other 5 names this concept has).
The generic constraints you can use in C# are anemic and combined with the lack of tagged unions this is rather painful at times.
I remember seeing Microsoft devs saying they don't see enough of a usecase for tagged unions. I've at times wanted to strangle certain people. These two facts are related to one another.
My stance is that if you think your language doesn't need or benefit from tagged unions, either your language is very weird, or, more likely you're out of your goddamn mind. You are making me do really stupid things every time I need to represent a structure that can EITHER have a value of type A or a value of type B.
But I think C# will eventually get tagged unions. There's a proposal for it here. I would be overjoyed if it got implemented. It seems like it's been getting traction.
Also there was an entire section on unchecked exceptions that I removed because it wasn't interesting enough. Yes, C# could probably have checked exceptions and it didn't and it's a mistake. But ultimately it doesn't seem to have caused any make-or-break in a comparison with Java, which has them. They'd all be better off with returning an Error<T>. Short story is that the consequences of unchecked exceptions have been highly tolerable in practice.
Ecosystem State & FOSSness
C# is better than ever and the tooling ecosystem is better than ever. This is true of almost every language, but I think C# receives a rather high amount of improvements per version. Additionally the FOSS story is at its peak.
Roslyn, the bedrock of the toolchain, the compiler and analysis provider, is under MIT license. The fact that it does analysis as well is important, because this means you can use the wealth of Roslyn analyzers to do linting.
If your FOSS tooling lets you compile but you don't get any checking as you type, then your development experience is wildly substandard.
A lot of stupid crap with cross-platform compilation that used to be confusing or difficult is now rather easy to deal with. It's basically as easy as (1) use NET Core, (2) tell dotnet to build for Linux. These steps take no extra effort and the first step is the default way to write C# these days.
Dotnet is part of the SDK and contains functionality to create NET Core projects and to use other tools to build said projects. Dotnet is published under MIT, because the whole SDK and runtime are published under MIT.
Yes, the debugger situation is still bad -- there's no FOSS option for it, but this is more because nobody cares enough to go and solve it. Jetbrains proved anyone can do it if they have enough development time, since they wrote a debugger from scratch for their proprietary C# IDE Rider.
Where C# falls flat on its face is the "userspace" ecosystem. Plainly put, because C# is a Microsoft product, people with FOSS inclinations have steered clear of it to such a degree that the packages you have available are not even 10% of what packages a Python user has available, for example. People with FOSS inclinations are generally the people who write packages for your language!!
I guess if you really really hate leftpad, you might think this is a small bonus though.
Where-in I talk about Cross-Platform
The biggest thing the ecosystem has been lacking for me is a package, preferably FOSS, for developing cross-platform applications. Even if it's just cross-platform desktop applications.
Like yes, you can build C# to many platforms, no sweat. The same way you can build Rust to many platforms, some sweat. But if you can't show a good GUI on Linux, then it's not practically-speaking cross-platform for that purpose.
Microsoft has repeatedly done GUI stuff that, predictably, only works on Windows. And yes, Linux desktop is like 4%, but that 4% contains >50% of the people who create packages for your language's ecosystem, almost the exact point I made earlier. If a developer runs Linux and they can't have their app run on Linux, they are not going to touch your language with a ten foot pole for that purpose. I think this largely explains why C#'s ecosystem feels stunted.
The thing is, I'm not actually sure how bad or good the situation is, since most people just don't even try using C# for this usecase. There's a general... ecosystem malaise where few care to use the language for this, chiefly because of the tone that Microsoft set a decade ago. It's sad.
HOWEVER.
Avalonia, A New Hope?
Today we have Avalonia. Avalonia is an open-source framework that lets you build cross-platform applications in C#. It's MIT licensed. It will work on Windows, macOS, Linux, iOS, Android and also somehow in the browser. It seems to this by actually drawing pixels via SkiaSharp (or optionally Direct2D on Windows).
They make money by offering migration services from WPF app to Avalonia. Plus general support.
I can't say how good Avalonia is yet. I've researched a bit and it's not obviously bad, which is distinct from being good. But if it's actually good, this would be a holy grail for the ecosystem:
You could use a statically typed language that is productive for this type of software development to create cross-platform applications that have higher performance than the Electron slop. That's valuable!
This possibility warrants a much higher level of enthusiasm than I've seen, especially within the ecosystem itself. This is an ecosystem that was, for a while, entirely landlocked, only able to make Windows desktop applications.
I cannot overstate how important it is for a language's ecosystem to have a package like this and have it be good. Rust is still missing a good option. Gnome is unpleasant to use and buggy. Falling back to using Electron while writing Rust just seems like a bad joke. A lot of the Rust crates that are neither Electron nor Gnome tend to be really really undercooked.
And now I've actually talked myself into checking out Avalonia... I mean after writing all of that I feel like a charlatan for not having investigated it already.
72 notes ¡ View notes
coeluvr ¡ 1 year ago
Note
Im learning how to code on Twine as i want to make my own story BUT ITS SO DIFFICULT 😭😭😭 may you tell me how you learnt and explanation of the codes IF IT WONT TAKE LONG OFC sjudurhf
Really not sure why everyone's flocking to me for coding advice (I am not that smart people) but I can kind of try? 😭
Honestly, it will depend on which you choose but I work with SugarCube and it wasn't that hard for me to grasp it and it really isn't unless you're dealing with Javascript.
One of the first things I did was get a template because I hated the way default SugarCube thing looked so I would suggest get one of those if you care about looks and can't code it to be pretty.
One of the main things that helped me was the SugarCube Documentation it quite literally has everything ever and you can check how to use certain things if you're ever confused.
I also used @idrellegames' Coding in Twine Masterpost as my guide while I was figuring things out and honestly I still go and check it once in a while lol. I think this was my biggest help since I didn't really have anyone to ask things to + I'm insanely shy when asking for help.
Other than that, I just googled whatever difficulty I was facing and figured things out lol. 😭 I'm sorry if this isn't helpful but I don't think I can explain all of my code (it is a mess too lol) but you got this #trust. Good luck!
98 notes ¡ View notes
gabessquishytum ¡ 1 year ago
Note
Dream's a software developer (I could see either as an architect for that large-scale view mentality or as the Senior level dev that keeps getting asked to move into management type positions and just straight up refuses because he's been doing code happily for the past fifteen years and doesn't plan on changing that now).
He enjoys his job enough. He likes computers and code. It functions exactly as told (for better or worse) and appreciates the straightforwardness of it all. He's a bit insufferable to work with, but if you have an issue, he'll readily help (just be prepares for critiques on your code in the process).
Hob works at the same company as Dream, but as a front-end dev. The work he does for his day job is kinda boring. All standard corporate style web design. No fancy scripts or fun colors. But in his spare time, he weaves Javascript and CSS like a wizard and creates magical, animated scenes across the page. Would it be easier to just make a video and play it on the page instead? Sure, but where's the fun in that?
Dream and Hob get paired together on a small side project for work. Hob does the front-end work, Dream does the back-end. They get on each other's nerves at first, until Dream spots Hob tinkering with his personal code on their lunch break and is honestly a bit in awe. He's found code beautiful in its own right (the way one appreciates a well-oiled machine) but he's never seen it wielded in such a fashion before. This is the moment he falls just a little bit (read: a lotta bit) in love with Hob. He was already starting to fall for that endless charm and wit of his anyways.
The company hits the first quarter of the New Year and with it come layoffs. Hob gets fired along with some other devs from Dream's same team (a younger pair of devs: Matthew and Jessamy). A fellow named Will comes along to help Dream finish the project in Hob's stead and Dream hates every moment of it. He misses Hob, more than he ever thought he would.
So, in an impulsive rush of anger and longing, he quits the company because how dare it toss someone as good as Hob Gadling out the door without a thought? He's halfway to the cafĂŠ he and Hob had started frequenting together when he realizes that he's just thrown away a career fifteen years in the making. But when he finally gets to the cafĂŠ and sees Hob tapping away on his laptop, he knows he's made the right choice.
Dream slides into the seat across from him and proposes that they build something wonderful together. So they create a small business of their own. They become a freelance web dev team (and steal Jessamy and Matthew as well) and with their skills combined, they take off. It's not huge, but for their size, they're incredibly popular. And Dream's certain he's never enjoyed his work more than when he's working beside Hob.
Later on, Hob proposes to Dream via a custom website with the most beautiful web animations he's ever seen before. And of course, he says yes.
(If you're curious about what inspired this, here's the website: http://www.species-in-pieces.com)
This is such a good concept for a story!!! I really really love aus where Dream and Hob are coworkers. Dream being the grumpy, awkward guy who hides behind his coffee mug while Hob is the popular, chatty one who tries to get Dream involved in fun office activities or socialising after work - it makes so much sense to me.
And Dream quitting his long-term dream job because he's mad that genuinely talented people have been laid off? I love it. Dream just has this inate appreciation for hard work and good art, and that's exactly what Hob (and Jessamy and Matthew) do. How dare the stupid company not understand that they're firing people who deserve to thrive and grow in an environment which actually appreciates them? Everyone is shocked that Dream has quit (not only that, he sends around an email to everyone in the company from the ceo all the way down to the work experience guy, outlining exactly why he quit) because he seemed to be the type to play by the rules and never leave his comfort zone. Apparently, Hob has really helped him bloom into a much more confident person, able to express his principles and strive for better.
And Hob isn't surprised, because he always knew that Dream had the courage, talent and ambition to strike out on his own. Maybe he just needed a bit of love and understanding. Which Hob is only too happy to provide.
Their work together sometimes involves long hours and stress, but Dream wouldn't ever want to go back to the slightly soulless corporation where he used to be. Even if he's tired and a little frustrated by Hob’s disorganised workspace, Dream is perfectly content. There's nothing better than curling up in Hob’s lap while he taps away on a line of code. Plus, he has a great time building their wedding website. Hob got to propose, so Dream gets to celebrate their upcoming marriage with his own expression of love through code. The theme colours are, of course, black and red <3
69 notes ¡ View notes
fullstackonion ¡ 9 days ago
Text
Still Looks A Lot Like Love
Evening Musings June 12, 2025 ¡ 5:57 PM
It’s almost 6 in the evening and I meant to post this sometime around midday—but as it always goes, things came up. Good things, though. And before this day ends, I just wanted to put this one out there. Maybe one more will follow before I go to bed tonight.
Today was a good day. A day well spent. Thank God for legal holidays and long weekends. Truly, sometimes we forget how vital it is to enjoy the little things in life—the ones that bring peace without asking for anything in return.
It’s nice to sit in front of a computer and not have to write in code. Not PHP, not JavaScript, not HTML, not even Python. To not worry whether the syntax will work, whether the logic is sound, or if something’s breaking where it shouldn’t. It’s just nice... not to think about work.
Just to type—whatever the brain needs to let go of.
Funny how, even though I haven’t done this in years, it’s like I never left. Fandom has always kept me afloat. But this—this is the one where I had to learn to come back to myself. To write just because the words sound good together. Because a photo or a drawing makes something stir in the chest and the only way to soothe it is to shape it into story.
It’s freeing. To not think: How do I fix this program? To not wonder: Why isn’t this running? To not hear the nagging: It’s not working the way it should.
No. Today, I got a breather.
Usually, that breather is on my Instagram—through photographs and short captions, little visual stories that people can read however they like. But this is something else entirely. And I’m thankful for it too.
Anyway—I'm rambling.
I created this post because I felt like the morning arc needed a companion. And knowing me, this one will have a companion too. Sometimes I really hate how my brain works in pieces. It never settles. It never says, “That’s enough.” It always asks, “And then what?”
Still, here we are.
I found something really cute. And since this little corner of the internet is my diary now, I’m posting it here. To those of you reading—thank you. If you find anything here worth taking, please take it. I don’t mind at all.
So anyway— Here it goes. :) Also—just a note: the images I’ve posted along with this entry are how I imagine Aldo would look in the moment. Thoughtful. Quiet. On the brink of something soft and world-changing. They helped the story form in my head. Somewhere Quieter
The door clicked shut behind him.
Aldo stood in the soft dark of his apartment, the hush of evening still clinging to his coat. He didn’t move for a long moment. Just breathed—slow, careful—as though any sudden motion might undo the fragile echo of what had just happened.
He touched his lips. Twice.
The elevator had already descended. Goffredo was gone. But the feeling lingered, like warmth left in a chair just vacated, or the scent of coffee long after the cup had been emptied.
He took off his coat and laid it gently over the back of the chair. Sat. Let the silence swell around him.
And then—almost involuntarily—he began to wonder.
How had it begun?
Not the kiss. Not even the dinner. No, it began somewhere earlier, quieter. Less pronounced. The sort of moment you don’t notice until it’s already changed something.
Aldo remembered the cafĂŠ.
Just a few days after the conclave. Rome still bristled with whispers and fresh judgments. The marble corridors hadn’t yet settled. Everyone was watching everyone—still guessing who had hoped for what.
He’d gone to a small café tucked beside a bookseller, a place with almond pastries and poor lighting and exactly the kind of solitude he needed. He was reading something—not for work, for once. A biography. He’d made it halfway through his espresso when the seat across from him scraped back.
Goffredo.
Wearing an ivory suit, of all things. Baby-blue shirt, slightly wrinkled at the sleeves. No cassock. Just a man. A man carrying a small box of persicata—the kind of peach-sugar sweet no one ever admits to liking but everyone secretly does.
“I remembered you liked these,” Goffredo said, setting the box down between them.
“I didn’t know I’d said that.”
“You didn’t.”
A pause.
“You always take the ones from the snack table,” Goffredo added. “Even when they’re too sweet.”
Aldo had blinked at him, unsure whether to be annoyed or oddly touched.
Goffredo ordered a macchiato. Stayed.
No speeches. No posturing. No apologies, either—just... presence. Uncloaked. Quiet.
“After all that,” Aldo had said at last, gesturing vaguely, “I thought we might go back to pretending the other didn’t exist.”
Goffredo had tilted his head. “We could. But I think I’ve grown tired of pretending.”
They hadn’t become friends overnight. They didn’t become anything, really. But after that afternoon, they kept running into each other. At meetings. In the corridors. On accident, then on purpose.
Small things changed. Goffredo stopped cutting into Aldo’s points during debates. Aldo started leaving memos with room for replies. One afternoon, he caught Goffredo holding the door for him a little too long. Another time, Goffredo found an annotated article left on his desk—with Aldo’s handwriting in the margins.
Eventually, they shared coffee. Then lunches. Sometimes walks.
The friendship, when it came, arrived quietly.
Aldo remembered one late afternoon in the library—just the two of them and the distant tapping of a rainstorm against the stained-glass windows. Goffredo had asked, not unkindly, “When did you stop hating me?”
Aldo had shrugged. “I don’t know. When did you stop being insufferable?”
They’d both smiled. It had been easy, for once.
And then, one morning, over breakfast in the refectory, Aldo told Thomas, Raymond, and Giulio—offhandedly, almost as an afterthought—that he’d been “spending time” with Goffredo.
Thomas raised an eyebrow. “Spending time as in... diplomacy?”
Raymond had grinned behind his coffee. Giulio only hummed knowingly and stabbed a boiled egg.
“It’s not like that,” Aldo insisted.
“It’s never like that,” Giulio replied. “Until it is.”
Aldo had laughed them off. But he remembered how warm his face felt.
And now, tonight—after the kiss—he wondered if they had all known before he did.
The warmth had never left.
Aldo leaned back in his chair now, in his quiet apartment, letting the memories fade into stillness again. On the table in front of him sat a small, unopened box of persicata. He didn’t know when Goffredo had left it there.
He smiled.
And for the first time in years, Aldo felt like he was at the beginning of something—not grand, not inevitable, but real.
Something he could choose.
And maybe, just maybe, something that had already chosen him.
Tumblr media Tumblr media
6 notes ¡ View notes
xpc-web-dev ¡ 2 years ago
Text
Studying code calmly and avoiding a burnout. Day 2
(27/06/2023)
Tumblr media
Hello everyone.
How are you? I hope well.
Today I continued my saga of studying calmly avoiding a burnout (it's serious but it's funny at the same time kkkkkk)
I finished module 1 of javascript and did well in the logic exercises.
And here I've been reflecting and comparing myself a lot with the June 2022 bea, she couldn't do a logic exercise and today I've mastered it well. Sometimes I get choked up. But I can always work it out if I really try.
I installed python 3.11 and here was another overcoming because as I have the linux terminal (I will never recommend it for beginners) I kept having to install and update the version. But today I got it.
(This exercise was to only test my terminal in vscode)
Hey, you must ask yourself, but why python if you have a front-end?
Because I need to learn function and ordering algorithms and I find it easier with python than with javascript. (precisely because I know more about python than js)
With this I started my introductory computer science course and I hope to finish it by Thursday. And how are your studies?
I wish you can overcome your obstacles to achieve your goals, discipline, constancy.
And my personal advice, when my goals aren't enough to motivate me, I decide to win in the power of hate.
Recommend, anger is good if you use it responsibly and intelligently. UEUEHHEUEEU. Drink water.
35 notes ¡ View notes
side-teched ¡ 2 years ago
Text
Javascript date jank
So I'd thought I'd share a lovely piece of Javascript jank one of the other devs at work encountered.
Also, before we begin: this isn't implementation advice, don't do this. It is bad. It's just some fun stuff we found. (with that out of the way...)
So what they were trying to do was get a date object for a specific amount of time before/after another date object. This is what they tried:
let myDate = new Date() let myNewDate = new Date(myDate - (numMinutes * 60 * 1000))
Hopefully it's pretty clear what it's trying to do. It's trying to make a Date numMinutes before myDate. And this does what you would expect: so far so good!
So next they were trying to get a Date object for numMinutes later than myDate. Given what we just saw, easy right?
let myDate = new Date() let myNewDate = new Date(myDate + (numMinutes * 60 * 1000))
And just quickly typing this into the console as sanity check (on Firefox):
Invalid Date
huh? Wha?
Yeah, it took me a sec too.
Basically, what's going on here is the Javascript interpreter is trying be helpful. When the interpreter is running the version with the minus, it sees you are trying to subtract a number from a Date object. This doesn't make any sense, so it ever helpfully steps in and just tries to make it work. And it does. It decides it needs to coerce the type of at least one of the variables. It figures out if it converts the date into a Unix timestamp (which is just a number) the subtraction works! The resulting number is given to the Date constructor and it interprets the number as a Unix timestamp and spits out the correct answer.
Yipeeeeeee
But why does the version with the plus not work?
It's the same principle. The interpreter sees that you are trying to add a Date and a number, which doesn't make any sense. So it tries to be helpful and make the types work. It just so happens the interpreter figures out if it casts the Date to a string and the number to a string they can be plussed together. This makes it a string concatenation. So a valid date string with a random number on the end get passed to the Date constructor, and hey presto, Invalid Date!
0 notes
fahrni ¡ 4 months ago
Text
Saturday Morning Coffee
Good morning from Charlottesville, Virginia! ☕️
Tumblr media
We got another 10in of snow this week promptly followed by warmer temperatures and rain that almost eliminated it over night. There’s still patches of snow on the ground.
This week we’re expected to get a foot of snow from Wednesday to Thursday. It’s been a stranger that usual weather year this year.
Enjoy the links and the ravings of a mad man. 😆
Jason Koebler • 404 Media
The doge.gov website that was spun up to track Elon Musk’s cuts to the federal government is insecure and pulls from a database that can be edited by anyone, according to two separate people who found the vulnerability and shared it with 404 Media. One coder added at least two database entries that are visible on the live site and say “this is a joke of a .gov site” and “THESE ‘EXPERTS’ LEFT THEIR DATABASE OPEN -roro.”
Why isn’t this in a section called Politics? Because it’s about a serious security flaw in a government computing center (maybe it’s just a server setup in someone’s closet?)
The scary thing is the kids working for DOGE — henceforth known as DODGY — have access to all kinds of personal information about you. OpSec folks must be going bonkers right now? 🤡
Kelly Crandall • Racer
Spire Motorsports has to win in the NASCAR Cup Series this year.
Spire started as a very small team. Just one driver, Corey LaJoie. They eventually added a second driver and a couple years back got a huge investment of cash. They now have three drivers and are all in to becoming a top tier team. They signed longtime Cup driver Michael McDowell, Justin Haley was brought in to replace Corey LaJoie and they have last year’s rookie of the year Carson Hocevar. In other words, they’re stacked. I would expect each of them to have at least one win this year.
Nick Hodges • InfoWorld
Just say no to JavaScript
This headline is, of course, there to get you to rage click it and go read the article. 😃
So, please, click the link and go read it. Nick is an excellent software engineer and has years and years of “in the trenches” experience to share.
This article is mainly about the benefits of writing maintainable, easy to read and understand, code. It’s something I encourage everyone I work with to do. It’s smart.
The TL;DR is use a TypeScript instead of JavaScript so you get better type checking. Take advantage of it and make your code easier to maintain all at the same time. Smart. 😃
Jyoti Mann, Pranav Dixit, and Hugh Langley • Business Insider
Several Meta employees who said they received positive performance ratings in their mid-year reviews last year had their jobs cut Monday, as the company let go of nearly 4,000 workers in its latest round of job reductions.
Companies don’t need an excuse to let you go. California is an at will state (I’m not sure if folks in other states were let go) but that doesn’t help the poor folks who lost their jobs.
Look, Zuck is the CEO of a company created to make money and please shareholders. I hate to be so blunt but that’s Capitalism.
I know the CEO of TELUS would do the exact same thing to cut our bottom line if needed.
Do I want to lose my job? HELL NO! Do I realize it’s possible? Yes, yes I do.
I hope each and every one of these folks scores much better jobs. After all, I still believe Zuck is a sociopath and Facebook is a terrible company.
Jay Peters and Alex Heath • The Verge
TikTok is back in the Google Play Store for Android users in the US, and soon it will be available on the iPhone, too.
This seems risky to me, but I guess if the folks tasked with enforcing the law say it’s ok to break it, you should just break it? 😳
I hope this doesn’t come back to bite them. I’d also like to see a better solution to this whole TikTok mess.
Jerry Fahrni
Recently I’ve found myself thinking about the state of pharmacy technology. Why? Simple, really. I’m bored and have been doing a little extracurricular reading. Not to mention that a few things have popped up here and there to pique my interest. It’s not one single piece of technology but rather a collection of technologies and interactions I’ve had over the past 18 months.
I love reading my brothers stuff but he hasn’t been very active since he went back to Pharmacy work full time, now as a Pharmacy Director. He’s one of the smartest folks I know and he has amazing ideas on how to improve pharmacy in the hospital.
It’s nice to see him writing again and I hope he keeps it up.
Phil
It’s frequently stated[by who?] that some core components of the AT-Protocol architecture are expensive to host and don’t scale down. So expensive that they are out of reach reach except for VC-funded commercial companies like Bluesky PBC, and expensive due to the structure of the protocol itself. Very non-decentralized.
I must confess, AT Protocol is a mystery to me. I cannot wrap my pea brain around exactly what it is and how to implement it.
This piece is about how Phil used a Raspberry Pi to do some AT Protocol stuff. Even though I don’t get it I find this encouraging. 😀
Jess Weatherbed • The Verge
Some Apple TV 4K users in the US are being prompted to connect their Netflix accounts to the Apple TV app. This would appear to signal an end to the streaming service’s longtime refusal to have its content aggregated into third-party platforms.
This prompted me to ask the CEO of our household if I could purchase a new Apple TV. My CEO was not impressed with my justification so we’ll continue to use the Roku built into our TV. 🤣
I need to some reading on the current state of Roku technology. I’d like a box that aggregates all streaming service (like Apple TV) so I can search in one spot. If Roku does that we can stay with them. I just wish they didn’t collect so much data about us. 😞
Issy Ronald • CNN
Buried deep in a Welsh landfill, beneath layers of years-old garbage, there is a hard drive that holds the key to almost $800 million in bitcoin – or so James Howells believes, after accidentally throwing the drive away in 2013.
That drive is dead my friend. It’s been underground for 12-years, buried under heaps of trash that were exposed to the elements until it was finally covered over. I can’t see how it would survive the damp even if placed in a hardened container much less a plastic bag.
Would I love to see a miracle of some sort? Yes, I would! The odds are long against him.
Kevin Purdy • Ars Technica
One of the things enterprise storage and destruction company Iron Mountain does is handle the archiving of the media industry’s vaults. What it has been seeing lately should be a wake-up call: roughly one-fifth of the hard disk drives dating to the 1990s it was sent are entirely unreadable.
Speaking of hard drives. This is pretty sobering. Atoms and bits rot. Keep moving that data around if you’d like to keep it. I have CD backups of stuff I’ve moved around. I wonder if those darned things are still readable? 🤔
Jay Peters • The Verge
Square Enix has shut down the iOS version of Final Fantasy Crystal Chronicles and removed it from the App Store following an unfixable bug that blocked people from accessing content they had paid for.
I don’t believe this. I can’t accept this is unfixable. The more likely story it’s not worth fixing because the fix would require upgrading the software to current versions of frameworks or something like that and they don’t want to spend the money on the effort. That I would accept. 😁
Tumblr media Tumblr media
0 notes
talesfromasnarkylisa ¡ 9 months ago
Text
Lacey: Chapter 1
James: July 5th, 2023
God, I hate this job.
It’s not the actual work that bothers me. It’s quite a simple occupation, really. All I have to do is neatly crop and touch over images, then submit them to whichever publisher wants them. I’ve been doing this since I was 10. Only difference is that now I get paid.
And there lies the problem. My salary is basically nothing. Ever since I’ve started going to Yale University, I’ve had to juggle studying and working. The studying isn’t too bad. I’ve already memorized 90% of the material since 9th grade that the professors teach. The real troubles are the tuition fees. 
Yale is an Ivy League school, which means it’s extremely pricey. I was lucky enough to even get in. But my parents are the old-fashioned kind. The types to kick their kids out once they graduate high school. So once I neared 18 before lockdown, I was on my own. Turns out that no one in retail wants to hire a guy who blanks out at job interviews.
I now work two jobs. The photoshop one and the influencer one. The influencer one hasn’t really been working out too well, though. I got kicked out of a bunch of online publications because I got into a ton of controversy. Looks like there is such a thing as bad publicity after all.
But hey, at least I got some editor friends back. Still not in any of the teams.
Three Weeks Later
On a Friday evening, I hung out in a voice chat with my online friends Corianna and Darian.
Corianna is the team lead of a set of blogs reviewing indie and folk music. She is 18 - a couple years younger than me - and goes by Artsy Carolina online. I used to be on that team, until she booted me half a year ago for talking shit about the other writers and editors. Cori and I are cool now, but I’m not getting back on her website team anytime soon. 
She is a green eyed and long light brunette woman with ivory skin like her avatar. In addition to books and anime, Cori enjoys bluegrass and hip-hop music.
Darian is my best friend. Unlike his raven-haired avatar with a shade more like mine, he is auburn haired with light skin and hazel eyes. We first met on a Minecraft server when I was 15 and he was 14. I didn’t have many friends in school and no close ones. Admittedly, I wasn’t a huge fan of Minecraft. I was more of a casual player whenever I had time. But I had heard of the anarchy servers on the platform, where rules are few and chaos is plenty. I wanted to see if I could use my programming knowledge of JavaScript and Python to survive there. Boy, was I wrong. If Darian wasn’t in the server, I probably would have downloaded malware and fried my computer right there. 
The weird part is, we already knew each other in real life. But until we were both 17, neither of us was aware of the other’s online identities. I just knew him as D. Noir and he only knew me as Archer J. We’ve only become closer since then.
“So,” said Corianna, “how’s the photoshop gig, James?”
“Mediocre as always,” I responded.
“Well, color me surprised.”
I checked my other DMs for a moment before switching back to the call.
“How’s it going?” I asked Darian.
“Great!” he answered. “Guess what? I got into-”
Darian’s audio went out.
“I can’t hear you,” stated Corianna. “It sounds like a hungry person on your end.”
Darian adjusted his microphone.
“Can you hear me now?” he asked.
“Yes,” I responded. “That’s better.”
“Alright,” said Corianna, “go on.”
“I got a voice acting role! And it involves singing!”
“That’s great!” Corianna exclaimed. “In what show?”
“I can’t disclose which one,” Darian answered. “The producers have a contract forcing everyone working on it to keep quiet about their involvement.”
Corianna sent a smirk emoji.
“And that is why you just bragged, D.”
“Well,” Darian snarked back, “it’s not like I’m telling you which show I’m in.”
“Don’t listen to Cori,” I teased, “she’s just trying to mess with your head. I’m happy for you.”
But honestly, I wasn’t happy. I wasn’t content that Darian could get in with his mid-tier acting and Auto-tuned singing while I have attempted to get multiple contracts in vain. They say that hard work is what makes you succeed, but I’ve worked my ass off in everything and I’m still not making it that far. 
I’ve applied to several job openings - cashier, janitor, machinery, waiter, fucking babysitting. I’ve tried every online gig there is: website testing, design, marketing, amateur columnist, even video editing and those random surveys. And look where I am now.
Just a boring dude renting a hotel room and working photoshop as a summer job.
(Medium teaser: ​​https://medium.com/@SnarkyLisa/untitled-no-1-story-preview-8966ffdde73a)
(Wattpad version: https://www.wattpad.com/1478131869-lacey-chapter-1)
0 notes
pinkfunguy ¡ 9 months ago
Text
(sorry to hijack the post)
This made me think of something I talked with a colleague yesterday
So I'm a developer and the dude is the one in charge of our dev quality. He's rigorous, takes his job at heart, and has put a lot of process in place so that we don't get bad things in production. He's also a little shit that yells a lot and if you work with him you have to learn to bite back, which isn't to everyone's taste (tbh he's a bit more sensible than people give him credit for, and he adapts to the ones in front of him. I told him that I wasn't comfortable with him saying some things about my work and he's working on that)
The root of the talk was "I'm sick of people saying niceties, if I don't like something I don't like it and if you ask me I will tell you"
Right now you might think he'd be really bad and we would hate him or whatever
But no. First thing is he takes 1 day to explain the project to everyone that comes onto it. Then he'll take at least an afternoon to explain our front end framework. He even taught JavaScript to one of us because the other had never done it and he was going to work on a hard task.
Anyway. If you try he's happy, if you're struggling he'll just be pissed if you don't ask for help.
Last time we had to deliver a version, he noted that the dev quality was subpar. He was a bit annoyed, and then sent us an invite for a meeting about it.
He then spent an hour and a half teaching us what he wanted us to be vigilant about, because "we all learned that one aspect on the job, and I figured that's why we struggle with it". (we're not talking about him writing that at 2am the night he decided to do it because he's very much not supposed to do that lol).
Ok I went offtrack lol.
What I mean is, your criticism doesn't even have to be kind to be good. It has to be constructive. Sometimes people won't like something, and that's ok. Doesn't mean what you did is trash.
Also back to the work aspect, but I used to work with people who wouldn't give me feedback or hard tasks to do, because they were afraid of losing time and money while I learnt. They then put me aside from interesting tasks because I didn't progress as fast as I should have.
Let's just say that they were kind but they almost made me quit development. A few years later, I have feedback, I'm encouraged to take up hard things, and right now I'm doing a fucking hard task and I've never been more proud of my job.
So yeah, even kind criticism can kill someone's spirit. Basically don't imply that someone can't get better.
Tumblr media
11K notes ¡ View notes
boyfhee ¡ 1 year ago
Note
hmm, jay fic?? write it and you shall submit. i will be waiting for it, hehe. even i want to start a writing account for enha but i dont know what to post first T_T i have a text au and a headcanon, tell me which one should i post first :0
hope your bro does well in his 10th ✌🏼 tell him to not waste these next months, but hasnt the difficulty level for 10th graders decreased too?? i hate this education system. for us, 70% of syllabus was removed and people say you guys didn't write the exams 😭
hanuman chalisa haha, even if i have god by my side. i would be scared too. lmao how can a jaw chase her... noo that is so funny 😂 i mean i cant handle the smell of rotten food and what would i or you do with cadaver 🥲 i dont know. i regret everyday that why i havent chosen bipc 😔
i know apathorax from arjun reddy movie 😶 is it what it is?? help i dont even remember. isnt it beside the chest of a human?? the flesh part?? tell me tell me. well i havent been interested into coding but i need to start to learn how to code.
since you said you have coded, tell me the basic coding languages i need to know + how your teachers taught you caelin! i badly want tips to learn. like i have so many reels saved on my ig about coding + tips
same pinch, but i have been stanning them since on era and i think i was a hardcore fan until they dropped butter. i lost interest because same, their music started to change and started concentrating on the west. soo, i used to love the old bts caelin :(
hell no!!! when i used to watch yuzuru hanyu skating videos, i got into figure skating and then random videos used to pop up, even i used to know sunghoon before he debuted 🥲 i didnt watch like all of his performances but watched the best ones in his career ^^ he grew up so well.
yup!!! when fever was dropped, engenes knew it was a banger. damn it everyone on twitter asked whose song was this and engenes were like, huhu its enhypen \(^_^)/ hooray hahga. even i agree with you fever was and is the best bside i have ever heard from them.
this already long so i will continue in the next ask :3
— lover club anon <33
jay fic was posted, i hope it reached you well ^^ also, good luck with starting a writing account omg .. you can start with texts since they are a quick read and attract more audience !!! however, headcanons aren't bad either ... it really is your choice :O
i will tell him to do well in 10th, although he wastes all his time playing valo / forza horizon TT i don't know how easy or difficult the school exams have gotten, i've been so out of the loop ever since i graduated >< hope your sister does well too in boards ^_^
and omg bipc is fun but i'm sure pcm is just as interesting :O you have a fear of blood and needles so maybe you weren't meant for the OT but rather for doing other big things in like ... let's be positive !!! also, i think you mean apothorax ?? it's part of thorax containing heart and lungs ^^ i was studying about mediastinum today .. it's too much to take in. there's so much information and so little space in my brain .. sometimes i wonder if i will be able to remember all the things _ _;
also, i studied coding in highschool so i don't know how helpful my tips will be for college since you're definitely going to learn much much more there :O i think html css is basic and important ( for example, tumblr's who website theme and post format is based on html css ) javascript, python are important too since they're in demand. i'm afraid we didn't learn a lot in school except what was in theory .. didn't have many lab sessions and the most we did was python and html css since that was the main focus ( i hate python like whatever the hell that is ... )
i also started with hanyu !!! and then came across cha junhwan, yuna kim, ilia malinin and all though the international tournaments and all. i remember being so interested in fs, i watched the 4cc tournaments during classes TT i actually came across sunghoon through junhwan, watched his videos and then moved on like .. i didn't see him at the competitions so i thought he quit :O never looked him up for me to know he was a trainee / idol
AND YEAH fever is truly the queen, i can never get tired of it. border : carnival in itself is an amazing album. what's your fav album of them so far? fav b-side and title tracks? i need to know ><
0 notes
teleconhaikus ¡ 2 years ago
Text
I’m annoyed today.. I have to do a basic lift and shift of all the common library interfaces stored in frontends because someone thought it was good to copy pasta away everything as we go into every single frontend sooo we need another spot for all of that to handle, as is obvious, deprecation, new endpoints, modifications to handle validation and error and bugs etc.. but in the process am finding a lot of boiler plate code which is just like veryyyyy obvious everyone came from a Java background switched to web and didn’t once bat an eye. We have a billion getters and setters, we have no type aliases or other items which are strategically created for Typescript so that you do not need to define a class to use for simple items like in this situation a matrix which is now an internal class which supports getting elements... WHY WOULD YOU WRITE THIS CODE??? You can literally define this with an array of arrays or I guess some call this a “jagged array” but because JS says and is written in all things “Functions serve as a first class citizen” you never really need a class.. not really, not unless it entirely makes sense whereas in a lot of old coding languages like say Java or C++ you do need a namespace and and that namespace does define classes and objects usually first and then those objects hold actions, Javascript can instead behave more often as first methods that then act on many things.. this creates less bloat and code boilerplate and often is one of many reasons people say they hate web coming from OOP driven design but truly it is just different and everyone’s hateful and I am going a bit insane because I am doing what is an inherently wrong bad practice like I feel itchy all over doing it but if I do it the right way, it will never be complete.. it’s too big, so I gotta first chop off my leg to save my face or whatever then repair everything best I can but I am making the problem worse because I have to move all the unnecessary typings and objects and constructors to a third place and then try and find a way to fix that and I guess.. Idk I wanted to vent, but I also wanted to just sorta rubber ducky and console myself in the process..
0 notes
otomeybeitsmaybelline ¡ 3 years ago
Text
👻 🌸⭐️✨🍃
1 note ¡ View note
infinite-planes ¡ 2 years ago
Text
Why does everyone hate JavaScript?
AI Search Engines: Why won't you use us? 😭
Me:
Tumblr media
3K notes ¡ View notes
attollogame ¡ 2 years ago
Text
FAQ
(In a post form... because I forgot javascript is now barred for tumblr themes)
What is the games rating?
Attollo is 17+ for book 1 and 18+ for 2 and 3
How many books are there?
There will be 3 books overall
How often do you update?
Whenever I can. I have a hectic personal life, meaning updates are often delayed, but I try to get at least 2 or 3 chapters done in the year. The updates are consistently quite large as well. Right now, book 1 is projected to hit over 800k words alone.
Who are the RO's?
Check the intro post.
Will [insert char] become an RO?
No. There will only ever be 6 RO's. If you ask me to make a DLC or make another character an RO, I'll delete your ask without bothering to address it.
Can my MC get superpowers too?
No. MC will never have powered abilities.
Do I need to romance someone to play the game?
No. Romance is secondary in the game; you can play it without having to romantically pursue anyone and you'll still have an opportunity to explore everyone's stories.
Why did Sysba (and/or Dreamwalker) react like that to my MC?
Sysba and Dreamwalker in particular are villains in this game. They'll react in a certain manner in certain situations. For example, DW hates when you flirt with him off the bat because he perceives it as disrespectful towards him; Sysba currently sees MC as nothing more then something to amuse themselves with. Neither really care about MC as of right now (4 chapters into book 1). This could change later on.
Can I join Ovo/become 'bad'?
Sure, if you want. You'll just have to deal with what those decisions entail, just like you would if you joined the Crowes or stayed with the Triumvirate.
What are the triggers of this game?
I always label them right at the beginning of the game. They're updated with every new chapter that comes out as well. As of right now, Attollo contains drug use, human trafficking mention, violence, psychological horror, cult activity/religious discussion, brief hostage scenario, and description of dissociative experiences.
Can Sysba eat me?
No.
67 notes ¡ View notes