Tumgik
#fr familiar bracket
fr-familiar-bracket · 4 months
Text
Tumblr media Tumblr media
374 notes · View notes
relatableblorbopoll · 5 months
Text
Round 1 of preliminaries, group 6
Tumblr media
The first two places get a place on the bracket
Little reminder: there will be 2 more rounds of preliminaries, the losing blorbos of this poll still have 2 chances of getting in the official bracket
propaganda under the cut
Jesper Fahey (Six of Crows)
No Propaganda
Crowley (Good Omens)
"He's gender. He's been in love with one guy for literally 6000 years and then royally fucks up his entire confession. He yells at his plants. He drapes himself over every fucking surface he sits on. He walks like *that*. He just fuckin makes sounds sometimes. He's me fr."
Dave Strider (Homestuck)
"everything that can be said about Dave's relatability will probably sound redundant, clichéd, or overdone if you are at all familiar with tumblrs sort of blorbo culture. this is exactly why he should be in this tournament.
stop me if you think that you've heard this one before: he hides his genuine emotions behind a persona, deflects sincerity with jokes, but also has a deep desire for validation and connection, so that his persona has many cracks where little bits of his true self slip through. deeply insecure, compares himself to others. a defeatist streak, avoids responsibility. does not wish to be troubled by The Horrors. he just wants to hang out and do his lil creative hobbies (making music and drawing comics). talks a lot to the point of being pretty awkward, rambling, and accidentally saying stuff he shouldnt.
all these things I think tend to resonate deeply with a lot of people, especially on Tumblr - that "person who is insecure and struggles with emotional openness so copes by making jokes" sort of trope, it's just like kin bait (affectionate). he also has a complicated relationship with gender which I know many find relatable (shout out to the "Dave homestuck was my trans awakening" homies) but whether it's about figuring out gender or sexuality or trauma or the apocalypse or anything else, Dave comes at it with an initial, learned, fear and reluctance that I think a lot of people have experienced, because it's very human and very much a part of many readers experiences (we live in a society). but he's always good, and likeable and that makes for a very important sort of relatable character. very comforting. even if he's a mess and he's an idiot you can believe he can get to something better, and you can watch him develop and grow.
also, I think he's extremely relatable because he never really knows what's going on in the comic either. I mean, that's gonna be relatable to most people Vis a vis homestuck. he's confused and he just wants to vibe and make his friends laugh. WHO AMONG US cannot relate?? I do not believe you if you say no.
I wrote too much and got way too weird about it. I'm sorry it's late I'd edit down but I really don't have the brain capacity.. which is very Dave core of me actually"
Junior (Total Drama Presents: The Ridonculous Race)
"i relate to him a lot because his whole character is being embarrassed of his dad who tries too hard to be cool, but still loves him anyways. that is literally me"
Kim Dokja (Omnicient Reader's Viewpoint)
"kim dokja. oh kim dokja. so, without going into spoilers too much, kim dokja is very much a character you are expected to relate to and it makes the novel DEVASTATING. here's just a few things about him: - he is obsessed with a particular piece of media, and finds comfort in it when real life doesn't give him any. he's constantly thinking about it and defending it and trying to recommend it to other people (even though no one else bothers reading it, because it is an objectively bad 3000-chapter webnovel). even beyond that one novel, he's been using fiction as an escape for just about his entire life, something that rings true for a lot of people, especially in the modern world. - he struggles with socializing with other people. the first chapter alone gave me so much second hand embarrassment. it's so real but god it's So bad. he has zero friends and has that sort of loneliness where you're miserable but you can't really bring yourself to feel anything but resigned to it. in general he is just very Resigned to his unfortunate life and can't fully understand or accept it when it finally does get better - he has a complicated relationship with his mother. it's the kind of relationship where the parent genuinely does love their child, but they fail to give them what they need & have to accept that they hurt their kid and that they cannot be the most important person in their life. it's certainly not a universal experience but those sorts of parent-child relationships are woefully common but scarcely acknowledged -the insecurity. god there is so much insecurity in that man. it's hard to even completely tell it's there at first, because it's so ingrained in how he thinks that you don't question it until you know more about his character and suddenly it's all too apparent. he cannot believe that he can be loved (or, if that he can be, that they certainly would not be able to love all of him, only what he chooses to show them), and is selfless but like. the literal meaning of the word, where he will throw away all of his being for the people he loves. in general there is a lot of sacrifice as a love language which like. while i'm not off around throwing myself in front of magic death beams for people or anything i sure would give up everything i could if it meant helping the people i love - ok enough of that. here's some funny things i can relate to. the guy meets his favorite fictional blorbo and instead of worshipping him instead he bullies him constantly and internally complains about how unbearable he is both in the book and in real life. it's like a "i love my blorbo. i would not last 2 seconds in a room with him." You know. he gets so caught up in his fanon characterizations and biases about characters that he completely mischaracterizes them like constantly. he literally kills a guy half because he was his least favorite character. -this is a poll about blorbo relatability. therefore i must mention that kim dokja too related to his blorbo (or at least attempted to) and what is more relatable than that. anyways. kdj made me realize far too much about myself and is by far the most i have ever related to a character (and i Hate it). and tumblr would definitely relate to him too so :thumbs-up:"
"(SPOILERS) He is literally all of us. Reader. Just some guy. And then insane tragic backstory. But he’s also just some guy. He’s special and also just a guy. He’s also god. He can be shipped w anyone. He has versatility and interests and motivations. He also never tells anyone anything ever. He is so me."
"He reads a trashy, long-ass novel as a coping mechanism and doesn't think he's capable of being loved. Bro dissociates when he's emoting too much."
"I'm a homestuck fan, a Dave Strider fan even Never heard of Omnicient Reader's before Voted for the kim fellow because judging by the propaganda it looks like he himself would be a homestuck reader therefore making him more relatable than the homsetuck character himself"
"This guy’s been my companion since I was 11, I’ve grown up with Omniscient Reader’s Viewpoint and I think that’s pretty funny since he grew up with Ways of Survival (the 3149 chapter novel) and therefore I’m straight up mirroring him. I, too, scare everyone off by being too enthusiastic whenever the webnovel is brought up! His insecurities are severe but I do see myself in some parts of him (which is worrying but whatever.) He is absolutely The Guy Ever. Utterly pathetic wet cat of a man. I love him. He represents the crazy fandom tumblrina in all of us."
Donutella (Tokidoki)
"she's made of donuts basically like me at this point"
91 notes · View notes
tuxedo-floracat · 4 months
Text
i am already taking the familiar poll bracket thing way too seriously/personally lmao it didn't occur to me that i would , in a way, end up a contender XD like i know that it is not meant to be me but since that's both my fr username and fr tumblr name it feels like its me in there. idk i'm just overreacting dont mind me lol
4 notes · View notes
khayria-fr · 3 months
Text
@/fr-familiar-brackets got me feeling like i probably have bad taste 💀 the ones i don't vote for are usually the ones winning lmaoo
5 notes · View notes
apokalypse-arisen · 8 days
Text
the fr familiar bracket is telling me that everyone else has poor taste smh 😤
0 notes
eyevo-lution · 6 months
Text
The Complete Guide to Picture Installation and Hanging Systems
Introduction:
Decorating your home with beautiful artwork is a wonderful way to add a personal touch to your living space. However, hanging pictures on the wall can sometimes be a daunting task. In this comprehensive guide, we'll cover everything you need to know about picture installation, various picture mounting systems, and the step-by-step process of hanging a picture on the wall. Whether you're a seasoned art enthusiast or a novice decorator, this blog is here to help you achieve the perfect display.
Section 1: Picture Installation 101
Before we delve into the specifics of picture mounting systems, let's start with the basics of it. Proper installation is essential to ensure your art is displayed safely and beautifully.
1.1. Assess Your Wall:
Before you begin, take a close look at the wall where you plan to hang your picture. Consider factors like wall material (drywall, plaster, brick), wall condition, and the weight of the picture.
1.2. Choose the Right Location:
Select a location that complements the artwork and suits the room's overall design. Make sure it's at eye level for the best viewing experience.
1.3. Gather Your Tools:
You'll need essential tools such as a measuring tape, level, pencil, hammer, nails, anchors, or the appropriate hardware for your chosen picture mounting system.
Section 2: Picture Mounting Systems
Now, let's explore different picture mounting systems to help you find the one that best suits your needs.
2.1. Traditional Hooks and Nails:
The simplest and most common method, using hooks and nails, involves securely attaching your picture frame to the wall. Ensure you use the right hardware and follow weight guidelines.
2.2. French Cleats:
A French cleat system consists of two interlocking metal or wooden brackets, providing stability and flexibility. It's ideal for heavier frames and prevents tilting.
2.3. Gallery Rails and Hooks:
Gallery rails are mounted along the wall, allowing you to hang pictures from adjustable hooks. This system offers versatility and ease of rearrangement without damaging the wall.
Section 3: Step-by-Step Guide to Hanging a Picture
Now that you're familiar with system picture and various mounting systems, let's go through the process of hanging a picture on the wall.
3.1. Measure and Mark:
Measure the desired location, keeping the center of the picture at eye level. Use a level and pencil to mark the exact spot where you'll install the hardware.
3.2. Install the Mounting System:
Follow the manufacturer's instructions for installing your chosen mounting system. Ensure it's level, stable, and properly anchored to the wall.
3.3. Hang Your Picture:
Carefully hang your picture on the installed system, making sure it's level and secure. For larger or heavier frames, it's a good idea to have a helper hold the frame while you attach it.
3.4. Adjust and Perfect:
Step back and assess the placement of your artwork. Make any necessary adjustments to ensure it's centered and at the right height. Attention to detail is key to achieving a visually pleasing display.
Section 4: Additional Tips for Picture Hanging
Here are some extra tips to ensure your hang a picture on the wall is flawless:
4.1. Group Artwork: Arrange similar artwork together for a more cohesive look. Grouping can be based on style, theme, or color.
4.2. Create a Gallery Wall: For a dynamic display, consider creating a gallery wall with an array of differently sized frames and styles.
4.3. Picture Ledges: Picture ledges are a versatile and damage-free option for showcasing art. They allow for easy changes and adjustments.
4.4. Lighting Matters: Proper lighting can enhance the beauty of your artwork. Consider adding spotlights or track lighting to highlight your pieces.
Conclusion:
With this comprehensive guide, you're now equipped with the knowledge and skills to install and hang pictures with confidence. Whether you're using traditional hooks and nails, a French cleat system, or gallery rails and hooks, the key is to plan carefully and execute the installation method that best suits your needs. Your home will soon be adorned with beautifully displayed artwork that reflects your style and personality, creating an inviting and aesthetically pleasing environment for you and your guests to enjoy.
0 notes
cosmicoceans-fr · 1 year
Text
Personal Lore Stuff
General Edition
First a disclaimer: A lot of my lore is just gonna be tweaking things about Flight Rising/Sornieth that I just don't like/vibe with, so if that'll bother you I advise not reading further.
Disclaimer part two: Some of the stuff mentioned here may already be canonical and I either A. haven't read about it yet (in which case feel free to shoot me the relevant readings ^^), B. I'm incorporating and expanding on it, or C. Incorporating and altering it.
Punctuation usage note:
Parenthesis () are used to signify a related but seperate thought to what they're grouped with.
Brackets [] are used as a form of authors note.
Now to begin: This is largely just going to be one chaotic info dump of all the stuff living in my head rn so I can come back and organise/edit it later but also so I can link it in my pinned cause I use verbiage that relates to my personal lore and figured this'd help anyone who might be confused.
Auction House is now:
Travel Listings
Name is a work in progress but the basic idea isn't.
The current system of dragons being put up for auction didn't really sit well with me [I understand it's function as the FR game itself goes don't at me please] so after some mulling it over I settled on Travel Listings!
The general idea is that dragons who are looking to relocate either to a new Clan within their own flight (flight AH) or just anywhere on Sorienth (Site-wide AH) can post the travel costs for them to do so with their stuff. When a Clan who's willing to sponsor the fees for the dragon posts them the dragon is then able to move in with the Clan!
This helps maintain the autonomy that dragons have as established in canon lore as well as giving the world a fun "new" mechanic [in my opinion at least]. In addition is use this as a basis for my pricings. If I consider the cost listed alongside each dragon as travel costs it let's me make some base costs guides based on things like breed, gene rarity, eye rarity, and in the event of a one-on-one arranged travel fees the cost for "luggage" (ie familiars, outfits, etc. which, btw, if you arrange for a dragons travel with me directly they'll almost always come with luggage).
The above is why I might seem to price travel fees a little weirdly and while I'm ok with the prices being a little funky I do want to be fair so if I unintentionally price something outrageously please let me know! ^^
Familiars
Familiars being listed as and treated as items within the game canon bugs me a bit as many of if not most/all of the familiars are canonically described as having sentience (sentience in this case meaning being living) them being treated as items isn't great for me.
Similar to Travel Listings I'll price/talk ahout/treat familiars with the same/similar verbiage. Familiars get travel fees as well albeit less involved than dragons might.
Familiars will also be treated as thinking beings who've choosen to come stay with our Clan for xyz reasons within lore contexts.
This leads me into my next bit:
The Coliseum
I'm not 100% posi on the canon lore surrounding Coli stuffs but the stuff I've developed whilest grinding in it as follows:
The Coliseum was started by [unestablished] as a way for dragons and beast clans to, hopefully, find some common ground.
Each coli arena/area is a neutral sparing ring/arena set up in each of the diff regions.
All who come to them agree to leave past issues/agressions/conceptions at home and have acknowledged that they are there to learn from eachother, as well as to have a good time. Each person who enters the Coli area agrees to do their part to ensure a friendly and (relatively) peaceful enviroment for all participants.
To be chosen to represent your Clan in the coli is considered a high honour by most involved and the importance of its neutrality is widely established/acknowledged. In the spirit of this many participants, dragon and beastclan alike, will bring gifts/offerings for their opponents [the coli drops]. Some participants might even find that they vibe/work really well with a clan/it's members and as such will choose to return with those dragons to their clans [familiar drops].
Due to the nature of the Coli its generally frowned upon for participants fo significantly higher levels to enter a match against participants of much lower levels [lack of exp gain], the exception to this are for teams who have come specifically to share their knowledge with those at lower levels [this parts honestly just so I can grind lower levels with my lvl 25s and not feel so bad about it 🤣].
Aaaaand that's about all I've got at the moment, there's other stuff that's dragon/breed line specific that'll be its own post(?).
1 note · View note
Text
Open Commissions
 So I’ll eventually be making a new organized sheet (my current was a bit of a headache to look at imo, and the prices are out of date) so in the meantime here’s some basics.
 I’m in need of cash, more than I make working part time can give me. Lots of bills and primarily saving for some procedures I need to have done that my not having insurance makes a problem. If you want to ask me about it, feel free, but I’ll save you all the details here. 
