#python type hints
Explore tagged Tumblr posts
mentalisttraceur-software · 2 years ago
Text
compose-stubs - once again making my compose The Best "compose" in Python. I mean more than it already was - it never stopped being The Best. Now it's Best-er.
In fact, mine might be the first and only variadic "compose" in Python with enough static type-checking support to actually notice when your composition mismatches the return type of one function with the argument type of the next function.
Not that I did anything particularly clever. I was just willing to do and test the ugly brute-force method (after trying hard to come up with something better - sadly not possible with Python's current type hints) because people keep asking.
5 notes · View notes
lostreverb · 9 months ago
Text
RANDOM LUKE COOPER HC'S
Tumblr media
a/n: writing a fic for him and he's just so cute and i keep getting ideas for him ahh my cinephile bf i need him might fuck around and write some NSFW ones later (SORRY THIS IS REALLY LONG I GOT CARRIED AWAY) bf! headcanons are here!!
he's very quiet if he's not talking about movies
not audibly just like only gives one word or one sentence answers
which means he's a VERY dry texter (it's not personal he's just like that)
though he does post his every unfiltered thought to his twitter (which has SOO many followers like a shitton)
doesn't understand typing in lowercase and thinks it's dumb (but if you type in lowercase he won't call it dumb but he'll express he thinks it's weird)
has the worst handwriting ever but that's because it's almost like a kind of unreadable script (like doctor handwriting)
he listens to all kinds of music really aside from like pop or country
also really likes monty python
he really likes musicals (singing in the rain, phantom of the opera, the sound of music) b/c he was introduced to them when he was very young so they're very nostalgic for him
but he'll never mention it because his friends would make fun of him for it
(would LOVEEEEEEEE la la land)
used to read books a lot more when he was younger
is a superhero comic book fan
he can play piano really well (parents made him play) he just doesn't give a fuck about piano
he's also like crazy smart and would do super well in school if he applied himself he just doesn't care
he really wants to switch his major to film studies but his parents wouldn't approve (but he's thinking about doing it anyway)
became completely desensitized to gore and nudity at a young age because he'd always just watch whatever movies his dad put on
wrote a series of letters to quentin tarantino as a kid and got one letter back and it's his most prized possession
likes maintaining eye contact with people for too long because it makes them uncomfortable
just generally likes messing with people and being a little shit b/c he likes how easy it is to mess with ppls emotions cause they're so predictable (which is kinda a red flag but he's never really taken something too far)
b/c of this no one really takes him seriously which bothers him a bit but he knows it's his fault
which is why when you do actually take interest in what he says he finds himself falling for you
he never got "lost" in the forest with michael he just hates being in nature and michael was annoying him so he walked back to the car
after a bit he looked outside and saw everyone panicking so he got out and went back to the group and everyone was acting like he died
he thinks it was too far for his parents to cut michael off but he also didn't care
thinks michael's annoying at times but the things he does are funny and he uses him as content for his twitter
has been so engrossed in his own world his whole life he doesn't think about girls
though his main crushes are sarah connor (terminator), the bride (kill bill), storm (x-men), and mikaela banes (transformers - but he hates the transformer movies)
but he has very little or no experience at all
he's probably the first in his friend group to have a girlfriend too
his only knowledge about talking to girls is from movies so yk the james bonds, george clooney, harrison ford are his main influences
which means if he has a crush on you he'll just stare at you all the time, bother and tease you relentlessly and try to banter cause that's the only way he knows how to get closer
he'll also try by memorizing your coffee order
if you don't drink coffee he'll try to find out what you do drink (without directly asking you)
he'll never confess, you'll have to first and use the most straightforward language or else he won't take a hint
once you start dating he has no idea how to treat you anymore
he just constantly flips between being the sweetest bf ever and the bane of your existence
if he annoys you too much and you get upset his first response will be "what? i didn't even do anything" or some other cheeky response
you'll have to help him to unlearn that
though he's a very caring boyfriend and would help you carry things around the office and drive you places and get you presents
doesn't give a fuck about most things (other than you and movies)
he just is so obsessed with you and loves being around you all the time
he's not incredibly keen on pda but sometimes he'll hold your hand and kiss your cheek in public
if you kiss him in front of other people he'll get really flustered and be noticeably disoriented for a bit after
feels weird using pet names but he'll use the occasional baby or babe
he'll discover how good it feels to cuddle it'll be his favorite thing to do along with watching movies with you
run your hands through / play with his hair and he'll fold completely
the first time you do it he'll probably involuntarily moan and get so embarrassed about it it'll take a few weeks before he'll let you do it again
during those few weeks he'll think about how your hands felt almost obsessively he's never felt anything like it
he'll create a list of movies to watch with you and once a month he'll let you choose the movie
he's really good at gift giving because he makes sure to pay extra attention to the things you like (especially movie related things bc he has good contacts)
he's definitely one of the first people to ever use letterboxd
he loves being able to drop you off at home from work because more often than not you'll stop someplace to get something to eat or head to his place and watch a movie and he loves doing that with you
he also likes picking you up in the morning because then you get to go on his coffee run with him (you'll make sure everyone's orders are correct and he'll whine and groan about it saying it's not worth the time but he appreciates it)
will definitely get you to do his work for him
his work clothes used to belong to his dad which is why they're just a tad too big for him
outside of work he typically wears zip-up hoodies and jeans with a graphic t-shirt (probably related to a film he likes)
instead of a bookshelf, he has a DVD shelf in his room (that's very well organized and categorized)
and he has a really high end tv and surround sound system that he and his dad paid for
he researched how movie theatres make their popcorn and buys the special ingredients directly from one by his house
used to have the whole script of citizen kane memorized but it's been a second since he last recited it
he's written his own scripts before but he doesn't think they're any good (he's pretty hard on himself about it)
but if he does end up making a project he'll 100% cast you in it
312 notes · View notes
wuggen · 1 year ago
Note
I have heard tell of Julia but I've never used it. On a quick glance I'm seeing (a) 1-based array indexing, (b) significant whitespace, and (c) implicit mutable aliasing, so probably fuck this language, it doesn't deserve the name
what is the hipster's interpreted imperative programming language, like... what's the 'you know, you should really rewrite your python lib in xyz, it's the python and nodejs killer for real.’
Maybe Julia? At the very least, I knew many people in grad school who loudly evangelized for replacing R and Python with Julia.
oh yeah ive heard of that. (also @wuggen i need your opinion have u used julia and is it an honor to have it share ur name or does it do no justice to the julia set)
13 notes · View notes
intoanotherworld23 · 1 year ago
Text
Worth A Thousand Words
Tumblr media Tumblr media
Summary: you want to see what Joel’s point of view looks like, and he takes some pictures for you
Warnings: mdni 18+, explicit sexual content, picture taking, mention of making sex tape, unprotected sex, minor spanking, implied sex tape
A/N: reblogs and comments help your support your writers so please it’s highly encouraged to share fics to others! Pedro pascal tag list is always open so don’t hesitate to join! Thanks! XOXO
Hall of Hunks
Tumblr media
"Wish you could see yourself right now." Joel whispered just enough for you to hear. Thick hands running up and down your sides as you bent over the kitchen table. Resting your cheek against the wood cooling your skin.
"Take a picture then." Your reply definitely surprised him a little bit, and turned him on at the same time. A hand coming down swiftly on your behind the smack echoing around the room as the impact stung your skin. It hurt for a second but with Joel deep inside you it brought extreme pleasure.
"Yeah? You wanna see my cock inside you." Cursing under his breath as he spread your cheeks apart to get a better glimpse of his cock disappearing inside you. It was the sexiest thing he's ever watched in his whole life even better than porn.
"Yes so fucking bad." You choke out as he dips his hips to get a deeper angle inside of you. Feeling your knees buckling as the intensity of his thrusts grew.
His cock feels like it's bulging inside of you. If you could move even just the tiniest bit you would've looked down to see it for yourself. He pushes his hips harder moving your body forward your breasts rubbing against the table. Walls clenching around him tightly as a moan escapes your lips.
"Looks so fucking good." He growls as hands grip your flesh squeezing the fat in the palm of his hands like some type of toy. Joel loved the feeling of your skin just right under his fingertips. It was the most intoxicating thing.
Next thing you knew his cock slipped from your cunt leaving you feeling empty and hallow. Whining as you craned your neck to see what he was doing. Watching as he grabbed his phone off the counter his erect bouncing as he stomped back over to you.  Your insides were doing somersaults realizing what he was about to do.
Pushing his cock back inside you cruelly pounding your raw hole without any mercy. One hand gripping your hip while the other held the phone turning on the camera. Positioning it just right to get the best picture. Taking several hoping to capture the perfect photo. One that he can print out and tuck in his wallet so always have with him.
“Pretty little cunt.” He growled in awe as his cock glistened with your juices. Continuing to take pictures knowing his phones storage was gonna be full just from this. He couldn’t care less though cause it would be worth it to him.
“You’re so unbelievably tight baby girl.” He coos a hint of praise behind his voice as he drives his hips deeper in yours.
“Joel please I wanna see.” Whining pathetically as you crane your neck to try and watch his cock disappear inside of you. It amazed you every time how you were able to take him like you did always making you feel stuffed to the brim.
Putting his phone in front of your face so see the vulgar image. His thick cock halfway in your drenched and swollen cunt swallowing every inch of him. Juices leaking out dripping down the insides of your thighs. The picture was kind of blurry but you could still make out exactly what it was. It was the hottest thing to look at while Joel was relentlessly fucking you against the table.
“I know you liked that can feel that cunt squeezing my cock.” He called you out just as your walls gripped him tightly like a python. Joel was gonna keep this photo safe so he could always look at it whenever he missed you and needed you when you aren’t there.
“Now let’s take a video.”
679 notes · View notes
neminomnom · 5 months ago
Text
Sevika headcanons!!!
Hope you enjoyy, sorry it’s short i have no motivation 🧍‍♀️🧍‍♀️
- Sevika met silco on accident, when they were younger, she thought he was a woman at the bar, went up to him all flirty and confident, but then a guy turned around, looking VERY confused
- Probably is lesbian
-When she was younger, she had a ball python, it didn’t have a name and just called it ‘the snake’.
-Has really thick glasses, but refuses to wear them
-She doesn’t have a specific taste in music, but doesn’t like pop music that much.
-Never can get comfortable on her left side due to her arm and hates sleeping on her right side so she sleeps on her stomach or back.
-doesn’t really have a type when it comes to partners, but defiantly likes if a gal has meat on her bones, she likes to grab onto stuff
- Finds asking for help directly really awkward, she’ll probably hint at it but will never directly say something along the lines of “I need help”
-if you are not close to sevika, then she isn’t one for physical touch, but if you are then she is up for it.
-smells like alcohol and cigarettes all the time, even if she showers
-HATES people playing with her hair, she finds it really annoying, but likes massages, or shoulder rubs.
- She Likes to whistle through her tooth gap
44 notes · View notes
azureandcrimson · 6 months ago
Text
Separate.
Mk has two ish powers, right? They've hinted that Mk's related to Wukong, which is probably canon at this point. But they also started to hint that he's related to Macaque. But the thing is. If you have those two powers. One that you can control, and one you can't, and if Mk had possibly unlocked shadow powers during S4. He could have gone insane because he couldn't control all of that at once. But that also leads to Macaque. I've watched the 2 theory videos on Youtube. Macaques powers can also be red. Shown with concept art and Rumble and Savage. But. If Macaque does have 3 different power types. The shadows, those red powers from the theory of the Python Demon. And the new chaos powers from Xiangliu. And there all sort of unstable. Well... maybe the theory of Macaque getting killed off in Season Six might come true. But the theory of him going insane in Season Six... would possibly be canon. That's to many unstable powers in one body. Xiangliu couldn't even handle it with just one, same with Macaque and his shadow powers in the past.
30 notes · View notes
the-typing-dragon · 1 year ago
Text
Tumblr media
youll have to wait and see :]
ooo might have an idea for a gimmick blog. will need some work though
6 notes · View notes
darlingzelda · 2 months ago
Text
What TV shows/Movies/Books the Court of Darkness Characters would like
Guy: The Prince (Machiavelli)
this needs very little explanation
It’s a book about how aristocrats or political figures can gain power and maintain status. Also known for justifying the means to the ends. (which Guy has definitely been known to do.)
Toa: The Lord of the Rings (Tolkien)
We know Toa really likes to read stories and romance novels
LOTR is perfect because it’s deep, creative, compelling, and has hints of romance here and there while still having the overarching theme of resilience in hardships.
Fenn: Twilight (Meyer)
you’re telling me Fenn wouldn’t absolutely be a Twihard??
You can’t keep him away from cheesy supernatural romances that may or may not be toxic in every aspect.
He would eat that right up
Definitely comes up behind every single person in the academy and dramatically says “This is the skin of a killer” and then laughs maniacally
Violet has had enough
Roy: Pride and Prejudice (Austen)
Roy is definitely the type to swoon over dramatic romance novels
He’d sit there in his little garden with a cup of tea and just… read
He just gives the aura of someone who would love Jane Austen stuff
Lynt: Harry Potter (Rowling)
Lynt is just full of childlike wonder so it makes sense he’d like a classic series that we all grew up reading
Would 100% lay on a pillow and have Tino read it to him like a bedtime story
Lance: A Series of Unfortunate Events (Snicket)
He just seems the type to go nuts for melancholy
They’re very good books, but since he’s kind of hardcore he just reads them for leisure
Can definitely see him skipping class and lounging up in a tree to read
Knight: The Cat Returns (Miyazaki)
Do I even need to explain.
I feel like he would love Ghibli movies, but especially this one because literally almost all the characters are cats
Also appreciates the unique art style
Jasper: Sherlock Holmes (Doyle)
something about him just exudes an air of ‘mystery novel lover’.
It’s both classy and intriguing, which is the perfect mix for him
Kind of like a parallel to his Sirius alter ego where he goes out on secret missions for Guy
Always manages to solve the mystery before they even get to it
Violet: Real Housewives shows
She would absolutely eat that drama right up
Strikes me as a feral reality TV lover
She would get INTO it. Everyone passing by her room can hear either cackling or very loud swearing when she’s at it
Would sit there with a glass of wine and watch to ‘unwind'
Grayson: The Phantom of the Opera (Leroux)
Like Roy, he’s definitely a classics lover
Perfect balance of music, drama, and enjoyable mystery
Definitely likes both the book and the movie and would very much go see the musical every time it was showing
Makes him feel things??
Tino: Avatar: The Last Airbender
He just loves classic childhood shows like Lynt
Absolutely identifies with Aang and Katara
Probably hides his face with a blanket whenever Azula is on screen
Just really likes wholesome content
Excitedly explains the plot of every episode and backstory to Lynt (who’s half listening or falling asleep)
Rio: Monty Python and the Holy Grail
This man would go feral for comedy
Perfect mix of knights and comedic value
Roars with laughter anytime a joke lands
Definitely can be seen banging items together and pretending to ride a horse like they do in the movie
Laughs at the jokes every time no matter how many times he’s seen it
Aquia: Sleeping Beauty
No surprise that he’s a sucker for romance
Definitely loves every single classic Disney movie and even cries when he’s watching
He loves the part where the Prince rescues Aurora because he’s secretly wishing that he could be a prince like that someday
It’s his comfort movie
Lou: The Office US
Every. Single. Thing. makes him laugh
So deeply absorbed in every single side plot
Sitting there on the edge of his seat with wide eyes watching it all go down
It kind of reminds him of the situations he finds himself in every day
Has definitely tried to say “That’s what she said” without understanding what it means, and everyone else is just staring at him with horrified expressions
Finds Michael Scott so funny
So invested in the Jim/Pam plotline that he actually cries when they get together
Such a fangirl that he hosts a version of the Dundies for the princes/ valets
It does not go well
17 notes · View notes
sammydreamer · 3 months ago
Text
Over the past few weeks, I decided to do something unprecedented with my F/Os and fictional crushes: I decided to determine…my type when it comes to my romantic interests. More specifically, PERSONALITY types!
I gathered the personality types (particularly MBTI and Enneagram) of all non-OC fictional crushes and romantic F/Os I’ve ever had (non-OC to not have bias in this), and ran them all through a Python program to determine the number of each type amongst my crushes, among other things!
And as it turns out…I DO have a type. More below.
In particular, take a look at the MBTI results. Notice anything in particular?
Tumblr media
If not, I’ll give y’all a bigger hint. Look at the below left, then look just below the “1 + 4” category on the right.
Tumblr media Tumblr media
That’s right…over 40% of all non-OC fictional crushes I’ve ever had are ExxPs, or, Extroverted Perceivers.
The meaning of this is kinda complicated if you’re not into personality typing, but essentially, what this boils down to is: an all-over-the-place, go-with-the-flow kind of person. One who is full of surprises and energy. One who is guaranteed to brighten your day. A true keeper.
I’ve definitely noticed this in some F/Os I’ve had. Hell, Gloria herself is an Extroverted Perceiver! And so are Amyllia-Gotanka, Eryn Wrenn, Adam, Jax and Sallie May!
I can’t really explain it, but I love Extroverted Perceivers so much. Seriously, what is it with me and them?! I guess I just love how energetic they are, and how they can protect me when I’m in danger. IDK. But I adore them.
In addition, here is some Enneagram and tritype information:
Tumblr media Tumblr media Tumblr media Tumblr media
Not much to talk about here, the Enneagram stuff fits ExxP’s quite well, I think.
Here’s some bonus stuff with temperaments, Big Five, and alignments as well!
Tumblr media Tumblr media Tumblr media
Take notes, y’all. If you want to know the kinds of characters that I love so that you can recommend F/Os to me, this is your chance.
I’m not saying I only love ExxPs, though. In fact, about 60% of all my crushes aren’t, and this all just may be a coincidence. There are more to characters than personality types. Who knows, maybe I’ll fall head over heels for an xxTJ tomorrow!
What truly matters is not something you can put a label on.
Please read my full DNI in pinned before interacting.
8 notes · View notes
jocia92 · 1 year ago
Text
Tumblr media
Dan Stevens in an exclusive interview (Google translated)
Hollywood star Dan Stevens can currently be seen in the blockbuster “Godzilla x Kong: The New Empire” in cinemas. The film is currently topping the box office charts and is number one worldwide. We met the charismatic actor in Los Angeles and talked to him about his current film, his next two projects and his choice of roles.
April 5, 2024 by Grace Maier
Can you share with us your first reaction when you were offered a role in Godzilla x Kong: The new empire? It's always a pleasure to work with the same people several times, but this time it was extra special as Adam Wingard, the director, is an old friend. I was also invited to play with an even older friend, Rebecca Hall, as well as Brian Tyree Henry, who I have known and admired for years. It felt like I was being asked to play with friends.
What was it like entering the universe of these iconic monsters? Did you have any ideas or expectations? It's a fun task to be asked to stretch one's imagination to the size of such cinematic titans! I've worked with CGI on an epic scale before, so it wasn't too foreign, and I was surprised at how many practical locations we had.
How did you prepare for your role in this blockbuster? Were there any unique challenges or exciting moments during filming? It was really exciting to shoot in the Australian outback, in the Daintree rainforest - this incredible ancient jungle. That sense of adventure on the way to work every day, passing crocodiles along the river banks, waiting for pythons to be removed from the set, really fueled the mood for the Hollow Earth walk in the film.
“Godzilla x Kong: The new empire” promises to be an epic clash. Without giving too much away, can you give us a hint as to how your character fits into the plot? Trapper is initially brought in to help Kong with his toothache - he is a vet for all Titan creatures - and is then approached by Rebecca Hall's character, Dr. Andrews, invited to the mission. He's a kind of happy, carefree Han Solo type, good to have around, tirelessly optimistic and impressed by little.
The film contains a lot of CGI and visual effects. What was your experience like acting in such an environment and how did it differ from previous roles? I've worked with this type of thing before so it wasn't too scary. I actually really enjoy working with a VFX team and helping to create something using our entire collective imagination. It's truly incredible to see what they achieve long after you've left the process.
Were you a fan of the Godzilla or Kong films before joining this project? How does it feel to be part of their legacy? I feel like I've known these characters my whole life: they are such an integral part of cinema history. I've loved seeing them in all their different iterations over the years and of course being asked to perform alongside them - and even fix their teeth - is a huge honor!
The film will have some intense action scenes. Can you describe one of your most memorable moments while filming these scenes? While it's not the most intense scene, the way my character is introduced - rappelling from a floating vehicle into Kong's mouth to perform large-scale dental work - was one of the more exciting stunts I had to do!
How do you think fans of the franchise will react to Godzilla x Kong: The new empire? What can they look forward to most? I want them to enjoy the ride! You'll see things you've never seen before and meet some fantastic new creatures and characters, but also maybe some familiar fan favorites...
You also have the film "ABIGAIL" coming out in April. Can you tell us a little about filming and what audiences can expect? This is a completely different kind of thrill! Essentially, it's a vampire ballerina heist movie - you know the kind - directed by the Radio Silence guys, Tyler Gillett and Matt Bettinelli-Olpin, who specialize in a particularly wacky brand of horror-comedy that I love .
“CUCKOO” will also be released in the summer. What particularly interested you about this film? Tilman Singer, the director, is a truly exciting new voice in cinema - he has a very distinctive style that is so captivating and artfully disturbing. I was also very curious to work with Hunter Schafer, the lead actress of Cuckoo, who is such a bright and brilliant artistic soul.
Your career is so dynamic. How do you go about choosing a role? I crave variety, challenge and surprise, so I'm often guided by the search for those things, but it can also be a certain quality in the writing, a desire to work with certain directors or actors. It's different every time!
33 notes · View notes
sunless-not-sinless · 1 year ago
Text
shitGPT
for uni im going to be coding with a chatGPT user, so i decided to see how good it is at coding (sure ive heard it can code, but theres a massive difference between being able to code and being able to code well).
i will complain about a specific project i asked it to make and improve on under the cut, but i will copy my conclusion from the bottom of the post and paste it up here.
-
conclusion: it (mostly) writes code that works, but isnt great. but this is actually a pretty big problem imo. as more and more people are using this to learn how to code, or getting examples of functions, theyre going to be learning from pretty bad code. and then theres what im going to be experiencing, coding with someone who uses this tool. theres going to be easily improvable code that the quote unquote writer wont fully understand going into a codebase with my name of it - a codebase which we will need present for our degree. even though the code is not the main part of this project (well, the quality of the code at least. you need it to be able to run and thats about it) its still a shitty feeling having my name attached to code of this quality.
and also it is possible to get it to write good (readable, idiomatic, efficient enough) code, but only if you can write this code yourself (and are willing to spend more time arguing with the AI than you would writing the code.) most of the things i pointed out to the AI was stuff that someone using this as a learning resource wont know about. if it never gives you static methods, class methods, ABCs, coroutines, type hints, multi-file programs, etc without you explicitly asking for them then its use is limited at best. and people who think that its a tool that can take all the info they need, and give it back to them in a concise, readable way (which is a surprising lot of people) will be missing out without even knowing about it.
i got it to write tic-tac-toe (the standard babee) in python (the lang i have to use for uni ;-; (held at gunpoint here)). my specific prompt was "write me a python program for tictactoe that is written in an object oriented way and allows for future expansion via multiple files"
it separated it into three files below (which i think would run, but i never actually ran any of this code. just reading and judging)
Tumblr media Tumblr media Tumblr media
why does board use display instead of __str__ and __repr__?
why is the board stored as 1d instead of 2d? thats just confusing
why does it never early return aside from check_winner? (not a big issue here but kept on choosing to never early return when i asked it to add more methods)
why is there no handling of non-number user inputs?
why are non-int inputs truncated instead of telling the user that they should input ints only?
why is display implemented like that?
why are so many lines so bloody long (wide)?
why is there a redundant self.check_winner() after the while loop in TicTaacToe.play()? and if it wasnt redundant then you could finish the game without there being anything printed telling you that the game is finished?
why is the only comment useless? (this comment wouldnt be useless if it was a doc comment tho, but it aint a doc comment. speaking of, why is there no doc comments?)
these are the more immediate things i saw, but there are other things that are bad here.
whenever i write * this is where it updated the api without changing any usage of the api.
so i ask it to change board.display into __str__ and __repr__, it changes it to __str__*, it does not add a __repr__. asking it to add a __repr__ 1) removes the __str__ and 2) gives me this (the other methods are unchanged)
Tumblr media
what. the. fuck. this would imply that board takes in an argument for the boardstate, but it clearly doesnt. after 4 more asks it finally has both __str__ and __repr__, without fixing the fact its implying board takes an optional arg, so i get it to add this arg. anything that needs to print the board still calls display btw.
the reasoning it gave for using display over the repr and str magics was this
While using __str__ and __repr__ is a more idiomatic approach in Python, choosing to have a separate display method can still be a valid choice, especially if the display logic is more complex or if you want to keep the __str__ method for a more concise or formal representation of the object.
which, erm what? why would __str__ be for a concise or formal repr when thats what __repr__ is for? who cares about how complex the logic is. youre calling this every time you print, so move the logic into __str__. it makes no difference for the performance of the program (if you had a very expensive func that prints smth, and you dont want it to run every time you try to print the obj then its understandable to implement that alongside str and repr)
it also said the difference between __str__ and __repr__ every damn time, which if youre asking it to implement these magics then surely you already know the difference?
but okay, one issue down and that took what? 5-10 minutes? and it wouldve taken 1 minute tops to do it yourself?
okay next implementing a tic-tac-toe board as a 1d array is fine, but kinda weird when 2d arrays exist. this one is just personal preference though so i got it to change it to a 2d list*. it changed the init method to this
Tumblr media
tumblr wont let me add alt text to this image so:
[begin ID: Python code that generates a 2D array using nested list comprehensions. end ID]
which works, but just use [[" "] * 3 for _ in range(3)]. the only advantage listcomps have here over multiplying is that they create new lists, instead of copying the pointers. but if you update a cell it will change that pointer. you only need listcomps for the outermost level.
again, this is mainly personal preference, nothing major. but it does show that chatgpt gives u sloppy code
(also if you notice it got rid of the board argument lol)
now i had to explicitly get it to change is_full and make_move. methods in the same damn class that would be changed by changing to a 2d array. this sorta shit should be done automatically lol
it changed make_move by taking row and col args, which is a shitty decision coz it asks for a pos 1-9, so anything that calls make_move would have to change this to a row and col. so i got it to make a func thatll do this for the board class
what i was hoping for: a static method that is called inside make_move
what i got: a standalone function that is not inside any class that isnt early exited
Tumblr media
the fuck is this supposed to do if its never called?
so i had to tell it to put it in the class as a static method, and get it to call it. i had to tell it to call this function holy hell
like what is this?
Tumblr media
i cant believe it wrote this method without ever calling it!
and - AND - theres this code here that WILL run when this file is imported
Tumblr media
which, errrr, this files entire point is being imported innit. if youre going to have example usage check if __name__ = "__main__" and dont store vars as globals
now i finally asked it to update the other classes not that the api has changed (hoping it would change the implementation of make_move to use the static method.) (it didnt.)
Player.make_move is now defined recursively in a way that doesnt work. yippe! why not propagate the error ill never know.
Tumblr media
also why is there so much shit in the try block? its not clear which part needs to be error checked and it also makes the prints go offscreen.
after getting it to fix the static method not being called, and the try block being overcrowded (not getting it to propagate the error yet) i got it to add type hints (if u coding python, add type hints. please. itll make me happy)
now for the next 5 asks it changed 0 code. nothing at all. regardless of what i asked it to do. fucks sake.
also look at this type hint
Tumblr media
what
the
hell
is
this
?
why is it Optional[str]???????? the hell??? at no point is it anything but a char. either write it as Optional[list[list[char]]] or Optional[list[list]], either works fine. just - dont bloody do this
also does anything look wrong with this type hint?
Tumblr media
a bloody optional when its not optional
so i got it to remove this optional. it sure as hell got rid of optional
Tumblr media
it sure as hell got rid of optional
now i was just trying to make board.py more readable. its been maybe half an hour at this point? i just want to move on.
it did not want to write PEP 8 code, but oh well. fuck it we ball, its not like it again decided to stop changing any code
Tumblr media
(i lied)
but anyway one file down two to go, they were more of the same so i eventually gave up (i wont say each and every issue i had with the code. you get the gist. yes a lot of it didnt work)
conclusion: as you probably saw, it (mostly) writes code that works, but isnt great. but this is actually a pretty big problem imo. as more and more people are using this to learn how to code, or getting examples of functions, theyre going to be learning from pretty bad code. and then theres what im going to be experiencing, coding with someone who uses this tool. theres going to be easily improvable code that the quote unquote writer wont fully understand going into a codebase with my name of it - a codebase which we will need present for our degree. even though the code is not the main part of this project (well, the quality of the code at least. you need it to be able to run and thats about it) its still a shitty feeling having my name attached to code of this quality.
and also it is possible to get it to write good (readable, idiomatic, efficient enough) code, but only if you can write this code yourself (and are willing to spend more time arguing with the AI than you would writing the code.) most of the things i pointed out to the AI was stuff that someone using this as a learning resource wont know about. if it never gives you static methods, class methods, ABCs, coroutines, type hints, multi-file programs, etc without you explicitly asking for them then its use is limited at best. and people who think that its a tool that can take all the info they need, and give it back to them in a concise, readable way (which is a surprising lot of people) will be missing out without even knowing about it.
40 notes · View notes
bharatpatel1061 · 2 months ago
Text
Static Typing in Dynamic Languages: A Modern Safety Net
Tumblr media
Content: Traditionally, dynamic languages like Python and JavaScript traded compile-time type safety for speed and flexibility. But today, optional static typing—via tools like TypeScript for JavaScript or Python’s typing module—brings the best of both worlds.
Static types improve code readability, tooling (like autocompletion), and catch potential errors early. They also make refactoring safer and large-scale collaboration easier.
TypeScript’s popularity showcases how adding types to JavaScript empowers developers to manage growing codebases with greater confidence. Similarly, using Python’s type hints with tools like mypy can improve code robustness without sacrificing Python’s simplicity.
For teams prioritizing long-term maintainability, adopting static typing early pays dividends. Organizations, including Software Development, advocate for using typing disciplines to future-proof projects without overcomplicating development.
Static typing is not about perfection; it’s about increasing predictability and easing future changes.
Start by adding types to critical parts of your codebase—public APIs, core data models, and utility libraries—before expanding to the entire project.
3 notes · View notes
c-cracks · 2 years ago
Text
Matrix Breakout: 2 Morpheus
Hello everyone, it's been a while. :)
Tumblr media
Haven't been posting much recently as I haven't really done anything noteworthy- I've just been working on methodologies for different types of penetration tests, nothing interesting enough to write about!
However, I have my methodologies largely covered now and so I'll have the time to do things again. There are a few things I want to look into, particularly binary exploit development and OS level security vulnerabilities, but as a bit of a breather I decided to root Morpheus from VulnHub.
Tumblr media
It is rated as medium to hard, however I don't feel there's any real difficulty to it at all.
Initial Foothold
Run the standard nmap scans and 3 open ports will be discovered:
Port 22: SSH
Port 80: HTTP
Port 31337: Elite
I began with the web server listening at port 80.
Tumblr media
The landing page is the only page offered- directory enumeration isn't possible as requests to pages just time out. However, there is the hint to "Follow the White Rabbit", along with an image of a rabbit on the page. Inspecting the image of the rabbit led to a hint in the image name- p0rt_31337.png. Would never have rooted this machine if I'd known how unrealistic and CTF-like it was. *sigh*
Tumblr media
The above is the landing page of the web server listening at port 31337, along with the page's source code. There's a commented out paragraph with a base64 encoded string inside.
The string as it is cannot be decoded, however the part beyond the plus sign can be- it decodes to 'Cypher.matrix'.
Tumblr media
This is a file on the web server at port 31337 and visiting it triggers a download. Open the file in a text editor and see this voodoo:
Tumblr media
Upon seeing the ciphertext, I was immediately reminded of JSFuck. However, it seemed to include additional characters. It took me a little while of looking around before I came across this cipher identifier.
Tumblr media
I'd never heard of Brainfuck, but I was confident this was going to be the in-use encryption cipher due to the similarity in name to JSFuck. So, I brainfucked the cipher and voila, plaintext. :P
Tumblr media
Here, we are given a username and a majority of the password for accessing SSH apart from the last two character that were 'forgotten'.
I used this as an excuse to use some Python- it's been a while and it was a simple script to create. I used the itertools and string modules.
Tumblr media
The script generates a password file with the base password 'k1ll0r' along with every possible 2-character combination appended. I simply piped the output into a text file and then ran hydra.
Tumblr media
The password is eventually revealed to be 'k1ll0r7n'. Surely enough this grants access to SSH; we are put into an rbash shell with no other shells immediately available. It didn't take me long to discover how to bypass this- I searched 'rbash escape' and came across this helpful cheatsheet from PSJoshi. Surely enough, the first suggested command worked:
Tumblr media
The t flag is used to force tty allocation, needed for programs that require user input. The "bash --noprofile" argument will cause bash to be run; it will be in the exec channel rather than the shell channel, thus the need to force tty allocation.
Privilege Escalation
With access to Bash commands now, it is revealed that we have sudo access to everything, making privilege escalation trivial- the same rbash shell is created, but this time bash is directly available.
Tumblr media
Thoughts
I did enjoy working on Morpheus- the CTF element of it was fun, and I've never came across rbash before so that was new.
However, it certainly did not live up to the given rating of medium to hard. I'm honestly not sure why it was given such a high rating as the decoding and decryption elements are trivial to overcome if you have a foundational knowledge of hacking and there is alot of information on bypassing rbash.
It also wasn't realistic in any way, really, and the skills required are not going to be quite as relevant in real-world penetration testing (except from the decoding element!)
9 notes · View notes
Text
Serpentine (Natasha Romanoff x OC) - Chapter One
———————————————————————— ————————————————————————
SHIELD PERSONNEL C-019831690 RESTRICTED ACCESS: Director's Permission Required ———————————————————————— File Type: Mission Report (102) - Incident Report (67) - Witness' Statement (23) - Personal (56)
Load Personal.1b? Yes or No Transcript Available. Display? Yes or No
L O A D I N G . . .
———————————————————————— ————————————————————————
On a dreary night in Brooklyn, Director Nicholas Fury of S.H.I.E.L.D. walks with a stiffness in his step and a grimace on his face.
His dark coat catches the light mist that has settled on the sidewalk with every footfall, spinning it in clouds around his feet that exaggerate their militaristic gait. The director's gloved hands are shoved in stiff, leather pockets to avoid the light drizzle which leaves beads of water rolling down his shoulders. The man's eyes dart from left to right, analysing every movement however slight it would seem to the usual passerby.
Overall, his silhouette emanates an aura of danger that most on the street shy away from.
However, looking closely enough, nearly imperceptible anxiety reveals itself in the stiffness of his shoulders. It is only once Fury approaches the emerald green door of a white brownstone on Carroll Street that he lets his habitual grimace fall and — after one final scan ahead and behind — makes his way to the stoop.
He raises a hand to knock.
As expected, the door swings open before he can touch it to a dimly lit and noticeably empty entryway. The only indication of anybody home is a scratchy record of Guy Lombardo's "Give Me the Moon Over Brooklyn" playing jovially beyond his line of sight.
Although the director quickly glances past the threshold, he seems to anticipate that he doesn't find anyone there to greet him. Instead, it is only the slight creak of shifting weight on wood that alerts him to the presence of his host.
"Lovely to see you, Nick. Boots off and set by the door, coat on the rack. I'll start a pot," calls a dulcet, strangely accented voice from further inside the apartment.
Fury lightly scoffs, but steps through the door and shrugs off his coat anyway. He considers the gun holstered against his hip, wondering if he should leave it at the door or-
"Additionally, you can drop that paranoia of yours. It's giving me a headache," the voice calls once again, assuring him of the decision he should make. "Rest assured that no one with less than savoury intentions walks this street without me knowing about it."
The man rolls his eyes, all the while hanging his coat — holster and gloves, as well — as per her request and making a point of closing the door with a sleeve pulled over his bare left hand.
"I see you haven't looked into the term 'welcome wagon' like I asked," Fury calls back to the disembodied voice, his own touched with a hint of annoyance.
Without any sound this time to signify her nearness, a woman suddenly passes in front of him with a coffee filter in her hand and a smirk on her lips. Her alabaster complexion blends perfectly with short hair too white to be natural, so much so that he almost doesn't notice the equally pale ball python resting at her throat.
"Can't say I have, Nick. Now, I know removing your coat must've been quite distressing, but the boots need to go too. House rules."
Fury glares at her slightly, but nonetheless pulls off his boots. A triumphant edge to her smirk appears as he does, but it vanishes the moment he stands straight and theatrically gestures to his boots, which now sit neatly on a tray by the door.
"Thank you, kindly," the woman quips before turning swiftly into the area to the right of the doorway, gesturing for her guest to follow.
As he trails behind her, Fury isn't surprised to find that the house still reflects her severe appearance. Everything is in some shade of black, white or green, barring a few small accents of a brilliant amber, and every piece of furniture is either antique or meant to look that way. His host is certainly an old soul, though much more literally than most people realise.
Fury eventually settles onto a sofa next to the record player, which has moved on to another song. In the kitchen across from him, the woman begins to scoop coffee grounds into the filter with her left hand, the snake now curled around her right. Against the deep black of her attire and the cabinetry, she and the python seem to eerily glow in comparison to their surroundings.
"Now, milk? Or are we brooding and taking coffee black today?"
Fury sends a look to his host's back, which she holds calmly after gracefully pivoting to meet it. A short staring match later, her opponent relents begrudgingly.
"Milk."
His host's eyes brighten slightly as she turns to finish her task without another word.
In the meantime, the director continues to scan his surroundings. After a moment, his eyes come to rest on the small table in front of him, and something atop it prompts him to raise a brow curiously.
"So... you knew I was coming?"
The woman is confused by his meaning at first, but realises as she approaches the coffee maker that a fresh pot already sits inside of it. She looks perplexed for a moment, but nonetheless exchanges the filter in her hand for a mug. After pouring the still steaming drink, she makes her way to Fury only to notice that milk and sugar have already been laid out as well.
She sets down his coffee soundlessly and takes the seat adjacent from him with nothing more than a shrug.
"It would seem that someone did," she says lowly, a small smile masking the annoyance that lingers in her eyes.
Fury nods slightly. He seems to understand the meaning behind her cryptic statement, but nonetheless continues to eye her carefully.
"And yet, even with a warning, that blasted snake is still here."
The woman's amber eyes snap to his, issuing a challenge that she knows neither of them would like to lose.
"Oh, hush. Trygve is a perfectly respectable snake, and better company than you could ever be."
As if to prove a point, the python -- Trygve -- flicks her tongue and 'kisses' her owner's cheek.
Fury chuckles, crossing one leg over the other and draping an arm over the back of the couch. He's relaxed slightly, a feat not many people could hope to achieve while hosting the notoriously paranoid man. It's a strange look on him, for sure, but a welcome one all the same.
"If that thing is better company than I am, I want to hear it tell a joke. I suppose I could concede to slam poetry if it was really good," he jokes lightheartedly.
In response, the woman teasingly lets the snake glide between her hands and watches Nick's eyes follow it nervously. After a moment, she lets Trygve settle around her neck once again and her guest into his seat.
"Don't worry, Nick, I'm only teasing. Tryg could never compete with your sunny disposition, and while her slam poetry is quite good, I'm not sure her jokes are up to par." Fury's eyebrows raise the smallest bit, sensing something tricky in her compliment. Even so, he knows better than to interrupt. "However, you should still call her by her name. It's rude not to."
"I'm sure the snake is incredibly offended," Fury deadpans.
"Oh, she'll be inconsolable for days. Perhaps you should give her a fuzzy as a recompense?"
The man immediately cringes, but expertly hides it by leaning forward in his seat.
"I am not touching her, nor will I be touching anything that goes in her mouth."
"Too squeamish?" Fury looks mildly insulted, so she happily continues. "You've no problem with shooting a person, but deceased infant mice are too much for you to handle?"
The director puffs out his chest and sends her a challenging glare.
"I don't have to touch people to shoot them. That's how guns work." The woman across from him looks unconvinced and on the verge of laughter, which only gets him more worked up. "I also don't feed those people to snakes once they've kicked the bucket!"
"So it's the fact that it's dead?" she says with a marginally darker smirk than before. Her hand moves toward the hollow of her throat. "It doesn't have to be."
The director instantly points a warning finger at her.
"You are not-" he starts, but stops as he sees her smile widen mischievously. "What exactly are you trying to accomplish here?"
The trickster proudly raises her chin a touch.
"Absolutely nothing. Just wanted to see how long I could get you to talk about your fear of snakes — and rodents, apparently — before you noticed," she says arrogantly, relishing the look of disbelief that appears on Nick's features before he ultimately slips away from his usually calm and collected demeanour.
"Why are you so determined to mock me every time I come into your house? First it was my badge-"
"You weren't looking at the camera."
"-then it was the eyepatch-"
"Now, you can't blame me for that."
"-and now it's my thing about mice. Why I continue to-"
Neither says anything as the blonde proudly leans back in her seat. A pregnant silence ensues, neither party willing to concede, until Fury slowly leans forward to rest his elbows on his knees. His tormentor does the same, narrowing her eyes and fashioning her expression into one of mock seriousness.
"Alex, if you say anything about this, to anyone, and I will personally throw your ass out of the Helicarrier."
"Not to worry, director. My lips are sealed," she says cheekily.
Fury tries to decide if she's being truthful or not as she bounces back into her previous position, but his companion — Alex — pulls herself out of her seat before he can decide. She moves to a large terrarium against the wall and carefully sets Trygve inside of it before turning back to see Nick finishing off the last of his coffee. She holds out an expectant — albeit hesitant — hand, but he waves her off and gets up. Instead of letting his host handle the dishes, Fury moves toward the nearest sink and washes out the mug, purposefully using his sleeves to touch the faucet, and carefully sets it on a drying rack.
Alex approaches and rests a hip against the counter, her serious expression noticeably more genuine than before.
"Not that I don't enjoy your visits, but why are you here, Nick?" She asks, her mixed accent warping the words slightly.
The man sighs and crosses his arms heavily.
"Coulson called about a situation at PEGASUS — said that Selvig is having some issues with the Cube. I don't have much more than that, but I figured you'd want to be there when we take a look at it."
She nods, unsurprised by the news.
"I would. I trust Selvig with it, but... my being there would at least provide a safety net if something goes awry."
"My thoughts exactly," Fury affirms, but watches curiously as the woman whom he'd come to know as a friend goes the slightest bit rigid. He takes note of where his hands are and realises that he'd absentmindedly rested one on the counter.
When he removes it and wipes the spot with his sleeve, Alex relaxes a bit and begins moving toward the front door. Fury follows and begins to gather his things.
"Well then, consider my time off interrupted. Just know you'll have to answer to Natasha when she gets back," she remarks stiffly, although some humour slightly slips back into her voice.
Fury, having not considered those particular repercussions of pulling Alex from their little hideout, stops halfway into tying his boots.
"Will she be in a good mood?" he asks.
Alex chuckles in response.
"She's doing a reverse interrogation this time around, so you might get away with your life."
"Good to know." Fury pivots once they reach the foyer, once again stoically staring down into his hosts unnaturally amber eyes. "I'll give you 10 minutes. Car's outside when you're ready."
"I'll be there in 5."
With that, Nick quickly throws a mock salute her way. She returns it with a practised grin and watches him get into a black van. Only when he disappears behind the tinted windows does she shut the door and get to work.
The ghostly girl wastes no time taking several wipes from a container by the door and meticulously disinfecting the doorknob and coat rack, then retreating back into the sitting room to wipe down any and all of the things that her guest had touched. After giving the same ritualistic treatment to the kitchen in turn, she goes to Trygve's terrarium and checks the humidity gauge along with a chart which ensures she's been fed recently.
Once satisfied with the state of the two more pressing rooms, Alex takes a box of tea from the counter and ascends a staircase that hugs the wall of the entryway. Once on the landing, she glides into the bathroom to retrieve a small pouch, inside of which are more wipes, various disinfectants, and gloves. In addition to the pouch, she retrieves a bottle of pills and another case from the medicine cabinet.
With too many things balancing in her arms, Alex next enters her bedroom. After dropping her collection of items and some extra clothing into a leather suitcase, she slides a pair of black gloves onto her hands and makes her way back to the bottom floor. Once there, the woman pulls a small glass rectangle from her pocket which lights up and reveals itself as a high-tech cell phone.
Alex scrolls through her contacts until clicking on one labelled 'Itsy Bitsy', which is settled quite near to the top.
Today 9:54 PM
"Time off interrupted yet again. Heading out to PEGASUS. See you at base."
"O.K. I'll give the boss a pummeling for you when I get back :)"
"Try not to kill him, will you?"
"I make no promises. Be careful <3"
"You too, love. See you soon."
Read at 9:57 PM
A content smile appears on Alex's lips as she grabs a coat from the rack and shrugs it on. Just as she's next slipped on a pair of flats and reached for the doorknob, her eyes are drawn back to her record player. Regardless of the fact that it will stop on its own, Alex walks over to halt the track and slide the record into its case. Once more she almost moves toward the door, but stops abruptly with a conflicted look on her features — after a few moments of pondering, she turns back to her record collection.
It takes a few moments of shifting things around, but she finally pulls out a worn record of Nick DeFrancis' "Fly Me to the Moon" and carefully turns it over to reveal a small note on one edge of the casing.
Still waiting! Love, Howie.
Regardless of the cute nature of the note, not even a flicker of a smile appears on her face. Instead, Alex simply places the gift at the base of her briefcase before turning off the lights and exiting her apartment with haste.
————————————————————————
When Alex eventually spots his car, she looks inside to see a freshly wiped seat and an impatient Nicholas Fury. She slips in and sets the briefcase at her feet while Fury puts the car into gear.
"Thank you, Nick," she says quietly. 
He seems to notice the shift in her mood, but doesn't say anything about it.
"Well I've gotta keep you happy somehow, or you might make the Tesseract blow up on purpose."
"It'd take a bit more than not wiping down a seat."
"You gonna let me know where the line is?" he inquires while blatantly running a red light.
The woman looks over at him with a raised brow.
"Somewhere between running a red and kicking a puppy," she scolds.
Nick simply looks over at her with an innocent smile.
"I'll be sure to stay away from puppies, then. Can't let myself get tempted."
"That's awful."
"I wasn't the one who brought it up!"
Finally, a short laugh escapes Alex's lips as she shakes her head.
"I suppose we can call it a tie, then."
Fury seems to accept that answer, so he turns his attention back to driving. A comfortable silence blankets the air between them. Alex turns her head to look out the window and spots Stark Tower rising above the Manhattan skyline. She wonders for a moment whether the gaudiness of the building truly reflects the character of the man who inhabits it. From what she'w heard from Natasha, it certainly did.
Then again, she has more than enough reason to doubt that.
"So, how was time off treating you before I showed up?" Fury asks, breaking the silence and pulling Alex out of her wonderment.
She sighs somewhat defeatedly.
"It was alright. Very quiet, but I suppose that was the point. Anyhow, it's not getting any less irritable."
Fury grimaces a bit, but doesn't let his disappointment show too much.
"Have you found anything that calms it down?"
Alex thinks for a moment, but Nick can immediately tell that she isn't coming up with much.
"As of right now, very few things. Natasha's started teaching me ballet, and it seems to enjoy her company, so that's a step in the right direction. Other than that, though..." Nick gives her a look, which she returns. "Look, I'm managing it. Not particularly well, but I am. It's proving to be a bit difficult, as per usual."
Alex's eyes flare a brighter yellow for a moment and her attention goes elsewhere. Her eyes roll at nothing in particular.
Nick carefully averts his gaze and sighs heavily.
"What are the chances of you just... talking to it?"
"I do talk to it — I am talking to it — but I won't be giving it free rein until I know it isn't going to react like that every time it thinks I'm being threatened."
"From what you've told me, that's next to impossible," Nick responds carefully.
Alex lets her shoulders drop, discouraged.
"It's going to have to adjust. As much as I know it's only acting on its nature, it can't be lashing out at people that don't deserve it."
She looks guilty — afraid, even — as she says it, and Nick can't help but notice. He grips the steering wheel a bit tighter.
"Alex, I'm gonna be straight with you. I'd like you back in action as soon as possible, and being alone isn't going to make this situation any better."
The girl's eyes widen and her head cocks to one side, imagining all of the ways that the arrangement he's imagining could go wrong.
"As long as it's being this protective, I'm not sure I trust it around people," she says hesitantly.
Nick chuckles a bit.
"The people you spend time with aren't necessarily breakable. I'm sure they could handle a few days of readjusting."
Alex looks out the window once again, contemplating his words. She knows he's been right about most things of this nature in the past. However, there is an ever-worsening sensation in her gut that tells her this might be one of the rare occasions that he's wrong.
She takes a deep breath in and out before settling on a decision.
Don't think this means I'm not still mad at you.
"Fine. But if someone else gets hurt, it'll be on you."
"I trust you won't let that happen."
Unfortunately, Alex knows that his trust means very little to the voice in the back of her head, and it's not at all worried about breaking it.
———————————————————————— ————————————————————————
A/N: Hello everyone! Please remember to vote and comment if you are enjoying the story, as updates will heavily depend on interest. Welcome to Serpentine! (Note: This is reposted from my Wattpad account. Please do not repost without giving credit or replicate in any way.)
2 notes · View notes
infernovm · 6 days ago
Text
Get started with Python type hints
Python is best thought of as a dynamic but strongly typed language. Types aren’t associated with the names of things, but with the things themselves. This makes Python flexible and convenient for developers because you don’t have to rigorously define and track variable types if you’re just throwing together a quick-and-dirty script. But for bigger projects, especially libraries used by third…
0 notes
codingprolab · 13 days ago
Text
CSC 4222 Programming Assignment 2
Write a software key-logger and test it while you fill out a web form or type in the contents of a document using your favorite document preparation software. You can use Java or Python to do this assignment. C and C related programming language is not allowed for this assignment. Hints: You can find a demo and API for key-logger hook in the following link for JAVA.…
0 notes