#Comparing Python to Other Languages
Explore tagged Tumblr posts
tccicomputercoaching · 3 months ago
Text
Python vs Other Languages: Why It's the Top Choice for Beginners – Learn why Python is the best programming language for ease, flexibility, and career growth.
0 notes
sunless-not-sinless · 5 months ago
Text
seeing as you know python ill try and give the python equivalents to these things.
an iostream is basically just something you can read from and write to. this may be a file or stdin and stdout (in python this is what you input from and print to). include is basically just import.
cout what you print to. the syntax cout << foo << bar; is basically the same as print(foo, bar) in python. (and the equivalent of x = input() is cin >> x)
... its not exactly the same though. you didnt ask what endl is but cout << foo is basically print(foo, flush=false, end=""). adding endl will append a newline and flush the buffer, making cout << foo << bar << endl equivalent to print(foo, bar). (endl ends the line)
an int is basically the same as an integer in python... but theres a min and a max. (you can basically always assume int is 4 bytes long and signed, meaning the min is -2^31 and the max is 2^31-1. the -1 is because of 0.)
a namespace is a collection of functions under one name - very similar to a module in python. so with python you may have math.sqrt and math.tan and similar, math would be the namespace. using namespace std is similar to from math import * in the sense you can just write sqrt instead of math.sqrt. if you werent using namespace std you would have to write std::cout instead of cout and std::endl instead of endl
(note: its similar in that you dont need to qualify the name, not in that you have imported everything from the standard library.)
okay i got a hello world script open in code::blocks and i am very lost
Tumblr media
what does any of that even mean??? the fuck is a cout? what's a namespace? what does int mean in this context if not integer like in python? what is an iostream?
23 notes · View notes
hogwartslegacyreactions2 · 1 year ago
Note
Hi!! I absolutely LOVE your writing, you do such an amazing job!! I was wondering, if you have the time and are taking requests, could you do how each character cuddles with MC? Can be platonic or romantic, and I was wondering if you could also add professors. Thank you so much, I hope it's not to much to ask!! Have a great day/night!!❤️
A/N: romantic cuddling for the friends, platonic cuddle/hugs for the professors :3
HLC CUDDLE HEADCANNONS
SEBASTIAN SALLOW: This boy is a snake. Full body wrapped around MC like a python. He won't let go easily, either. But he's warm and gives many kisses, so the entrapment is worth it.
OMINIS GAUNT: Physical touch has rarely led to good things in his life so MC will need to be patient with him. Once their relationship is to the point that he feels safe with them, he cuddles with his hands constantly mapping their body. He will have every part of them committed to memory.
ANNE SALLOW: She likes laying on top of them with her face on their chest. She finds their heartbeat soothing. She also likes hearing it speed up when she's feeling cheeky.
IMELDA REYES: Physical touch isn't one of her love languages, so she doesn't go out of her way to cuddle them. She doesn't reject it, She finds MC's affection cute, but she'll be reading or messing with her wand while she lays there with MC attached.
NATSAI ONAI: She is the big spoon. She must protecc. She whispers all sorts of sweet nothing's while she's holding them and gives little neck kisses.
GARRETH WEASLEY: Cuddling him is dangerous because MC never knows what he'll do. This goof can't help but make MC laugh. He loves hearing it. He'll boop their nose, lick their face, even tickle them for a reaction.
LEANDER PREWETT: Long boi with long limbs. MC is tangled in him with little hope of getting away. He has quite the wingspan, so even if MC is on the other side of the bed, he can just casually reach over and yoink them to his side.
AMIT THAKKAR: Hope MC likes his voice, cause he's a talker. MC is his captive audience and he will go on and on and ON about just about anything. Mostly astronomical topics, but he goes off on tangents.
EVERETT CLOPTON: He's the little spoon. Doesn't matter how tall MC is compared to him. They could be the longest mfer or just a little backpack, he loves them either way. He feels held.
POPPY SWEETING: Smol. Turns into a ball like a little hedgehog. Might get lost in the cushions or blankets, so hold tight. Also a bit of a squirmer, sometimes struggles to get comfortable. She'll settle down eventually.
~~~~
ELEAZAR FIG: Dad. Hugs. Like, sit on the couch under his arm, dad hugs. Warm and comforting and loving. MC will likely fall asleep.
MATILDA WEASLEY: She's not too much of a hugger, but she won't deny one if MC asks. They'll be short but comforting.
CHIYO KOGAWA: She's not much of a hugger but if MC really needs one, she'll oblige. Might be a bit awkward, but she means well.
AESOP SHARP: MC will have to be strategic. First, gain his trust. That's the hard part. Second, catch him in a good mood. Third, MC must ask ONLY when no one else is around. His affection is very private. Fourth, (optional step) liquid luck.
ABRAHAM RONEN: Favorite Uncle vibes. Playful bear hugs that crush ribs and pick MC up off their feet. Best hugs for when MC needs a laugh.
MIRABEL GARLICK: Very much a hugger. MC can hold her as long as they need to. Let all their worries and stress melt away in her genuine embrace.
MUDIWA ONAI: She gives the best Mom hugs MC could ever experience. She'll go so far as to hug MC in her lap and rock them like a child, even if MC is tall.
BAI HOWIN: If MC needs affection, she suggests they seek out mooncalves or puffskiens.
DINAH HECAT: She is more affectionate than she lets on. If MC is stressed and needs a hug, she offers one without prompting.
CUTHBERT BINNS: He's a ghost. Move along.
SATYAVATI SHAH: She's not an affectionate person. MC will get more warmth from a glacier.
PHINEAS NIGELLUS BLACK: If MC knows what's good for them, they won't touch him. Ever.
367 notes · View notes
copperbadge · 1 year ago
Text
Amateur Translation Programs
So I had a lot of imaginative and informative responses to my post about looking for an amateur translation program -- something where I could load in a foreign language and it would insert a box where I could add a translation every-other-line. The idea was that this way I could practice translation with more advanced texts, and texts I chose, and thus move away from Duolingo, which at this point is good for drilling and daily practice but not for more advanced learning.
I didn't find precisely what was needed but I did get some inspiration for further explanation, and I also learned that adding the term "glossing" (thank you @thewalrus-said) into my searches helped a great deal in terms of weeding out programs that were either "Let this AI translate for you" or just endless promotional links for Babbel and Duolingo and such. I thought I'd collect up the suggestions and post them here; at the end I'm including my best swing at designing what I wanted, and why it doesn't work yet.
Suggestion one, from many people, was various ways to generate a page that is simply fixed Italian text with space underneath each line to add in a translation. This is pretty simple as a process and there are sites that will do it for you, such as this one that @ame-kage suggested. However, most of these don't allow for movement in the Italian text, and many produce a PDF which you would need to print out in order to write on unless you're willing to open it in Acrobat (and deal with Acrobat). A good solution for some but not what I'm looking for purely because I'm trying to make this super frictionless so that (knowing myself as I do) I will actually do it.
I did find this version interesting, suggested by @drivemetogeek: Have one word doc saved as your "template" doc and set the line spacing as 2.0 or higher. Select your text from source and paste it into the template doc as text-only. Ctrl a, ctrl c to select all and copy, then open a new document and "paste special" as picture. Right click and set the "wrap text" as behind text. Now you have a document where you can, basically, type over the existing text because it's the background of the page. This seems like the most frictionless version, because you could set up a bunch of them ahead of time. If you wanted to move between desktop and mobile, however, you'd need to ensure that the pasted image was fairly narrow so that you don't have to sideways-scroll.
Relatedly, people suggested generating a document that is simply the Italian text with empty space beneath it for typing in of the translation. This can be done either semi-automated, using a macro or a language like Python, or find-and-replace on, say, the stops at the ends of sentences. It basically outputs the same as above but with a more digitally accessible format, without any more effort than above. If you were to do this in Google Sheets you could also fix the column width so that it didn't do anything weird when you opened it on your phone. But it is still very friction-y, and does not allow for easy shifting of the Italian as needed. There's high probability of the translation breaking weirdly across the page. Still a top option in terms of simplicity and access.
@smokeandholograms suggested another variation illustrated here where essentially you're converting the text to a series of tables, with each paragraph a row, and an empty cell next to it for the translation. I might play around more with this one eventually, since I think I could possibly make it a three-column and put the Italian in one, the translation in the next, and the auto-translate to let me know where I might be slipping in the third. (Not that I trust auto-translate but comparing a hand translation to an auto translation can be useful in terms of working out when I've messed up the way a tense or mood is read. I tend to read indirect verbs as automatically imperative because I'm a weirdo.)
@wynjara linked to an add-in for Word specifically designed for translators, known as TransTools; this appears to employ a macro to do the same thing, though it does have a format where you can place the translation next to each sentence directly rather than in a separate cell. The full suite of tools is only $45 which is reasonable for my budget, but for what I need I think I could also just create the macro.
Using LaTeX as a tool specially designed for glossing was an option on offer, but I don't know enough about LaTeX to figure out the pros of this one, which is in itself the major con -- there's a learning curve that I think varies widely by person but for me is unfortunately a wall. It came out of a discussion on Reddit about trying to find something like what I want; also in that discussion is a link to a code generator that allows you to…do something…to the initial language, but it's not entirely clear to me (I'm sure it's clear to people who understand coding) what you would then do with it that would allow it to be output in the way I'm hoping for. Like, I could turn a paragraph of text into HTML, I understand that far, but any Italian I find is already on a website.
Moving more into apps that might work, Redditors on the LaTeX discussion suggested SIL Fieldworks, which is a professional language tech tool. Fieldworks isn't a program I'd previously encountered but much as with the ones I had, it looks like the learning curve is fairly steep and it is definitely overkill generally for what I need, though it might also harbor within it the thing I want. It is free, so I may download and play around with it.
@brightwanderer suggested using note-taking or "whiteboard" apps such as Freeform or Nebo; these are generally a kind of "infinite canvas" in which you can drop objects, text boxes, or handwriting. I don't know that Freeform would be measurably different to just using Word and a macro, since I'd still have to input/format all the text and then be stuck with the same "fixed text" setup -- and it's also iOS only -- but for some folks it might be more helpful. Nebo is a similar infinite-canvas with unfortunately the same issues, though on the plus it's available for Android, which is where most of my mobile property resides.
@bloodbright suggested that I was looking for a CAT tool, a professional translation tool mainly used by translators working in the field. This was a concept I'd encountered, but I hadn't found a good starting place. They suggested Smartcat and OmegaT. Smartcat bills itself as an AI translation platform and is HARD pushing the "don't translate it yourself, hire a translator or let AI do it" angle, so it's difficult to tell what it offers in terms of actual tools for translators, and it's also cagey about pricing, so I can't really evaluate it. OmegaT is free and gives off big "some weirdo homebrewed this in their basement" vibe (which I am here for) but I also recognized it from screengrabs that were the reason I veered away from professional-grade software: it looked too complex. Realistically, the major downside of OmegaT is that I don't think I can put it on my phone. One thing I did find interesting is that once you translate a portion of the text, the original language goes away, though I assume you can turn that off if needed. I do kind of like that because it means my distractable brain is looking at Less Stuff.
So where did I end up?
Well, it looked like I was going to have to try a homebrew myself. I had the idea of trying some of the initial suggestions but in reverse -- designing a document where every other line was a single-cell table fixed to the page. You could paste in the Italian, which would wrap around the cells, and then enter the English in the cells.
You can fix a table in place in Google Docs -- you click on the table, then under Table > Style select Wrap Text, Both Sides, and Fix On Page. Getting the whole page set up is a little labor intensive but once you did that, you could just save it as a template and make a duplicate of it each time. And this actually works….on desktop.
Unfortunately, if you open it in the mobile Docs app, the app can't handle the fixed tables and automatically moves them all to after the text that's been pasted in. I tried redesigning it so that it's a table within a table -- one for the Italian, then within that a series of them for the English -- but when you nest a table in Google Docs, it doesn't let you fix the second table in place. And you are also still dealing with the wrap issue, although you can resize the page and add a large right-hand margin as a kludge of a fix for that.
You can build this same kind of document in Word, so I tried building one in Word and then uploading it to Drive, but when you open the Word file in Docs (or in Microsoft Word for Android), it still strips the fixed positioning -- there's just some functionality missing from both apps that doesn't allow them to handle fixed-position tables.
So, the design is sound, just not the final execution. If I could program an app, I could probably remedy the issues with it -- it's simply a series of text boxes nested inside one another with different formatting. I would imagine that's relatively basic to set up, although given that neither Docs nor Word can handle fixed tables in mobile, perhaps I've stumbled on a much bigger problem that everyone is ignoring because nobody actually needs or wants fixed tables in mobile. :D
Experimentation is ongoing, anyway. I might simply have to resign myself to the fact that my translation study is going to have to be in front of a computer, which might be for the best anyway when I inevitably want to compare my translation to an auto-translate to see where I might have read something wrong.
69 notes · View notes
idioticbat · 2 months ago
Note
i'm curious about something with your conlang and setting during the computing era in Ebhorata, is Swädir's writing system used in computers (and did it have to be simplified any for early computers)? is there a standard code table like how we have ascii (and, later, unicode)? did this affect early computers word sizes? or the size of the standard information quanta used in most data systems? ("byte" irl, though some systems quantize it more coarsely (512B block sizes were common))
also, what's Zesiyr like? is it akin to fortran or c or cobol, or similar to smalltalk, or more like prolog, forth, or perhaps lisp? (or is it a modern language in setting so should be compared to things like rust or python or javascript et al?) also also have you considered making it an esolang? (in the "unique" sense, not necessarily the "difficult to program in" sense)
nemmyltok :3
also small pun that only works if it's tɔk or tɑk, not toʊk: "now we're nemmyltalking"
so...i haven't worked much on my worldbuilding lately, and since i changed a lot of stuff with the languages and world itself, the writing systems i have are kinda outdated. I worked a lot more on the ancestor of swædir, ntsuqatir, and i haven't worked much on its daughter languages, which need some serious redesign.
Anyway. Computers are about 100 years old, give or take, on the timeline where my cat and fox live. Here, computers were born out of the need for long-distance communication and desire for international cooperation in a sparsely populated world, where the largest cities don't have much more than 10,000 inhabitants, are set quite far apart from each other with some small villages and nomadic and semi-nomadic peoples inbetween them. Computers were born out of telegraph and radio technology, with the goal of transmitting and receiving text in a faster, error-free way, which could be automatically stored and read later, so receiving stations didn't need 24/7 operators. So, unlike our math/war/business machines, multi-language text support was built in from the start, while math was a later addition.
At the time of the earliest computers, there was a swædir alphabet which descended from the earlier ntsuqatir featural alphabet:
Tumblr media
the phonology here is pretty outdated, but the letters are the same, and it'd be easy to encode this. Meanwhile, the up-to-date version of the ntsuqatir featural alphabet looks like this:
Tumblr media
it works like korean, and composing characters that combine the multiple components is so straightforward i made a program in shell script to typeset text in this system so i could write longer text without drawing or copying and pasting every character. At the time computers were invented, this was used mostly for ceremonial purposes, though, so i'm not sure if they saw any use in adding it to computers early on.
The most common writing system was from the draconian language, which is a cursive abjad with initial, medial, final and isolated letter shapes, like arabic:
Tumblr media
Since dragons are a way older species and they really like record-keeping, some sort of phonetic writing system should exist based on their language, which already has a lot of phonemes, to record unwritten languages and describe languages of other peoples.
There are also languages on the north that use closely related alphabets:
Tumblr media
...and then other languages which use/used logographic and pictographic writing systems.
Tumblr media
So, since computers are not a colonial invention, and instead were created in a cooperative way by various nations, they must take all of the diversity of the world's languages into account. I haven't thought about it that much, but something like unicode should have been there from the start. Maybe the text starts with some kind of heading which informs the computer which language is encoded, and from there the appropriate writing system is chosen for that block of text. This would also make it easy to encode multi-lingual text. I also haven't thought about anything like word size, but since these systems are based on serial communication like telegraph, i guess word sizes should be flexible, and the CPU-RAM bus width doesn't matter much...? I'm not even sure if information is represented in binary numbers or something else, like the balanced ternary of the Setun computer
As you can see, i have been way more interested in the anthropology and linguistics bits of it than the technological aspects. At least i can tell that printing is probably done with pen plotters and matrix printers to be able to handle the multiple writing systems with various types of characters and writing directions. I'm not sure how input is done, but i guess some kind of keyboard works mostly fine. More complex writing systems could use something like stroke composition or phonetic transliteration, and then the text would be displayed in a screen before being recorded/sent.
Also the idea of ndzəntsi(a)r/zesiyr is based on C. At the time, the phonology i was using for ntsuqatir didn't have a /s/ phoneme, and so i picked one of the closest phonemes, /ⁿdz/, which evolves to /z/ in swædir, which gave the [ⁿdzə] or [ze] programming language its name. Coming up with a word for fox, based on the character's similarity was an afterthought. It was mostly created as a prop i could use in art to make the world feel like having an identity of its own, than a serious attempt at having a programming language. Making an esolang out of it would be going way out of the way since i found im not that interested in the technical aspects for their own sake, and having computers was a purely aesthetics thing that i repurposed into a more serious cultural artifact like mail, something that would make sense in storytelling and worldbuilding.
Tumblr media
Now that it exists as a concept, though, i imagine it being used in academic and industrial setting, mostly confined to the nation where it was created. Also i don't think they have the needs or computing power for things like the more recent programming languages - in-world computers haven't changed much since their inception, and aren't likely to. No species or culture there has a very competitive or expansionist mindset, there isn't a scarcity of resources since the world is large and sparsely populated, and there isn't some driving force like capitalism creating an artificial demand such as moore's law. They are very creative, however, and computers and telecommunications were the ways they found to overcome the large distances between main cities, so they can better help each other in times of need.
13 notes · View notes
ailurinae · 6 months ago
Text
Bash as a language has so many issues. But it is still a ton of fun.
Bash scripting is kind of fun actually
10 notes · View notes
destinationtoast · 3 months ago
Note
hi! research question I'd love your input on:
do you know how to generate size-of-fandom stats? I'm researching the Ghost fandom and while I know from the This Week in Tumblr posts about what their size is *now,* I'd like to try to compare it to past years, and be able to make statements like "x% of the fandom is reblogging explicit content."
I'm also looking for deeper info on how tumblr works if someone deactivates - do their notes vanish too?
It sounds like you want to gather Tumblr information only -- is that right? I don't have a lot of expertise with Tumblr data (I think I last gathered some over a decade ago), but it looks like their API still lets you retrieve posts with a certain tag and specify a timestamp, if you're willing to do a bit of programming. So you could, e.g., retrieve the last N posts of each month that use a particular fandom tag. And then you can compare those samples of posts to see how the content has changed over time. If you want to do that, there are libraries in Python and probably other languages that can make it easier to work with the Tumblr API.
I believe the posts retrieved this way don't include reblogs, so you'd also have to look at the post notes to get info about how many reblogs different types of posts are getting. As to your question of deactivated accounts within those notes, I'm not certain of the answer. I frequently see reblog chains where some accounts in the chain have deactivated, so those notes are not entirely gone. But I don't know if the replies/likes from deactivated accounts disappear from post notes. Anyone else know?
12 notes · View notes
cherry-pop-elf · 1 month ago
Text
Lionsquirrel Headcanons
Because this is a amazing OTP and I can’t comprehend why more people don’t ship it.
Also I need to convert more people because I can only make so much content with my disabled ass
Tumblr media
He 10000% was the one to build her Treehouse Headquarters in Central Park
The T4T energy between them is off the charts man
Despite her being vegetarian and him eating a meat heavy diet it’s not as stressful of a deal in the kitchen as you would think. Sergei is a master hunter, and world traveler. It’s not like he doesn’t know how to make recipes with OUT meat products. Nothing like using separated kitchenware and cooking the fruits and veggies first before the meat can’t fix.
Speaking of food he makes her homemade nut butter. Fresh nuts from morning walks.
Since he’s so old, and had been married before, he knows the song and dance well. What does that mean? He actually gets a chance to enjoy this relationship compared to having it more of a business contract between powerful families.
He still has issues with his masculinity but whenever he and she are private together he is the biggest sappy kitty around. Purring and nuzzling her. His cat instincts able to be proudly displayed with no worries
The snuggles they have are top tier. They are constantly cuddling each other.
Doreen is normally the big spoon/the one being held due to her tail.
All four of his kids really like Doreen. Like genuinely. Think she is the healthiest thing their dad has had….Ever.
Since taking the more heroic role of Kraven The Hunter Of Hunters it’s put alot of his normal activities in the dumpster. Nearly took on a house husband role with Doreen going out and about. He finds it healing and comforting to do rather human things. Especially have time to spend with his kids. Who knew not hunting Spider-Man could be therapeutic?
Oh Doreen is pampered so hard. She is given hand made furs for her uniform and when the winter comes. Shes vegetarian, yes, but she knows furs from Sergei are done far more humane and ethnically than grabbing pleather from a store chain. She respects nature and he respects nature.
So many picnics oh my God
And him dragging her into the world traveling life. Give me Squirrel Girl over in Russia with Sergei dammit. Fur coats and all.
Doreen’s favorite feature on Sergei is his eyes. Sergei’s favorite feature about Doreen is her smile.
For an embarrassingly long time Sergei thought that whenever Doreen talked about ‘Python’ it was about a ACTUAL Python. She’s never let him live it down.
She got Sergei invested into video games with her. They especially love playing together on games like shooters, hehehe meta, and teamwork heavy gameplays. Stardew was one of the few games Sergei ever 100% on. Doreen helped, and it’s a cherished memory between them.
Matching jewelry. Doreen has one of his lion tooth’s on a necklace, and Sergei is sporting acorn charms.
She is constantly stealing his shirts, and since he’s a proud ass nudist it works out
Morning runs together constantly
Having an extra set of hands for her tail has made life so much easier. He also takes great joy in it. Acts of service is his love language, and what better than combing and helping her wash her tail?
She makes chirp noises like a squirrel and it makes him melt
In turn his purrs make her turn into a puddle all the same
PDA addicts. In private he’s alot more soft, but infront of others he is territorial as all hell. He’s holding her and growling at anyone who’s coming too close. She finds it adorable. Others find it terrifying.
Since he’s so old and done so much traveling he knows French. Since she’s Canadian she also knows French. The dialects are different but it’s nice to have their ‘own language’ to share.
She’s secretly been trying to learn Russian in private, to surprise Sergei, thanks to Nat, Bucky, and Illyana. Bucky and Nat really helped since they know older slang on top of it all.
Nose nuzzling kisses. Need I say more?
Took ages for tippy toe to warm up to him, but she can’t deny that he’s really nice to climb and nuzzle on. Not everyone is comfy with a squirrel running around on you. He welcomes it, and doesn’t even mind when she’s in his hair.
One of their favorite things to do, besides co op games, is just existing together. Even if it’s doing their own things. It won’t be a suprise to enter their home to see Sergei’s head in her stomach as she plays some video game. Either napping or happily listening to her talk out loud about the game itself. Doesn’t matter if he has no idea what any of the words mean. Existing is nice.
It’s also nice to have someone be there for his chronic depression and spiral spells. Sometimes you just need to exist and survive the moment. She’s always there to keep him grounded.
You’ll always see her pampering him in affection through words, and he is always pampering her in affection through actions.
When the day comes for proposing it’ll be Doreen who does it first.
Tumblr media
7 notes · View notes
theveryevilblog · 1 month ago
Text
Haskell > anything else
Haskell is the best programming language because it lets you write a fully functioning web server with three lines of code and zero understanding of how anything works You don't write programs, you declare intentions, and the compiler decides if you're worthy Every other language lets you make mistakes. Haskell waits patiently then destroys your ego at compile time Besides, who needs to 'build skill' in programming anyway?
Not even comparable to python, which is just... so annoyingly uncomplicated and pointless (to make good python syntax you need to make it as un-python as possible) and javascript? Who needs fast languages anyway? So unsatisfying And don't even get me started on C, C++ or C#, which are literally the same language by the way Rust? Bro, just send me the virus already. I don't care PHP? What does that even stand for? Poverty Holding Person? Like you? Java? You stopped being relevant about thirty years ago Swift? Buddy, I do not care about your apple vision pro R? You couldn't even spare another letter? What are you, C-- or something? Ruby? Just admit that Ruby on Rails died last decade... Go? Go where? Out the door? Because currently, that is what Go developers are being asked to do by employers Perl? I don't even know what that language is
6 notes · View notes
foone · 2 years ago
Note
Why are "Crabs" and "Brazil" different flag categories? Arent they both "some image centered in the middle of a maybe-patterned-maybe-not field"? What's the difference and why's it enough to split the categories? Also would Mexico be a Crabs or a Brazil
so, to explain crabs:
The way VGAPride works is that it has a simple vector drawing language which is used to compose almost all the flags. so, like, a simple pride flag like the pansexual pride flag, which is just three stripes, will be coded like this:
static GraphicsCommand pansexual_pride_flag_commands[]={ GraphicsCommand(Rectangle,Left(h_3_0),Right(h_3_1),RGB(255, 33,140)), GraphicsCommand(Rectangle,Left(h_3_1),Right(h_3_2),RGB(255,216, 0)), GraphicsCommand(Rectangle,Left(h_3_2),Right(h_3_3),RGB( 33,177,255)), GraphicsCommand(EndCommandList) };
It's basically just "draw a rectangle from here in this color", then another two stripes done the same way. Nearly every flag is done this way.
Now, the crab pride flags, are way more complicated. They are pixel art, technically: they needed manual dithering to fit into the right number of colors. That was tricky and involved a lot of me zoomed way in on an image, redrawing individual pixels and shit.
So instead of doing it like this with the vector commands, they're instead compressed as just pixels, but separated into multiple planes (because EGA is... weird) and then compressed with the LZ4 algorithm. So to display them, instead of doing a lot of vector shit, it just decompresses it into VRAM, job done. But they are in separate files because the "source code" for them is automatically generated by a python script, and I don't want it stomping on the manually defined vector commands.
And Brazil... Brazil is still a vector-defined flag. But it's one that's SO COMPLICATED compared to EVERY OTHER FLAG that I had to put it in a separate file to keep Borland Turbo C++ 3.0 from crashing trying to compile it.
Tumblr media
Just about every other flag is some stripes and maybe a triangle or two. the Gay flag of Brazil is 6 stripes and a big diamond and a circle and a bunch of stars of different sizes and a white ribbon and some text. It's just SO COMPLICATED compared to everything else.
The second biggest pride flag is the Intersex-inclusive Progress Pride Flag:
Tumblr media
(which I just realized the title doesn't fit on screen. Whoops. Gotta fix that!)
That complicated flag with all the stripes and chevrons and circles is an amazing 21 commands!
Brazil is FIFTY SEVEN commands. (I even added a "Star" command to the vector language just to make it simpler!)
The second biggest and third biggest pride flags could fit inside the brazil pride flag WITH ROOM TO SPARE.
Anyway, the real question: Mexico: Crabs or Brazil?
Given the complexity of the mexican flag, if I had to add a mexican gay-pride flag, it'd probably be a crab.
124 notes · View notes
youvereachedthebadend · 3 months ago
Note
"um you can call me Lavender! Just a nickname i love to give to myself... being constantly called 'new voice' is kinda weird ,it didn't bother me but it would get weird for you and the others to keep calling a new friend that. Anyways hello Anti! It's really nice to hear from you! How are you doing? Also i am still a student so i only have the basics of programming. What is your favourite programming language?
“Lavender? Yeah you do kind of give off a purple vibe to me,” Anti says. “When you speak, I just hear purple.” He smiles slightly; it’s good to get such a positive response, he’s not really used to it. But at the same time, he holds himself back slightly. “And you’re a programming student? That’s so interesting. Programming is a bit different for me, cause of my ability to just sorta… magically mess with software. I don’t really have that much knowledge compared to people who write programs the hard way. But I know that a lot of my clients ask for Java, so… I guess that one. Python has the coolest name, though. And I know C+ is also popular, but it sounds so boring. Reminds me of school, ugh. Anyway… I’m doing good.”
3 notes · View notes
tccicomputercoaching · 3 months ago
Text
Python vs. Other Languages Why It's the Top Choice for Beginners
Tumblr media
Introduction
If it's your first time learning to program, you may find that some aspects of this process can be outsourced. With so many choices, it can be hard to decide which is the best. Python vs other languages — here's why it's the top choice for beginners. Python's simplicity, readability, and a myriad of applications make it a perfect launching block for every budding programmer.
What Extra Distinction Does Python Enjoy?
Simple Syntax and Readability
Python syntax is especially beginner-friendly. It was created to be easily understood by new learners. Compared to other languages with abnormal amounts of complexity in terms of syntax, Python really looks like plain English.
Versatility With Applications Base in Domain
From web development to artificial intelligence, Python goes where you go. Building websites? Running data analysis? Script-building automation? Python's got it all.
Constant Global Community Support
This grant in great measure gives Python its days and years of survival. Wealth of tutorials, documentation, and online forums pour in to support beginner users.
So How Do Python and Other Popular Languages Compare?
Python vs. Java
Syntax: Far simpler than java. This translates to fewer lines of code in Python.
Performance: Java is faster, but Python is flexible.
Use Cases: Java is common in large enterprise applications, while Python is preferred for data science and automation.
Python vs. C++
Learning Curve: Thanks to its complex syntax and memory management, C++ has a steep learning curve.
Memory Management: Python does it automatically; C++ needs it to be done by the programmer.
Best For: C++ is great for system programming and game development, whereas Python is great for automation and AI.
Python vs. JavaScript
JavaScript is mostly limited in application to web development; Python has several applications.
Python is simpler and thus a better first step.
Both are in high demand; however, Python is gaining increased traction in AI and data science.
Python vs. C#
Both are object-oriented.
C# programming is usually employed in game development, while Python reigns in AI and automation.
Python is the best for the beginner due to its easy syntax.
Python vs. Ruby
Web Development: Ruby is known for Rails, while Python has Django.
Community Support: Both have strong communities, but Python has more extensive resources.
Learning Curve: Python is generally easier to learn.
Key Reasons Python is Best for Beginners
Readability and Simplicity
Python’s clear syntax makes learning programming less intimidating.
Extensive Libraries and Frameworks
Python offers countless libraries that simplify development, from NumPy for data science to Flask for web development.
Large and Supportive Community
Beginners can easily find tutorials, online courses, and documentation to help them learn Python quickly.
Strong Industry Demand
Python skills are in high demand across industries, including AI, data science, and finance.
Common Use Cases of Python
Web Programming: Frameworks include Django or Flask.
Data Science: Pandas and NumPy perform data analysis.
AI, ML: TensorFlow gets used in AI programming, and Scikit-learn means ML programming.
Automation: It works for writing scripts to automate repetitive jobs.
Game Development: Pygame for interactive game design.
Conclusion
The simple programming environments give Python great beginner appeal. It is also widely used in various fields such as web development, data crunching, or AI-based applications. Therefore, choosing Python is the right start for you!
Location: Bopal & Iskon-Ambli Ahmedabad, Gujarat
Call now on +91 9825618292
Visit Our Website: http://tccicomputercoaching.com/
FAQs
Is Python faster than Java?
Java is generally faster, while Python is more flexible and easier to use.
Can I use Python for web development?
Yes, it makes web development easy with frameworks such as Django and Flask.
How long does it take to learn Python?
It can take a couple of weeks to learn basic Python with regular practice.
Which industries use Python the most?
AI, data science, web development, and automations-mandates Python use.
Do I need prior programming experience to learn Python?
No, absolutely not-Python is easy to get started with, even for a complete novice.
0 notes
minstrel-in-the-gallery · 11 months ago
Note
For the hang with me thing (sorry I didn't see it sooner!):
Tell me a bit about what your hobbies are and your interests if that's not too personal :) otherwise there's option b), about what topic would you like to see another Monty Python film? You can also answer both 💚
Thank you for the ask!!! 🫶 I’ll answer both!
My interests are basically exactly what I post on tumblr lol! Mostly Jethro Tull :3 I have very intense interests so I tend to care about 1 particular thing rather than lots of small things.
Other interests I don’t really post about is AFL, I love watching the footy! And cricket when it’s summer. I myself don’t play any sports but I lift weights sometimes. I like a little bit of history, but I’m not very knowledgeable at it so I don’t mention it too much. I did study Alexander The Great, though! I also enjoy dolls, which I feel is a very random interest but I really like Rainbow High, lol! Actually, I enjoy a great deal of kids shows, particularly aimed for little girls. I think it’s cause I love being able to engage with stuff I couldn’t really when I was little.
My hobbies are mainly just drawing, writing (which I’ve been doing a lot of lately!) and playing bass (though I’ve been slacking lately, uh oh). Im ashamed to admit I don’t do much 😭 I’m also learning languages, Japanese and Dutch, though I don’t do it very often. I’m also thinking about picking up German (my dads family is from Germany) but 2 is quite enough for now xD
As for what topic I’d like a Monty Python movie on… good question! I really like the long cohesive movies like LOB (compared to MOL), so definitely something like that. I think it’d be cool to be their interpretation of a mystery movie! Perhaps like a 40s mystery 🤔
Thanks for the ask 💛💛💛
8 notes · View notes
himanitech · 4 months ago
Text
Tumblr media
Python is a widely used programming language that offers several unique features and advantages compared to languages like Java and C++. Our Python tutorial thoroughly explains Python basics and advanced concepts, starting with installation, conditional statements, loops, built-in data structures, Object-Oriented Programming, Generators, Exception Handling, Python RegEx, and many other concepts. This tutorial is designed for beginners and working professionals.
2 notes · View notes
aimerscomputer · 7 months ago
Text
Diploma in Computer Application
A Diploma in Computer Application (DCA) is a popular short-term course that offers a solid foundation in computer fundamentals and applications. It's designed to equip individuals with the necessary skills to work in various IT-related roles.
Why Choose a DCA Course?
Quick and Efficient: DCA courses are typically shorter in duration, making it a time-effective way to acquire essential computer skills.
Practical Learning: The curriculum emphasizes hands-on training, allowing students to gain practical experience with software applications and hardware components.
Diverse Career Opportunities: A DCA certification opens doors to a wide range of job roles, including:
Data Entry Operator
Computer Operator
Web Designer
Software Tester
Technical Support Specialist
IT Assistant
Foundation for Further Studies: A DCA can serve as a stepping stone for higher education in computer science, information technology, or related fields.
Core Subjects in a DCA Course
Computer Fundamentals: Basic concepts of computers, hardware components, and software applications.
Operating Systems: Understanding and using various operating systems like Windows, Linux, and macOS.
Microsoft Office Suite: Proficiency in MS Word, Excel, PowerPoint, and Outlook.
Internet and Web Technologies: Basics of the internet, web browsing, email, and web development tools like HTML, CSS, and JavaScript.
Database Management Systems: Introduction to database concepts and SQL.
Programming Languages: Basic programming concepts in languages like C, C++, or Python.
How to Choose a Good DCA Institute
When selecting a DCA institute, consider the following factors:
Experienced Faculty: Ensure that the institute has experienced and knowledgeable faculty members.
Infrastructure: Well-equipped computer labs and other facilities are essential for practical learning.
Placement Assistance: A good institute should offer job placement assistance to help students secure employment.
Course Curriculum: The curriculum should be up-to-date and relevant to industry standards.
Fee Structure: Compare fees and financial aid options offered by different institutes.
By pursuing a Diploma in Computer Application, you can enhance your digital literacy, boost your career prospects, and stay relevant in the ever-evolving technological landscape.
2 notes · View notes
guzsdaily · 8 months ago
Text
Good Code is Boring
Daily Blogs 358 - Oct 28th, 12.024
Something I started to notice and think about, is how much most good code is kinda boring.
Clever Code
Go (or "Golang" for SEO friendliness) is my third or fourth programming language that I learned, and it is somewhat a new paradigm for me.
My first language was Java, famous for its Object-Oriented Programming (OOP) paradigms and features. I learned it for game development, which is somewhat okay with Java, and to be honest, I hardly remember how it was. However, I learned from others how much OOP can get out of control and be a nightmare with inheritance inside inheritance inside inheritance.
And then I learned JavaScript after some years... fucking god. But being honest, in the start JS was a blast, and I still think it is a good language... for the browser. If you start to go outside from the standard vanilla JavaScript, things start to be clever. In an engineering view, the ecosystem is really powerful, things such as JSX and all the frameworks that use it, the compilers for Vue and Svelte, and the whole bundling, and splitting, and transpiling of Rollup, ESBuild, Vite and using TypeScript, to compile a language to another, that will have a build process, all of this, for an interpreted language... it is a marvel of engineering, but it is just too much.
Finally, I learned Rust... which I kinda like it. I didn't really make a big project with it, just a small CLI for manipulating markdown, which was nice and when I found a good solution for converting Markdown AST to NPF it was a big hit of dopamine because it was really elegant. However, nowadays, I do feel like it is having the same problems of JavaScript. Macros are a good feature, but end up being the go-to solution when you simply can't make the code "look pretty"; or having to use a library to anything a little more complex; or having to deal with lifetimes. And if you want to do anything a little more complex "the Rust way", you will easily do head to head with a wall of skill-issues. I still love it and its complexity, and for things like compiler and transpilers it feels like a good shot.
Going Go
This year I started to learn Go (or "Golang" for SEO friendliness), and it has being kinda awesome.
Go is kinda like Python in its learning curve, and it is somewhat like C but without all the needing of handling memory and needing to create complex data structured from scratch. And I have never really loved it, but never really hated it, since it is mostly just boring and simple.
There are no macros or magic syntax. No pattern matching on types, since you can just use a switch statement. You don't have to worry a lot about packages, since the standard library will cover you up to 80% of features. If you need a package, you don't need to worry about a centralized registry to upload and the security vulnerability of a single failure point, all packages are just Git repositories that you import and that's it. And no file management, since it just uses the file system for packages and imports.
And it feels like Go pretty much made all the obvious decisions that make sense, and you mostly never question or care about them, because they don't annoy you. The syntax doesn't get into your way. And in the end you just end up comparing to other languages' features, saying to yourself "man... we could save some lines here" knowing damn well it's not worth it. It's boring.
You write code, make your feature be completed in some hours, and compile it with go build. And run the binary, and it's fast.
Going Simple
And writing Go kinda opened a new passion in programming for me.
Coming from JavaScript and Rust really made me be costumed with complexity, and going now to Go really is making me value simplicity and having the less moving parts are possible.
I am becoming more aware from installing dependencies, checking to see their dependencies, to be sure that I'm not putting 100 projects under my own. And when I need something more complex but specific, just copy-and-paste it and put the proper license and notice of it, no need to install a whole project. All other necessities I just write my own version, since most of the time it can be simpler, a learning opportunity, and a better solution for your specific problem. With Go I just need go build to build my project, and when I need JavaScript, I just fucking write it and that's it, no TypeScript (JSDoc covers 99% of the use cases for TS), just write JS for the browser, check if what you're using is supported by modern browsers, and serve them as-is.
Doing this is really opening some opportunities to learn how to implement solutions, instead of just using libraries or cumbersome language features to implement it, since I mostly read from source-code of said libraries and implement the concept myself. Not only this, but this is really making me appreciate more standards and tooling, both from languages and from ecosystem (such as web standards), since I can just follow them and have things work easily with the outside world.
The evolution
And I kinda already feel like this is making me a better developer overhaul. I knew that with an interesting experiment I made.
One of my first actual projects was, of course, a to-do app. I wrote it in Vue using Nuxt, and it was great not-gonna-lie, Nuxt and Vue are awesome frameworks and still one of my favorites, but damn well it was overkill for a to-do app. Looking back... more than 30k lines of code for this app is just too much.
And that's what I thought around the start of this year, which is why I made an experiment, creating a to-do app in just one HTML file, using AlpineJS and PicoCSS.
The file ended up having just 350 files.
Today's artists & creative things Music: Torna a casa - by Måneskin
© 2024 Gustavo "Guz" L. de Mello. Licensed under CC BY-SA 4.0
4 notes · View notes