Terms of Service
Commission Form
Paypal
Ko-fi  (Like my content? Toss me a tip to show your appreciation!)  
GoFundMe   -(personal and unrelated, but I will offer sketches for donations as well)
[[Please reblog for signal boost! I need all the help I can get and while I appreciate likes, it doesn’t help me reach a wider audience! Thanks!]]
Commission types and examples under the cut
============= Illustration ==============
Clean Sketches~~
Tumblr media
(Can be traditional or digital)
Headshot $5
Bust $10
Halfbody $15
Fullbody $20
Additional people (by above bracket) +$1, +$5, +$5, +$5
Complexity may increase price
Lineart~~
Tumblr media
(Traditional of Digital)
Headshot $10
Bust $15
Halfbody $20
Fullbody $25
Additional people (by above bracket) +$5, +$5, +$10, +$10
Complexity may increase price
Flat Colors (w/ optional basic shading)~~
Tumblr media
(Can be traditional or digital)
Headshot $10
Bust $15
Halfbody $20
Fullbody $25
Additional people (by above bracket) +$5, +$10, +$10, +$15
Complexity may increase price
Painting~~
Tumblr media
(Digital only)
Headshot $20
Bust $25
Halfbody $30
Fullbody $40
Additional people (by above bracket) +$10, +$10, +$15, +$20
Complexity may increase price
GIFS~~
Tumblr media
 (Digital only for painted, traditional available for sketch and line gifs)
More samples
Price varies from $5-$30 depending on the amount of detail, frames and size you want it, however the gif will either only be a messy sketch, a lineart or flat colors only. HMU if you want to discuss. (I will be doing a separate post on a sale I’ll be doing for gifs)
=============  Writing  ==============
 One shots //  >1000 wc // $10
 Poetry // >500wc // $5
Short stories // >5000wc// $20
Samples
 Price may vary depending on how many edits are desired, and how many ‘chapters’ are desired. WC = word count. It’s not an exact amount but it’s generalized and will often roughly be up to the amount listed or less. I will never do much less or more than the listed amount. Though it is more likely I will go over than under. I’m a slut for detail, if I do over I will not charge an extra amount for the time.
 i will need a theme, topic and the characters involved if it’s about someone or something i’m unfamiliar with. Feel free to ask. If it is regarding an OC of yours then be prepared for riveting one sided game of 20 questions and to have some extensive detail ready for me so I might become more familiar with the characters I’ll be building a story around.
=============  Voice Over ==============
Audio clips // $1-$5
Personal messages // $10
Readings // $5 (10 min); $10 (15 min); $15 (20 min); $20 (25 min) – ect
Hire out for personal projects // DM for more information
Extra audio filters/effects: +$5
Samples
All audio cost is based on raw unfiltered audio. I will clean up any extra background if needed, but will leave it completely raw. If you want bgm, sound effects, or any other extra detail to go into the editing process the base price begins at $5 but may increase depending on how much you want me to add in post. Everything can be discussed and come to an agreement via DM, I am open to cutting deals and finding a number we can both be happy with. But just like drawing or writing, voice work is exhausting and takes time to get right, and is just as much a skill as any other creative work.
==========  THANK YOU  ===========
So how do you go about commissioning me? EASY!
Read my ToS
What type of commission do you want?
Fill out the provided form
Send it to me
Wait for my response
Then we can discuss!
 Feel free to send it as a submission to me directly or email it to me via shiita.m[@]gmail.com
 As a side note, know that if you simply wish to support my work as an artist, donations are welcome! Whether via paypal directly, my ko-fi or my gofundme project. I will be popping out more fandom content with each new donation as a thank you! So please by all means! And thank you all ahead of time!
95 notes · View notes
ofoatd · 6 years
Text
Tomlinson's TV talent, Panic! At The Disco's plight to high heights & Fall Out Boy's 'Thnks Fr Th Mmrs' Llama led rip off
Tomlinson's judging talent, Payne's premiering EP, One Direction's eight year 'History', Fall Out Boy's 'Thnks fr th Mmrs' lama led rip off and Panic! At The Disco's daredevil plight to high heights. One Fall Out At The Disco's fortuitous hiatus has halted, honing in on music happenings from Malik's sonically startling 'Sour Diesel' to Panic! At The Disco's pious 'Pray For The Wicked Tour’ trail. Coming back from a break like Twenty One Pilots' sabbatical suspension over One Direction's cry out for a comeback, One Fall Out At The Disco's reformed and restored, magnifying music most missed matters.
Tumblr media
Louis Tomlinson the TV talent X Factor judge
Honing in on unblemished boyband harmonies to tearing up the table as a esteemed musical magistrate of the newly designed panel, Louis Tomlinson's lustrous leverage to the heritage of TV talent The X Factor, has been an burning notion put into motion years heretofore.
The 'Back To You' singer is going back to where his life full and long living career conspired into a spiral of One Direction domination, music mogul imprints, solo success and judging jobs upon cultured acquaintance of the panel position and being a ratings boosting figure boasted by philanthropist and public personality Simon Cowell, utilising the former boyband segments popularity purposefully to revive a dying British singing show which cultivated in collecting the worst ever final ratings in its 14 year stint, prioritising Tomlinson's tactile public marketability moreover that's the northerners notorious charismatic persona was a seamlessly shameful statement surrounding Cowell's integrity and intentions.
Whilst conference communications broke of the 26 year olds artist management role, speckles of scepticism surrounding Louis debut record release unofficially branded as LT1 fretted fans over his prioritisation of music over contest commitments with the solo singer suggesting the shows help not hindering covenant commenting "The album is still definitely my priority it doesn't change any release time me doing the show. Having come from the show it made sense to me to go on, I've always been interested in mentoring that's why I've done things in the past with my imprint label. It's something that has been on my mind".
Rolling up in a Mercedes-Benz company car stepping out from the suburbs of a renewed vintage esque Burberry check craze, the 'Just Like You' lead infiltrated into the SSE Arena Wembley situated adjacent to the worldwide wonder Wembley Stadium who hosted One Direction's three date term ‘Where We Are Tour’ in 2014. Sitting in the cushion stacked hot seat for the discovery arena auditions, cautiously crying over a returning contestant and being timidly confident within his critiques plus the stressful six chair challenge mentoring the boys bracket.
Tomlinson took time to spontaneously meet smiley faced fans fighting to stay in their seats subsequent to staff brutally blacklisting and barbarically banning fans from floor perspectives, reigniting former boyband memory flames and jettisoning James Grant Management Group and moving to Mark Gillespie and Matt Vines WMA Management after a two year time with the initial leading agency providers the Syco spin off label imprint individual is moving on, maximising his music mogul mind nostalgic to Plain White T's and Toms.
Tumblr media
8 years of One Direction
Primary vanguards of 21st century boyband unprecedented hysteria, X Factor  graduates One Direction have been masters of pop culture craft for an existing 8 years. Sitting on stairs to selling out stadiums, singing saccharine sugar coated bubblegum pop bops apropos to endless promises of partying all night, making malcontent 'Midnight Memories' stomping upon the streets of centralised London and mulling over fornoon favourite a.m conversations to a cultivation of a dedicated demographic of assured adolescents, placid parents and benevolent boyfriends of fangirl girlfriends growing and grasping mainstream music eminence, eventually evolving as one of the highest earning boyband in history eternity.
"#8YearsOfOneDirection where has the time gone!? Thank you so much to every single person who’s ever supported us. Big love!" tweets Tomlinson the 1/4 of One Direction bio beholder, taking time  aside from audition allegiance alongside Liam Payne addressing the boyband as "Brothers" simultaneously splashing in the oceanic seas from the probably private yacht on Payne's sunny staycation, Niall Horan penning homage to "Amazing memories with the lads" and Harry Styles stating the fan support system saying "Thank you for all the love, thank you for all the support. Thank you for everything" signed off with his signature H dismissal.
Meanwhile the One Direction official outlet monotonously recalled lyricism from the 4 piece's repertoire, fan frenzy was a flurry when supposed superfan speculation sparked an outpouring in overwhelmed apocalypse of panic, pandemonium and perturb as dates for a post hiatus 2020 tour to represent and fly fifth album Made In A.M mellow ambience, the cliffhanger of an album left on the indefinite break of the 'Story Of My Life' singers surfaced upon ticketing sales service Ticketmaster's Australian December dates listings, deflecting the doubt of an unreleased 'Infinity' music video and playlists reputedly lead single 'Lucky' a potential promotional lead for a group reformation of raging proportions.
Tumblr media
Fall Out Boy "Bishops Knife Trick" music video
A manic mayhem of memories of peculiar primates to a pity party of chaotic camelids. A lama tinged ode to 'Thnks Fr Th Mmrs' Fall Out Boy's brand new animated animal endeavour 'Bishops Knife Trick' is one of the top rock selling record of this year, its MANIA's answer to Infinity On High's Kim Kardashian cameo curation.  
Ticking off one less task on his comprehensively seventh studio album branded list, Pete Wentz writes off the music video of the Island Records/DCD2 recent record release penultimate track ahead of the Reading and Leeds Festival headline, homecoming Wrigley Field gig, mixing and mastering Lamamania plus renovating Folie à Deux's demo Lake Effect Kid extension, a symptomatic culmination to a MANIA era that has dished up a final frosty serving of demanding director Stump and unbeknownst animal oppression in 'Bishops Knife Trick'.
Trading in a monkey obstructed madhouse for a llama centric landscape, big boss Patrick Stump verbally browbeats working living organisms curious on curating a picture perfect Patrick paradise of fedora furry friend fashionistas and check mate chess games of a talentless wack llama ensemble. Overlaying a spat between the species, chillingly deep dark blues and animal like entrapment elevate writer Wentz' candidly confessional dealing, with dejected depression and evoked emotions of a mental mania battle of a disconnect of the ordinary world brought back to earth by the glow of the city of Chicago.
Getting a grip of reality and breaking out of the domesticated cage of a state of suppressed sadness, Stump soaringly sings subjected to sweeping sounds and climbing chimes of piano melodies amongst mid tempo strikes of the snare reinstall instrumental talent amongst a catalogue of crisis amid MANIA's repository recalling lyricism of "I got a feeling inside that I can't domesticate/It doesn't wanna live in a cage/A feeling that I can't housebreak" hones in on the entertainment exploitation of llamas laundering away over musical instruments, seeking the idealistic project of Patrick's "film school" wonders.
Tumblr media
Liam Payne First Time EP
Stripped back sounds, sultry lyric lines and smoothly tamed tones. Liam Payne's album filler EP First Time steps in for the September suspension of an inaugural record and steps up as a tetralogy of tracks, transforming the remixing maestro into a solo singing virtuoso. Post dropping a successful string of singles, collaborating with a cultivation of reputable recording artists in the realms of Migos' Quavo and Columbian crooner J Balvin, for radio friendly feats ‘Strip That Down’ and the flamboyantly bilingual bop 'Familiar'. Surrounding the latter's release, Payne hotly hyped up the anticipation of his fully fledged step out into the solo spotlight LP momentarily dulled by the determined decision to push back the records release, following in the footsteps of Fall Out Boy's belief battle with MANIA a setback suggestive of re-defining songs that feel so differently distanced as false representations of artistry with the 'Bedroom Floor' singer stating "I looked at some of the songs on my album which were done a while ago and they felt from another age. I'm determined for my debut album to truly represent me. In the meantime, this EP is a collection of songs that I'm really proud of" launching into the era of the EP First Time.
Title track 'First Time' fuses fragments of a "Familiar" fiery and fun filled tones picturing a Payne on the prowl to follow his feelings for an elusive female fabricate themselves throughout the thrill of the chase chronicle, a typical songwriting style the 25 year old adheres to. Exploring the realms of relationships over friendships besides production work from Di Genius' repertoire with Latin esque R&B influences simmering their way slowly throughout the monotonous platforms of the lead single, spiked by a pick up of vocal hooks and lyrical lulls of Payne's palatable projections and artist come label institutor French Montanas musky melodies.
Sophomore song 'Home With You' hones in on Liam's leap into the Urban and R&B region of music considerately comparable to fellow former One Direction division Zayn Malik's mellow material, with the sophisticated sleekness of 2010's electronic pulsating drum machine moments and stylistic vocal arrangement introducing the track as a nonchalant number, none the wiser to its upbeat metronome ticking chorus and lyrically expressive 3 liner pre-chorus "Too many cooks in the kitchen/Too many fools here listening/Why don't we find somewhere quiet". Quintessentially embodying the entire archetypal narrative, where spending the night away from "Yelling to you over music" clubs in homely comforts with a newly significant other are free from the eavesdropping ears of unbeknown fools.
Musically minimalistic ballad 'Depend On It' dabbles with a tender provoking genre palette Payne sonically is a solo stranger to, amongst an array of danceable discography destined for the fm radio waves. Worlds apart from the clichéd addictiveness of pop boyband ballads, a pleasant place in unforgotten memories Liam is persistent in revitalising to the present, as the singer was pictured seizing a sentimental embodiment of One Direction artwork adorning the original ensemble apace with Up All Night and Take Me Home songwriter Savan Kotecha esteemed for penning popular pieces by Ariana Grande and Britney Spears. Perpetual piano instrumentation pays homage to 'Home With You' minor chords transformed into a pivoting arrangement of piano melody interludes, lonesome towards the climax of the third track cohesive with the upper register of Payne's vocal expansion, expressing the love hate state of a relationship dialogued rendering "I'm not ready yet, there's still a thread left/If I could just hold on onto unravelling hope/Give it one last go, I don't know why, just need us to try" compromising the succinctly short track, yet the upmost stand out of the upbeat outnumbered EP.
Conclusively 'Slow' signifies a contradicted balance between saddened lyricism and sprightful production with a negative tinged track telling the tale of a cracking and crumbling connection, purposefully moral uplifting via mediums of a selective sense for sniffing out sounds that make 'Slow' electro melodies the core carvings the 'Get Low' vocalist craves to create a chart hit wonder. Recorded in the confines of the West London located Wendy House Production Studio's a place of musical residence One Direction inhabited in their 6 year indefinitely suspended career Liam Payne, levitated by a venerated troup of songwriters including The Ordinary Boys frontman Preston and Sylvester Sivertsen who posted a behind the scenes picture of the pair in 2016. 'Slow' lyricism is the utmost suggestive and scandalous story of breakdowns and breakups throughout the EP's entire narrative elaborating on "Got me pretending' you ain't done with us/It got me runnin' round the obvious" closing simplistically on "Let me down, let me down slow" with First Time featuring a collaboration, conventional characteristics and collection of charmingly cool crusades that lulls the listener on a trip down Payne's publicly pronounced past relationship at the different stages of love, lust, spats and separation, enhancing catchy rhythmic arrangements and an aura of perspectives of Payne's personal anecdotes.
Tumblr media
Panic! At The Disco Reading & Leeds Festival 2018
Glistening glows of luminosity embossed with a scintillating showman style, Panic! At The Disco's co-headlining call crafted the shimmer, shine and sophistication of an otherwise damp, drunken and devil-may-care merrymaking weekender. Stemmed from a Saturday of female pop frontiers 'Strangers' singer Sigrid and Brit beauty Dua Lipa, Panic! At The Disco dazzled deftly with a type of timeless sumptuous sentimentality.
"To the old, and to the new/We dedicate this song to you" allures the retro soul sample of 'Silver Lining' as glitzy garmented and gold microphoned Brendon Urie bouncily bursts onto main stage Reading, to the rebellious satisfaction of young adults supposition supported by the bands backing of shifted member swaps, loosing Dallon Weekes who took to The Pit/The Lock Up stage showcasing 80's unearthed endeavour I DON'T KNOW HOW BUT THEY FOUND ME and gaining bassist Nicole Row in March 2018 filling in for the female representation against a 14 year long male amassment.
Sounds of steampunk victorian picturesque imagery illuminated 'The Ballad Of Mona Lisa', with organically engineered vintage instrumentation of sinister patters of the piano and creeping pounds of the percussion, portray a dynamic duo of moral dilemmas in confident company with Urie's dark dingy lower register. Welcoming the colossal crowd to the land of Pretty Odd, a stellar song of festival festivities manifested itself in the fields of Richfield Reading chiming in with charming melodies, feeling so good with out of mind optimism side to side with spiritually earth endearing attitudes.
From the sprightly smiles of frontman Brendon Urie transitioning between latterly acquired additions "Dancing Is Not A Crime" and 'High Hopes' in which a faithful figure displays themselves amongst a sea of singing sinners to lasting setlist staples Queen's 1975 classic covering 'Bohemian Rhapsody' prescriptively performed for heritage act admiration. Transitionally taking on Too Weird Too Live, Too Rare Too Die's! triennial single 'Girls/Girls/Boys', pigmented pops of rainbow refractions, self proclaimed extravagant exclamation points and imposing iridescent sparkles lit the product ionised representation of the outright freedom of fondness for all orientations including + communities, a core creation for the efforts of the Highest Hopes Foundation set up in support for discriminated and disregarded segmentations of society.
Encore items illustrated a bouncing back and forth between the ever evolving dosages of conviction, carefree and ceremonious crusades from wickedly weekend worshipping 'Say Amen (Saturday Night)', sonically unambiguous crowd pleaser 'I Write Sins Not Tragedies' to the confidentially conquering 'Victorious' as Urie confesses his state of euphoria before launching into the high intensity hit, highlighting the brightly belting pulsating vibrato vocals of the 31 year olds articulating "I've never been happier in my life and that's all because of you. You are important, you have an impact” illustrating an important imprint for a Saturday night of the retrieval of reminiscence and the making of matchless memories.
Tumblr media
Fall Out Boy Reading & Leeds Festival 2018
Glaring in the glory of double zero’s rock reminiscence Reading and Leeds long timers Fall Out Boy headlined the main stage, showcasing a spectacle of sets reinforcing pop-rocks reputation amongst an evolutionary shift of a festival blurring the genre identity boundaries. From a Friday fronted by American rappers Post Malone and Travis Scott to the publicly prophesied secret set of Bring Me The Horizon, Fall Out Boy waved the white flag in sheer satisfaction far from the symbolism of surrender to be sitting as sixth time servers to the British bank holiday bash.
Smashing through a stellar setlist subjected to an in with the old out with the new Folie à Deux dash down wistful album avenue in affair to the forth records decade duty to the quartets discography, of the madness mantras of messed up romantics in 'Disloyal Order Of Water Buffaloes' to the misery mindset of selfish meanness throughout 'I Don’t Care' flippant middle finger montage deceased video platform Vine would have been pleasantly pleased witnessing.
Upbeat anthems from the post hiatus period 'Centuries' and 'My Songs Know What You Did In The Dark (Light Em Up)' tinged the dark dusk skies in bursts and bangs of a 5th of November celebratory serenade succumbed to the pyro below of Wentz' fire blasting bass, betrayed by its toned down display of 2016's flame eating females, with Wentz wise words of wisdom reflecting penchants of pure honesty rendering to the adolescent audience "They tell you along the way that you need to fit into a certain mould, but be you, do you as loud as you can, stay dangerous!”.
With the dimming down of danger, poised piano ballads 'Save Rock And Roll' alongside MANIA's bright beacon of artistic hope levitated from a lacklustre LP 'The Last Of The Real Ones' shone Stumps soulfully sonic singing before storming into a powerfully propelling galactic gathering of rip roaring bass grooves and glistening electrical guitars.
Long gone the lectures of wolves and dunking the basketball and long live the king of pop culture covers and ones for the mosh pit, Fall Out Boy's headlining slot staged the rightful return of Reading champions and pensive mmrs of a marked musical legacy.
Tumblr media
Panic! At The Disco 'High Hopes' music video
Stranger setbacks, scaling skyscrapers and rooftop recitals. Panic! At The Disco's extortionately elevated vast visionary for 'High Hopes' holds back on self sceptical hesitancy and hones in on obtaining a dream like optimistic outlook.
Recently revealing eminently awaited European and UK Spring 2019 dates for the capacious continuation of the 'Pray For The Wicked Tour' that triumphantly teemed with death walks and wayward Amazing Beebo's, the trials and tribulations of Panic! At The Disco touring members dropping have surfaced, after the axing of touring musician Kenneth Harris subsequent to supported allegations of inappropriate misconduct between the 37 year old with of age and underage female fans soared. With speedy removal of Harris post the 'I Write Sins Not Tragedies' songwriters high note hitting IHeartRadio Festival performance, a succinct 13 song set compromising of current core classics 'Say Amen (Saturday Night)' and 'High Hopes'.
Gazing up to the sky high structure situated amongst the neighbouring streets of Downtown Los Angeles, subsequent to a borderline civilian belabour painting battle to the trails, tribulations and setbacks Brendon Urie has unambiguously endeavoured under the Panic! At The Disco music moniker, the self confessed London west end wannabe supernormally sets upon scaling the side of a modernist American sky high complex congregating a confounded crowd on earths gravitational ground.
Pushing on with anew sense of captured power, purpose and perspective Brendon beckons down to the solid surface below, as a building bridge and prompting pre-chorus builds up to spur the singer on into "Stay up on that rise and never come down" simultaneously pushing the Panic! frontman on to prove the fallacious critics untrue chiming "They say it's all been done but they haven't seen the best of me/So I got one more run and it's gonna be a sight to see" speculating the singular ensemble spearheads longevity, concealed by the cohort Panic! At The Disco and comparatively not soloist Brendon Urie, with sixth studio album Pray For The Wicked being the band's "One more run" record.
After a fast flicker and fierce flashback of pedantic belief that Panic! has exhausted entire repertoires of musical material, a moment of dignified realisation of accomplishment, achievement and appreciation is alluded to from the expressions of 'High Hopes' own 'Hey Look Ma, I Made It" moment Brendon and backing band burst into a sonic celebration, categorically evoked out of emotions of opportunity, outlook and optimism.
Watch Panic! At The Disco and Fall Out Boy's Reading and Leeds Festival Sets including the music video for 'Bishops Knife Trick' and ‘High Hopes’ plus listen to First Time by Liam Payne on all major music platforms here:
Fall Out Boy Bishops Knife Trick Music Video - YouTube
Panic! At The Disco Reading and Leeds 2018 - BBC
Fall Out Boy Reading and Leeds 2018 - BBC 
Liam Payne First Time EP - Apple Music/iTunes
Liam Payne First Time EP - Spotify
Liam Payne First Time EP - Amazon
Liam Payne First Time EP - Google Play
Liam Payne First Time EP - Deezer
Liam Payne First Time EP - Tidal
Panic! At The Disc High Hopes Music Video - YouTube
(All photographic content curtesy of One Direction/Columbia Records/The X Factor (Instagram)/Capitol Records/Jake Chams/Panic! At The Disco/Elliott Ingham/Fall Out Boy)
0 notes
mlbors · 6 years
Text
Discovering C#
Discovering C#
Through this article, we are going to take a look at the programming language named C#. Let's get into it!
Introduction
First of all, we are not going to look at C# in every single detail because it is not the purpose of this article and it would probably take a whole book. Our goal here is to simply get familiar with this very common language. We are going to have a look at the very basics of this language and go a little further after that. This article is some kind of introduction to this language.
What is C#?
C#, or C Sharp, is a programming language developed by Microsoft. We usually say that it is an object-oriented programming language, but in fact, it is a multi-paradigm programming language. It was designed to be used with the .NET Framework. It is derived from C and C++ and it is really similar to Java.
C# programs run on the .NET Framework through a virtual execution system called the Common Language Runtime (CLR). When we compile a program written in C#, it is transformed to an Intermediate Language (IL). That last code and all the resources a stored in an executable file called Assembly. When the program is executed, the Assembly is loaded into the CLR that will perform the Just-in-Time compilation (JIT) that will convert the Intermediate Language code to native machine instructions. In a very few words, we can say that the CLR is to .NET the same thing as the JVM is to Java.
Generalities and syntax
A source code written in C# is placed in a file that has ".cs" as extension. Lines written in this file have to be read from left to right, from top to bottom. Every instruction should be ended with a semicolon (;).
C# is case-sensitive.
We can add comments to our code using "//" for a single line, or "/" and "/" for multiple lines.
Variables
A variable is like a box where we store a value. It is a name given to a data value. The content of a variable can vary at any time. In C#, a variable has to be defined with a data type. A variable can be declared and initialized later or it can be declared and initialized at the same time.
// Declaring a variable string message; // Assigning a value the previously declared variable message = "Hello World!!"; // Declaring and initializing a variable string message = "Hello World!!";
Data Types
Because C# is a strongly typed language, we are required to inform the compiler about which data type we want to use with every variable we declare. A data type specifies the type of data that a variable can store.
The information stored in a type can include the following:
The storage space that a variable of the type requires
The maximum and minimum values that it can represent
The members (methods, fields, events, and so on) that it contains
The base type it inherits from
The location where the memory for variables will be allocated at run time
The kinds of operations that are permitted
The compiler uses type information to make sure that all operations that are performed in our code are type safe.
// Declaring a string string stringVar = "Hello World!!"; // Declaring a integer int intVar = 100; // Declaring a float float floatVar = 10.2f; // Declaring a character char charVar = 'A'; // Declaring a boolean bool boolVar = true;
Value Type and Reference Type
In C#, data types are categorized based on how they store their value in the memory. They could be a value type or a reference type.
Value Type
A data type is a value type if it holds a data value within its own memory space. It means variables of these data types directly contain their values.
The following data types are all of value type:
bool
byte
char
decimal
double
enum
float
int
long
sbyte
short
struct
uint
ulong
ushort
When we pass a value type from one method to another, the system creates a separate copy of that variable in the other method. So if the value is changed in one method, the value in the other method won't be affected.
Reference Type
A data type is a reference type if it stores the memory address where the value is being stored. In other words, a reference type contains a pointer to another memory location that holds the data.
The following data types are of reference type:
String
All arrays, even if their elements are value types
Class
Delegates
When we pass a reference type from one method to another, the system passes the address of the variable. It means that if the value is changed in one method, the value in the other method will also be affected.
Operators
An operator is a symbol that is used to perform operations. Some operators have different meanings based on the data type of the operand.
Condition
In C# programming, there are various types of decision-making statements:
if statement
if-else statement
Nested if statement
if-else-if statement
switch statement
If statements
The if statement contains a boolean expression inside brackets followed by a single or multi-line code block. At runtime, if a boolean expression is evaluated to true, then the code block will be executed.
// if statement if (a > b) { Console.WriteLine("a is greater than b"); } // if-else statement if (a > b) { Console.WriteLine("a is greater than b"); } else { Console.WriteLine("a is either equal to or less than b"); } // if-else-if statement if (a > b) { Console.WriteLine("a is greater than b"); } else if (a < b) { Console.WriteLine("a is less than b"); } else { Console.WriteLine("a is equal ton b"); } // Nested if statement if (a > 0) { if (a <= 100) { Console.WriteLine("a is positive number less than 100"); } else { Console.WriteLine("a is positive number greater than 100"); } }
Switch
The switch statement executes a code block depending upon the resulted value of an expression. It is like the if-else-if statement.
switch (a) { case 10: Console.WriteLine("It is 10"); break; case 20: Console.WriteLine("It is 20"); break; case 30: Console.WriteLine("It is 30"); break; default: Console.WriteLine("Not 10, 20 or 30"); break; }
Loops
A loop gives us the ability to repeat a block of code. In C#, there are four ways to achieve a loop.
While loop
A While loop is used to iterate a part of the program while a condition is true.
int i = 0; while (i < 10) { Console.WriteLine("Value of i: {0}", i); i++; }
Do-While loop
A Do-While loop is like a While loop, except that the block of code will be executed at least once because the loop executes the block of code first and then checks the condition.
int i = 0; do { Console.WriteLine("Value of i: {0}", i); i++; } while (i < 10);
For loop
A For loop executes a block of statements repeatedly until the specified condition returns false.
for (int i = 0; i < 10; i++) { Console.WriteLine("Value of i: {0}", i); }
Foreach loop
A Foreach statement provides a way to iterate through the elements of an array or any enumerable collection.
int[] numbers = { 4, 5, 6, 1, 2, 3, -2, -1, 0 }; foreach (int i in numbers) { System.Console.Write("{0} ", i); }
Arrays
In C#, an array is a group of similar types of elements that have contiguous memory location. An array is a special type of data type which can store a fixed number of values sequentially using special syntax. Array index starts from 0.
Like a variable, an array can be declared and initialized later or it can be declared and initialized at the same time.
// Declaring an array that contains strings string[] names; // Instantiating the array and defining its size string[] names = new string[2]; // Storing a value at index 0 names[0] = "John Doe"; // Displaying the value stored at index 0 Console.WriteLine(intArray[0]);
Collections
In C#, a collection represents a group of objects. Unlike an array, a collection doesn't have a fixed size. There are several types of collections.
ArrayList
An ArrayList stores objects of any type like an array.
// Declaring ArrayList ArrayList arrayList = new ArrayList(); // Adding elements arrayList.Add(1); arrayList.Add("Two"); // Add an element at a specific index arrayList.Insert(1, "Second Item"); // Removing element at a specific index arrayList.RemoveAt(1);
SortedList
A SortedList stores key and value pairs. It automatically arranges elements in ascending order of key by default.
// Declaring SortedList SortedList sortedList = new SortedList(); // Adding elements sortedList.Add(3, "Three"); sortedList.Add(4, "Four"); sortedList.Add(1, "One"); sortedList.Add(5, "Five"); sortedList.Add(2, "Two");
Stack
A Stack stores the values in LIFO style (Last In First Out). It provides a Push() method to add a value and Pop() and Peek() methods to retrieve values.
// Declaring Stack Stack stack = new Stack(); // Adding elements stack.Push("John Doe"); stack.Push(1); stack.Push(2); stack.Push(null); stack.Push(3); // Displaying the top item from the stack Console.WriteLine(stack.Peek()); // Removing and returning the item from the top of the Stack stack.Pop()
Queue
A Queue stores the values in FIFO style (First In First Out). It keeps the order in which the values were added. It provides an Enqueue() method to add values and a Dequeue() method to retrieve values from the collection.
// Declaring Queue Queue queue = new Queue(); // Adding elements queue.Enqueue(3); queue.Enqueue(2); queue.Enqueue(1); // Displaying the first item of the Queue Console.WriteLine(queue.Peek()); // Removing and returning the item from the beginning of the queue queue.Dequeue();
HashTable
A HashTable stores key and value pairs. It retrieves the values by comparing the hash value of the keys.
// Declaring Hashtable Hashtable hashtable = new Hashtable(); // Adding elements hashtable.Add(1, "One"); hashtable.Add(2, "Two"); hashtable.Add(3, "Three"); hashtable.Add("Fr", "Four"); // Accessing element string str = (string)hashtable[2]; // Removing element hashtable.Remove(3);
Tuples
A tuple is an ordered immutable sequence, fixed-size of heterogeneous objects. Tuples allow to return multiple values from a method.
// Declaring a tuple var numbers = ("One", "Two", "Three", "Four", "Five"); // Declaring another tuple (string, string, int) person = ("John", "Doe", 30); // Declaring another tuple and accessing values. var person = (firstName: "John", lastName: "Doe", Age: 30); person.firstName; We can also use a tuple as a return type. (int Val1, int Val2) Values() { int val1 = 1; int val2 = 2; return (val1, val2); } var values = GetValues();
Classes
A class is like a blueprint. It is a template from which objects are created. In an object-oriented programming language like C#, an object is like in the real world: it has properties and functionalities. So, a class defines the kinds of data and the functionalities that an object will have.
Access modifiers
Access modifiers are applied to the declaration of the class, methods, properties, fields and other members. They define the accessibility of the class and its members. There are four access modifiers:
public - allows a class to expose its member variables and member functions to other functions and objects
private - allows a class to hide its member variables and member functions from other functions and objects
protected - allows a child class to access the member variables and member functions of its base class
internal - allows a class to expose its member variables and member functions to other functions and objects in the current assembly
Fields
A field is a class level variable that can hold a value.
Properties
A property allows us to control the accessibility of a class variable. It encapsulates a private field and provides a level of abstraction allowing us to change a field while not affecting the external way they are accessed by the things that use our class.
Constructor
A class constructor is a special member function that is executed whenever a new object of that class is created. A constructor has exactly the same name as the class and it does not have any return type.
Methods
A method is a group of statements that perform a task. A method is basically written like so:
<Access Modifier <Return Type> <Method Name>(Parameter List) { Method Body }
Namespaces
A namespace is a container for a set of related classes. A class name declared in one namespace does not conflict with the same class name declared in another.
Example
Let's put what we saw together to create a simple class:
// Namespace namespace MyNamespace { // Declaring the class - access modifier, class keyword, class name public class MyClass { // Fields - access modifier, type, field name public string field = string.Empty; // Property private int propertyVar; // Property accessors public int Property { get { return propertyVar; } set { propertyVar = value; } } // Constructor public MyClass() { } // Method - acces modifier, return type, method name, parameters public void MyMethod(int parameter1, string parameter2) { Console.WriteLine("First Parameter {0}, second parameter {1}", parameter1, parameter2); } // Method - acces modifier, return type, method name, parameters public int MyMethod(int parameter1, int parameter2) { return parameter1 + parameter2; } } }
Interfaces
An interface is like a contract. Every class that inherits from a specific interface has to implement what is defined in the interface. An interface only contains the declaration of the methods and the properties that a class has to implement.
// Declaring the interface interface MyInterface { void MyMethod(string message); } // Implementing the interface class MyClass : MyInterface { public void MyMethod(string message) { Console.WriteLine(message); } }
An interface can also contain properties.
interface MyInterface { string Property { get; set; } void MyMethod(string message); } class MyClass : MyInterface { private string property; public string Property { get { return name; } set { name = value; } } public void MyMethod(string message) { Console.WriteLine(message); } }
Structs
A struct is mostly like a class, but while a class is a reference type, a struct is a value type data type. Unlike a class, it does not support inheritance and can't have a default constructor.
We can consider defining a struct instead of a class if instances of the type are small and commonly short-lived or are commonly embedded in other objects. The general rule to follow is that structs should be small, simple collections of related properties, that are immutable once created.
struct Point { private int x, y; public int XPoint { get { return x; } set { x = value; } } public int YPoint { get { return y; } set { y = value; } } public Point(int p1, int p2) { x = p1; y = p2; } }
Enums
An enum is a value type data type. It is used to declare a list of named integral constants that may be assigned to a variable. An enum is used to give a name to each constant so that the constant integer can be referred using its name.
enum Days { Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday } Console.WriteLine(Days.Tuesday); Console.WriteLine((int)Days.Friday);
Delegates
In C#, a delegate is like a pointer to a function. It is a reference type data type and it holds the reference to a method. When we instantiate a delegate, we can associate its instance with any method with a compatible signature and return type. Delegates are used for implementing events and callback methods.
// Declaring the delegate delegate int Calculator(int n); class Program { static int number = 1; public static int add(int n) { number = number + n; return number; } public static int mul(int n) { number = number * n; return number; } public static int getNumber() { return number; } public static void Main(string[] args) { // Instantiating the delegate Calculator c1 = new Calculator(add); // Instantiating the delegate Calculator c2 = new Calculator(mul); // Calling method using delegate c1(20); // Calling method using delegate c2(3); } }
Anonymous functions and Lambdas
An anonymous function is a type of function that doesn't have a name.
In C#, there are two types of anonymous functions:
Lambda expressions
Anonymous methods
Lambdas Expressions
A lambda expression is an anonymous function that we can use to create delegates. We can use a lambda expression to create a local function that can be passed as an argument.
class Program { delegate int Square(int num); static void Main(string[] args) { Square getSquare = x => x * x; int a = getSquare(5); Console.WriteLine(a); } }
Anonymous Methods
An anonymous method is quite like a lambda expression but allows us to omit the parameter list.
class Program { public delegate void AnonymousFunction(); static void Main(string[] args) { AnonymousFunction myFunction = delegate() { Console.WriteLine("This is an anonymous function"); }; myFunction(); } }
Generics
Generics allow us to define a class with placeholders for the type of its fields, methods or parameters. The compiler will replace these placeholders with the specified type at compile time. Generics increase code reusability.
// Declaring a generic class class GenericClass<T> { // Declaring a generic field private T genericField; // Declaring a generifc property public T genericProperty { get; set; } // Constructor public GenericClass(T value) { genericField = value; } // Declaring a generic method public T genericMethod(T genericParameter) { Console.WriteLine("Parameter type: {0}, value: {1}", typeof(T).ToString(),genericParameter); Console.WriteLine("Return type: {0}, value: {1}", typeof(T).ToString(), genericField); return genericField; } } class Program { static void Main(string[] args) { // Using the generic class GenericClass<int> genericClass = new GenericClass<int>(10); } }
We can use constraints to specify which type of placeholder is allowed with a generic class.
// Declaring a generic class specifying that T must be a reference type. class GenericClass<T> where T: class { ... }
Generic collections
We mentioned collections before. In C#, we can also have generic collections.
List - contains elements of specified type
Dictionary - contains key-value pairs
SortedList - stores key and value pairs in an ordered manner
Hashset - contains non-duplicate elements
Queue - a Queue containing elements of specified type
Stack - a Stack containing elements of specified type
Polymorphism
In C#, polymorphism can be used in different manners. There are two types of polymorphism in C#: compile time polymorphism and runtime polymorphism. Compile time polymorphism, also known as static binding or early binding, is achieved by method overloading and operator overloading. Runtime polymorphism, also known as dynamic binding or late binding, is achieved by method overriding.
Method overloading
It allows us to have the same method multiple times but with different parameters or return type.
public class Program { public int add(int a, int b) { return a + b; } public int add(int a, int b, int c) { return a + b + c; } public float add(float a, float b) { return a + b; } }
Method overriding
It allows a class to override a method that is inherited from a base class. We need to use the keyword "virtual" in front of the method in the base class to allow a derived class to override it.
public class Animal { public virtual void play() { Console.WriteLine("Playing"); } } public class Cat : Animal { public override void play() { Console.WriteLine("Playing like a cat"); } }
Abstract classes
An abstract class is a class that cannot be instantiated. It can contain concrete or abstract methods. An abstract method is a method that has no body and it must be implemented by the derived class.
public abstract class AbstractClass { public abstract void AbstractMethod(); public void Method() { Console.WriteLine("This is a method"); } } public class ConreteClass : AbstractClass { public override void AbstractMethod() { Console.WriteLine("Abstract method implementation"); } }
Attributes
An attribute is a declarative tag that is used to send information to runtime about the behavior of various elements like classes, methods, structures, enumerators or assemblies. Attributes are used to add metadata, such as compiler instruction or other information to a program.
Attributes are generally applied physically in front of type and type member declarations. They're declared with square brackets, "[" and "]", surrounding the attribute. In the following example, we use the "Obsolete" attribute which is a pre-defined attribute in the .NET Framework.
class Program { static void Main() { Test(); } [Obsolete("Test method is obsolete.", true)] static void Test() { } }
When we try to compile the program, the compiler generates an error.
Conclusion
Through this article we had an overview of the C# programming language and how we can use it. It was more like a theoretical article more than a practical article. Nevertheless, we now have the tools to dig a little deeper and to use C#.
One last word
If you like this article, you can consider supporting and helping me on Patreon! It would be awesome! Otherwise, you can find my other posts on Medium and Tumblr. You will also know more about myself on my personal website. Until next time, happy headache!
0 notes
fr-familiar-bracket · 3 months
Text
Tumblr media Tumblr media Tumblr media Tumblr media
224 notes · View notes
fr-familiar-bracket · 3 months
Text
Tumblr media Tumblr media
176 notes · View notes
fr-familiar-bracket · 4 months
Text
Tumblr media Tumblr media
173 notes · View notes
fr-familiar-bracket · 22 days
Text
Tumblr media Tumblr media
104 notes · View notes
fr-familiar-bracket · 2 months
Text
Tumblr media Tumblr media
101 notes · View notes
Text
Tumblr media Tumblr media
54 notes · View notes