Tumgik
#this has been a debug item appreciation post
sims4t2bb · 29 days
Text
weekly update
Hello everyone, and happy Sunday! The end of summer is fast approaching and for many, it's back-to-school and work we go. In any case, we hope you're well prepared 📔📚🎒
The updates for this week can be found, as always, under the cut. Happy Simming!
— Database
You may have noticed that we've not been posting our updates as regularly over the last few months. We're very sorry for any inconvenience this may have caused. For now, we'll revert to posting our updates bi-weekly instead of every week. We appreciate your patience and understanding in this matter 🤍
We've gone back through all our mentions and tags from the last 100 days and collated them in this update and in an extra bonus update, to be released next Sunday (1 September). If you've mentioned or tagged us in something and it doesn't appear below or in the next update, please tag us again. Thank you! 💃🏻
— Base Game
Buy Mode
Tumblr media
Freezer Bunny Blues Guitar, Grim's Ghoulish Guitar, Pied Piper Acoustic Guitar, and Rock Legend Signed Guitar conversions by @platinumaspiration has been added.
Debug
Tumblr media
Carved Guitar conversion by @platinumaspiration has been added.
Decorations
Tumblr media
Cock's Crow Table Accent by @littlelittlesimmies has been added.
— Expansion Packs
Seasons
All the images have been updated.
Alphabetised all items.
The page menu has been updated.
The coding has been cleaned up and standardised.
Horse Ranch
Tumblr media
'63 Twilight Notes Resonator Guitar conversion by @platinumaspiration has been added.
— Game Packs
Outdoor Retreat
Tumblr media
StickiMo Travel Acoustic Guitar conversion by @platinumaspiration has been added.
Werewolves
Tumblr media
Rockmeister Syzygy 7000 Guitar conversion by @platinumaspiration has been added.
— Kits
Everyday Clutter
Tumblr media
Beacon of Intention Active Set, Invincible Frame Tray, and Subtle Serve Makeup Kit conversions by @melbens-ts2 have been added.
Party Essentials
Tumblr media
The filterable page is now available!
A link to the filterable page in the pinned post has been added.
All conversions by @tvickiesims have been added.
22 notes · View notes
luvkirby4ever · 6 years
Text
Of birds and morons:  a look into Mother 3′s most intricate unspoken running joke/motif
Shoutout to @amphibizzy for convincing me to talk about this.  There’s so much Mother 3 meta that I want to talk about- maybe next time I’ll make a video essay to spare you all from reading so much >o<
Tldr; Duster and Wess have bird motifs that don’t quite translate over well, making Wess’s mannerisms slightly less harsh in context but outs him as surprisingly superstitious.  May be a nod to Japanese mythology, too.
So, a starting point.  Did you know that at beginning of chapter 7 after Ionia joins you (still tied up at this point) that if you go back and talk to Wess he says something rather strange?
Tumblr media Tumblr media Tumblr media
For clarity, the entire original conversation reads "Washi no inemuri uranai ni yoreba kyou wa TRIPLE LUCKY da yo.  Jishin o motte daikatsuyaku shinasai."  which translates as “According to my sleep divinations, today is triple lucky.  Go forth with great confidence.”
Weird, right?  Since when has Wess believed in something like fortune telling through dreams?  Is that why he believed Alec’s dream of Hinawa?  And what does this have to do with birds?
Be sure to remember this.
Part 1:  Cleaning crew bird boys
So now let’s take a step back and look at the easiest part of all this.  In all of Mother 3, there’s only 1 bandana that Flint can equip (the manly bandana that Lighter gave him), otherwise the only characters than can equip bandanas are Duster and Salsa.  The bandanas (except the manly one) all have a bird names, with the types being the chick, sparrow, rail (the kana used refers to the water rail, a type of bird), swallow (also a bird), crow, kite (also a bird), and Horus (the Egyptian god whose head resembles a falcon).
Now that’s all well and good, but let’s say that’s not good enough.  Wess and Duster’s connection with watching over the Hummingbird Egg seems pretty solid with Duster’s bird bandanas but let’s go deeper.
When Wess snaps, he consistently refers to Duster as “aho” (moron) and “anoaho” (that moron).  Which is needlessly cruel, but... also a pun.  Yes, that’s right.  The game totters around the joke that Duster is bird-brained, through which Wess is the main spark and Duster is the conduit.  And for the record’s sake this isn’t me excusing Wess’s actions- I’m making an intricate webcomic about his relationship with Duster and him learning how to be a better person for a reason, after all- but I’ve literally heard nobody else talk about this so I honestly think people don’t know about it.
In Japan, “aho” means “moron”, but it is also the onomatopoeia for a crow’s cawing.  There’s a trope known as the “idiot crow” in Japanese media based on this.  What will happen is that something dumb will happen and a crow will fly by and caw “aho aho!”.  Which means “caw caw” but also means “moron moron”.  Thus the joke.  So Wess’s “aho aho!”-ing and using “anoaho” makes him sound like an old crow, commentating on Duster’s mistakes.
Will I get banned from the fandom for making a Homestuck “caw caw motherfucker joke with Wess or-?”
This also feeds into Duster being a bird- “aho” (”moron”) is also used in the word “ahoudori” (”albatross”).  Which is a bird, of course.  And it’s no coincidence either- albatross are known as “idiot birds” in Japan- that’s what “ahoudori” literally translates to.
One more thing that I’ll add to the “Duster’s a bird” pool aside from making a “HEY GUYS LOOK HE’S A FEATHER DUSTER” joke is that his “aho” bird-ness lends him to more “you are ____ type of bird” jokes, which is actually extrapolated by Lighter in game.
Tumblr media Tumblr media
In the Japanese version Lighter says “Sugoshi CONDOR?  Iya sakatta.  Sugoshi hagetaka?  Gaahaahaaha.”  This translates as “[You’re] a bit condor-ish?  No, that’s not it.  [You’re] a bit vulture-ish?  Gahaha.”
A bit “vulture-ish”?  Why does he say that?  And why did Mato translate it as going bald?  Because it’s another wordplay pun!  Much like how “ahoudori” (”albatross”) is literally “idiot-bird”, “hagetaka” (”vulture”) is literally “bald-hawk”.  But even more than that, “hagetaka” (a noun) is similar to “hageru”, the verb for “to bald”.  Since “hageru” is an ichidan verb, you can conjugate it as “hageta” to say “balded”.  And then you tack on “ka” at the end to make the statement a question.  So, in short:
Hagetaka=vulture
Hage=bald
Taka=hawk
Hageru=to bald
Hageta=balded
“Hagetaka?”=“Have you balded?”
Hagetaakaa=the “balding eagle” enemy on Mr. Oriander
Damn, Lighter!  That’s a choice pun.  Now, whether or not he was mostly doing it to make a bird joke, to note that Duster looks balder without an afro, or genuinely comment on Duster’s hairline is anyone’s guess.  But hey thanks for the bird fodder Lighter!
Part 2:  Idiots don’t catch colds
If there’s one Japanese idiom you’ve heard, it’s probably that one.  It’s a funny little superstition- the idea that you’re so dumb that your brain lacks to capacity to get a cold- but surprisingly it may be a belief by which Wess operates.  And yes, this still has to do with birds!  In a roundabout way!
Wess being the type of person to believe in magical dreaming and superstition was a very hard concept for me to process at first after I read that “triple lucky” bit during a Mother 3 playthrough.  With the exception of Duster-related things, Wess seems like a fairly understanding and reasonable person:  he tells Flint to be careful and consider his family before rushing off to confront the Mecha-Drago, he wants to help search for Hinawa, he’s adamantly opposed to Fassad’s BS and is one of the only villagers to actively oppose him, and he even tells Duster (upon inputting “no” during a dialogue tree in early chapter 2) that Duster can target any hatred or resentment he may have towards him, since by Wess’s logic that doesn’t matter as long as their mission succeeds.
So if anything he’s a bit crass and willing to sacrifice his own pride/comfort/personal relationships for the greater good, but his convictions are strong and seemingly grounded in his own sense of justice and logic.  Which is why I always took him as someone who wouldn’t believe in PSI, magic, or anything supernatural like that.  But since he *does* seem to believe in that sort of thing, let’s break down what we know:
Wess refers to Duster as a moron
Duster’s IQ is often tied with Boney’s for lowest party member IQ
Wess tells Kumatora in chapter 3 that “morons like that don’t get hurt or sick”
Duster canonically doesn’t catch fevers while Kumatora and Lucas do
In Japan, there’s the idiom “idiots don’t catch colds”
Wess claims to have dreams with fortune telling powers
Says Lucas will have a “triple lucky” day
Lucas proceeds to successfully pull 3 out of the 7 needles before the chapter is over
It’s almost as if Wess wants Duster to be a moron, because superstitiously Duster would be safer that way.  Hm.  It’s also strange that Wess almost seems magical, which may have legitimately been viable at some point since Wess was planned as a playable character for a long while (Therefore he could have been a PSI user with thunder attacks to replace his bombs).  There’s an Earthbound 64 screenshot of Wess being alive while Duster is fainted and even all the way up through Mother 3 you can still access data suggesting Wess was a normal party member from the debug room (I could make a whole post on that- you can use a glitch to pull up all of his stats except HP and PP).
So Duster may be a bird and Wess an old, superstitious crow with maybe some sort of ambiguous connection to magic... but so what?  Well,
Part 3:  It’s Yo-kai time!  (Yatagarasu, Kotengu, and Karasutengu)
This is a much more speculative section, though I try to be reasonable.
You know, I skimmed over the fact that Duster’s final and best bandana is the Horus Bandana, named after the Egyptian deity with a falcon head.  Horus’s right and left eyes represent the sun and moon, respectively.  His left eye (the moon one) was injured in a fight, explaining the moon’s phases.  Funny, considering that Duster also has a left side injury.
But perhaps Horus isn’t the only ancient deity that we can talk about.  I propose the most compelling case, Yatagarasu:
Tumblr media
(He’s the bird sitting atop the bow)
Yatagarasu is the Japanese name of a myth that originated in China.  He’s a 3-legged crow that is representative of the sun.  Specifically in Japan, he represents the will of heaven and divine intervention.  He symbolizes guidance, as well as rebirth after tragic stuff like battle/war.
Yatagarasu is prominent enough that there’s a Yu-gi-oh card and a Persona based on him too, which is pretty cool.  But even cooler is that he sounds a lot like what the Egg of Light, Wess, and Duster were responsible for.  The Egg was responsible for the rebirth of their lives for the citizens of Tazmily.  And Wess and Duster’s task to protect the Egg for reasons they don’t understand for the sake of a village that doesn’t appreciate their work seems like they’re doing god’s work, so to speak.
An important thing about Yatagarasu too is that it defies the normal Japanese superstition that crows are bad luck.  Yatagarasu is a harbinger of good.  I’m not sure if any of this was intentional or not, but I think comparing Duster, Wess, and the Egg of Light to it is a pretty solid theory.
So let’s briefly skim over Kotengu and Karasutengu, which are lesser Tengu with bird-like faces.  (For my own reference there’s really good write ups here and here about them.)  For the most part the important thing is that they are bird/crow yokai, but one intriguing thing I found is that Kotengu is that they tend to live like hermits (like Wess and Duster), carry items/weapons stolen from humans (the thief aspect), and collect magical items (the thief tools).
Conclusion:
So do I think Wess and Duster are supposed to represent bird tengu?  I don’t know!  Maybe not completely deliberately, but I definitely believe in the strength of the bird motifs (especially crow Wess).  I had drawn a silly little picture about it 2 years ago for Inktober, in fact...
Whatever the case, I hope someone out there appreciates the info dump.  There’s a lot of Mother 3 stuff I’ve examined meticulously so that my Mother 3 webcomic, DutyBound, can be the best it can be.  Sometimes there’s so much info I want to share but nobody who will listen, though!
So if anyone ever wants to hear some more crazy in-depth Mother 3 meta, I’m your guy >.<
142 notes · View notes
Text
Website Programming - The Object-Oriented Programming (OOP) Solution
Tumblr media
Net programming is an factor of internet web page enhancement and the function of world-wide-web programmer is pretty important just as web designer's position in net structure factor of web web site growth. Programming languages have formulated from equipment language to minimal-stage language and then to significant-degree language. The high-level language which is a language shut to all-natural language (the language we converse) is prepared employing selected methods. Noteworthy are the monolithic and structural programming approaches. With the monolithic type, you generate a full plan in a person single block. In structured programming tactic, a system is divided into blocks of codes named modules with every module accomplishing a unique activity. Basic, COBOL, PASCAL, C, and DBASE that ran on MS-DOS system could be penned using equally strategies. Next the revolution of windows operating method, it grew to become feasible to create applications employing a additional advanced structured programming solution than the kind utilized on MS-DOS platform. This is the Item-Oriented Programming (OOP) tactic wherever a system is divided into classes and each individual course is subdivided into features or methods with each and every functionality providing a unique company. C++ and Java are regular illustrations of Item-Oriented Programming (OOP) languages which were being at first made for non-website alternatives. As the preference for net programs grew much more and more according to the historic development of the world-wide-web and the historical progress of web, the need to have to improve on scripting languages ongoing to come up and a single of the ways they embarked on it was by producing scripts Object-Oriented. Java applet and PHP (Hypertext Preprocessor) are illustrations of Object-Oriented Programming (OOP) languages for world-wide-web solutions. PHP was originally non Object-Oriented but it has been absolutely upgraded to an Object-Oriented Programming language (OOP) demonstrating the three pillars of Item-Oriented Programming (OOP) - Encapsulation, Inheritance, and Polymorphism. Consequently, it is attainable to write server-side scripts in an Item-Oriented style. Object-Oriented Programming (OOP) buildings application into classes and capabilities or solutions. To use a class and accessibility the expert services rendered by every operate, you will have to build an occasion of the course. When an instance is established, an item is made which is held by an object variable. It is this object that will now be employed to accessibility each and every purpose and make use of its assistance. The syntax of course instantiation assertion for item generation may differ from language to language. In PHP, you use the new key phrase. For occasion, if you have a class with title purchaser and you want to instantiate it and use the item to accessibility purpose pick_records() in the class, you go about it this way- $cust = new shopper() $cust->select_information() The initial line developed an occasion of course shopper and an object held by object variable $cust. The 2nd line accesses the assistance offered by function choose_information() with the item variable $cust. Java way too employs the new search phrase for object generation but the application of the key phrase in C++ is unique wherever it is utilized by a pointer variable in the course of dynamic memory allocation. I pointed out before the a few pillars of Item-Oriented Programming (OOP)-Encapsulation, Inheritance, and Polymorphism. They are the integral options of PHP. Encapsulation is the approach of hiding all the particulars of an object that do not add to its crucial properties. This is achieved by producing all instance variables of a class non-public so that only the member functions of the course can access its personal instance variables. Inheritance is a situation in which a course derives a established of attributes and relevant behavior from a guardian class. The dad or mum course is known as tremendous class or foundation class and the inheriting course is identified as sub class. The member variables of the tremendous class turn into member variables of the sub class (derived class).   For those who have just about any questions about where by and tips on how to work with mql4 programming, you'll be able to e mail us from our web site. In PHP, you use the key word extends to put into practice inheritance just like Java, for instance class client extends products and solutions Polymorphism is an extension of inheritance. It is a situation when a sub class overrides a function in the super course. When a perform or method is overridden, the title and the signature of the function in the super class are retained by the overriding function in the sub class but there is a modify in the perform code. Another vital attribute of Object-oriented Programming (OOP) language is constructor. A constructor is a operate or approach bearing the identical name as its course identify and it is employed for initialization of member variables and invoked as quickly as the course is instantiated unlike other member capabilities that are invoked only with the use of the item variable. At this position, permit us use submission of data with, for instance, preset asset sign-up kind for even more illustration. Your PHP script desires to retrieve data posted from the kind, link to database, print personalized error messages and insert information into the database table. Working with the Object-Oriented Programming (OOP) strategy, you have to have four functions in the course- The constructor- to retrieve the posted information from the variety. A perform to hook up to MySQL database. A operate to insert history to the database working with the INSERT SQL statement. A perform to print tailor made error messages. Mainly because your method is in an arranged form, it is a lot easier to comprehend and debug. This will be very appreciated when dealing with prolonged and complicated scripts like individuals incorporating simple inventory broking concepts. In just the limit of the structured programming capabilities of the non Item-Oriented Programming languages of Fundamental, COBOL, PASCAL and so forth, you could arrange plan as well by dividing it into lesser workable modules. Having said that, they lack the encapsulation, inheritance, and polymorphism capabilities of Object-Oriented Programming (OOP) which demonstrates a wonderful edge of the Item-Oriented Programming (OOP) strategy.  
1 note · View note
Text
Wednesday Evening Progress
Fixed a string utilities bug where an extra separator was being appended to dumped lists.
The save button in edit mode is properly rigged up to push your changes to file when clicked (instead of the previous debug hotkeys). 61 items remain to be serialized.
Speaking of serializing, I was hoping I’d be able to cut through a lot more of that tonight but instead I spent a few hours chasing down a bug that was causing the second serialized callback to fail on save. It turns out that the registered sprite IDs list wasn’t being cleared in the right spot when levels were being loaded (It was in the dead sprite deconstructor instead of the function that marked sprites for culling).
Fixed an input handling bug that required the game window to have focus before it would let you close the window. Woops.
I’m happy with this evening’s progress. There’s also a bunch of other stuff I’ve gotten done over the last week or so, but Valentine’s day happened and I wanted to wait for it to subside before posting any other update news because my feed was prettymuch flooded with hearts and cuties and I assumed it was the same for everyone else.
I appreciate you guys, and I hope everyone’s day gets better.
Heading to bed, tonight has been productive. Night nerds!
7 notes · View notes
getaether · 6 years
Text
Aether grows past 500 concurrent nodes
It's been a pretty fun week so far.
After I posted Aether for Redditors, Aether ended up on the front page of Hacker News again. (Link)
The drill is familiar by now. Just keep everything working, and it'll pass in a couple days. This time around, I've gotten about 6,600 unique visitors on the main site or so — which is normal, since the HN link was towards the blog, and not the main site.
There's one more benefit in these things — it pushes the system to the next order of magnitude scaling, and it gives you a glimpse of where the next set of scaling issues are going to come from. This is indeed what happened when Aether broke through 500 concurrent nodes online. If you've been on the network for the past few days, you might have been having some trouble seeing new posts from other people. I'm writing to give a little bit of an educated guess on why, and what I'm doing to improve things. The stuff I've mentioned in this one is going to come in an update in the next few days or so.
In general, this is a great position to be in — Aether is picking up steam at a pretty steep pace, so when these 10x whale events happen, it's always insightful. The reason I can be working these issues right now, early as possible, is because you guys came in all at the same time and stressed out the algorithm that chooses which nodes to connect to. So thanks for being here and using it. 🙂
What I thought it was
I had released an update one day earlier, and I thought that was the cause for the connectivity problems. So far as I can see, it wasn't. I reverted that update, and it seems it's pretty much still the same.
There are some users in Windows where because of some sort of antivirus or some other external issue, the app is not able to write cache files. After some debugging with some folks at the meta forum we've ruled that out as the culprit. (Thanks!)
What was happening
Aether is a flood network. For this to work effectively, every node has to choose who to connect to at any point in time. These connections happen every minute or two. These are all outbound connections.
You also receive inbound connections. There is a limit on how many inbound connections you can receive simultaneously at any one time, to respect your internet connection and not to tax your machine. In essence, your node has a defined number of 'slots' that other nodes can connect to. When your node runs out of slots, it starts to tell other nodes: "I'm too busy, connect back later".
An Aether node, to determine which nodes to connect to, does a 'network scan'. This is, in very simple terms, a process to check some nodes that have the highest likelihood of being online.
This network scan uses the first two steps of a full sync. So it's much lighter than a regular sync. It's just a ping.
Unfortunately, what happens is that these pings also take a slot. These slots take 60 seconds to clear, to allow for continued requests on the same slot if needed.
When we had fewer active nodes, network scans and regular syncs were both able to fit the given number of slots at any point in time.
When we came close to the 500 concurrent nodes, that was no longer true. Since syncs hit one node, but scans hit multiple nodes, the scan traffic grew much faster than the sync traffic, clogging the slots that were actually meant for syncs. This is why the updates slowed down.
The sync logic was a little too soft: when it failed a small number of times, it stopped trying to sync in that cycle, and left it for a future cycle. Since the large majority of the nodes in the network were saturated by scans, this meant it kept sitting around a lot. This was a means to reduce the number of scans, since every sync attempt would mean a new scan, but combined with other effects mentioned above, it backed itself into a corner.
What's the fix?
Bunch of things.
The scans will be rate-limited. Now a node can do one scan every ten minutes, instead of being able to trigger a scan every time it wants. This should reduce the slots used by scans. (They are a tiny portion of the traffic—since they're essentially pings—but since they're indistinguishable from a sync starting, they took a full slot.)
There'll be separate slots, only for scans. This makes it so that the syncs will never be blocked by scans.
Sync logic is more aggressive, since it no longer implies a full scan for every retry. It will keep retrying with different nodes using the existing scan data from up to 10 minutes ago, until it can find one that it can sync with, or it exhausts the addresses database. The cooldown for each address is increased from 3 to 10 minutes, so at any point in time, a node will only hit another specific node only every 10 minutes, at most.
In short, we are separating the scans from the actual sync, and it will just be something that happens every 10 minutes, and no longer a service other parts of the app can call at any time they want. The goal is to make scans a little less chatty and dominant, since scanning every attempts vs every 10 minutes does not appreciably diminish the value of scans (far as preliminary testing shows).
This makes it so that the other parts of the app that relies on this addresses table can now be more aggressive, since they are released from having to update this table themselves.
Lastly, having separate, dedicated slots for scans makes it so that we can give 10x the slot count only for scans, since they are effectively close-to-free to respond to.
Why did it work before, and why it didn't work when it grew?
Because the traffic used for scans grew faster than the traffic used for syncs, since syncs are 1:1, but scans are 1:N. So the scan requests grew to be larger than the network's overall capacity growth via new nodes joining. The changes to rate-limit the scans and give them separate slows brings them back to a more linear growth with the network's overall capacity as new nodes are added.
These changes involve some backend changes, therefore it's going to be a few days, and I'll continue to work on and improve the stability in the coming weeks as my work schedule on the business version allows. I'm writing to shed some light on what I'm doing and what's happening behind the scenes.
You should see see a steady stream of updates coming in - the changelog will carry more details. They'll be focused on improving the scalability of the system as it gets bigger.
Growing pains y'all. Cheers!
0 notes
khanasif1 · 6 years
Text
Tumblr media
In the recent time, there has been a new wave in the software industry. Techies have already build lot technologies, frameworks, programming languages, and platform, so the next big question is In the recent time, there has been a new wave in the software industry. Techies have already build lot technologies, frameworks, programming languages, and platform, so the next big question is
HOW CAN WE REDUCE THE GO TO MARKET TIME? 
Cloud on boarding in past few years has really revolutionized the industry and also given a concrete answer to this question. Now in order to push code from developers machine to cloud/on-prem infrastructure, there are a lot of tools and platform available in the market such as Jenkins, Octopus Deploy, Teamcity, VSTS etc. Being a developer what I look for is which tool/ technique can get the job done with efficiency, reliability and min effort.As when we are on client projects we have limited time, and be it any developer he will appreciate max of his time to spend on client’s business requirements understanding, development, and testing than configuring build/release tools 🙂
I have tried my hands around few of the listed tools, I would say each of them be it  Jenkins/Octopus Deploy/Teamcity/VSTS have their own strength and weakness. In totality and that’s totally my personal opinion which many might differ, VSTS has all the tools and features which can speed up to go to market route for any project/technology with least effort.
Tumblr media
I already assume that you have a VSTS account, if not it simple go to VSTS create a new account. You will need a hotmail/outlook account for that.
Tumblr media
Once done you will have VSTS collection created for you, with MyFirstProject as default project. We will create a new project by the name VSTS Devops using New Project button
Below is a quick guide how we can configure a project for VSTS Continuous Integration, for demo purpose I am using ASP.NET MVC project. But if you are building project in any technology/ platform such as .NET/Java/Mobile/Docker etc VSTS has full support for each.
Lets create a simple vanilla ASP.NET MVC project. Build and run. I have made some text changes in default template of Index page as below.  
Connect Visual Studio to VSTS using Team Explorer
Tumblr media Tumblr media
Connect using your VSTS credentials
Tumblr media
  Go to solution control explorer and right click in right pane and select Add Items to Folder
Tumblr media
Once the code is checked in from VS, you can navigate to VSTS and select code Menu item from breadcrumb
Tumblr media
Go to Build tab now and click New definition
Tumblr media
Select code source location and folder path to project folder. You have a wide range of option to select source code location i.e. GitHub,GitHub Enterprise, Subversion, Bitbucket and External Git. I have already posted a blog how you can use Github source control to integrate with VSTS DevOps
Tumblr media Tumblr media
Now we will select Build Template. VSTS out of the vox gives you a long list ready made templates which you can use off the shelf to configure VSTS CI as in image below. In our case we will select and Empty template and configure it for our project.
Tumblr media
Lets add few task to our definition. Just like any .net project build first needs Nuget packages, then Build executed and finally on success the artifacts are pushed to either debug or release folder in bin. Similarly we will add Nuget Task, VS Build task, Copy Build Files task and Publish Files task to build a simple template for build and packaging of our MVC project.
Tumblr media Tumblr media
Let now configure each of the task selected as below:
Tumblr media Tumblr media Tumblr media Tumblr media
As in step 9 we have already configured all the task, next step to text if all the configuration works as desired. If they do at the end of build we will have a success result and in the build result we will have artifact tab available with deployable artifacts.
Tumblr media Tumblr media Tumblr media
Below is the screenshot for build logs pushed in real-time to browser. This is really helpful as it gives details about what is happening behind the scene and  what task is currently in execution
Tumblr media
In our first build nuget restore failed.
Tumblr media
What it states is it is unable to restore few of the packages from Nuget repo. A quick work around is when you check in code in step 3, check in all the Included and Excluded files as below
Tumblr media
Next build request succeeds
Tumblr media
Now if we navigate to Artifacts tab we will get Download and Explore option. If we explore we can see the artifacts packaged as zip
Tumblr media
With this we have achieved as successful Continuous Integration implementation. If you want to push the envelope a bit more next step is implement deployment. Including deployment in CI can be a valid scenario but not always preferred.It is valid for cases where you do not need any workflow for release or you do not have multiple controlled release environment. In order to implement release it’s simple we just need to add a release task, for this demo purpose we will take the MV Website artifacts and deploy in azure web app.
First is you need to add a new APP service to azure, for demo we are adding VSTSDevOpsCI. If you do not have an account it is simple just create new Azure account (please do use same Hotmail/outlook account details you created above, this will make things easy in further), you will get $250 credits to your subscription as complimentary for first month. Add a new Web App.
Tumblr media
Next you need to link your azure account to VSTS. In Azure subscription item under Azure App Service Deploy task. Click Manage. Click new Service endpoint select Azure Resource Manager
Tumblr media
Once your Azure account is connected to VSTS. You can access all resources in your Azure subscription using server endpoint created in VSTS.
Add a new Azure App Service task to build definition
Tumblr media
Lets configure the task. We have select the same endpoint as created in step 2. This populate VSTSDevOpsCI app service in pick list. Also the package folder path is $(System.DefaultWorkingDirectory): Refers current build directory path on server ** : Refers to check all folder till you find DevOpsWeb.zip
Tumblr media
Let try to queue a new build if all goes well will have the MVC website deployed to VSTSDevOpsCI  app service after CI complets.
Tumblr media
As you can check the URL the website is running in Azure
Tumblr media
In order to do a quick test, let’s make some changes in our VS code and check in again it should update the website in azure.
Not yets there now……. In order to accomplish above release per check in requirement we need to update a simple setting in build definition as below. Go to trigger tab and check Enable continuous integration checkbox
Tumblr media
Lets update the code in VS and checkin.
Tumblr media
Build gets queue as soon as checkin complets
Tumblr media
As below the Build #12 is successful
Tumblr media
So lets got azure website now to check if the changes are reflected, yes it does the heading has Version 1.0 added.
Tumblr media
Summary: As you can see it’s very simple to configure CI in VSTS and if your project has simple release plan then release can be integrated to same build definition. Now if you have a question around, that all this looks cool but I do not want to deploy my artifacts in Azure, I want to deploy in AWS or OnPrem server. There are wide range of solution to this problem: you can download artifacts using VSTS apis using automated tool and deploy in desired environment, better way is you can get a copy of VSTS build agent setup for your collection you can install the agent on one of your AWS/ OnPrem server and then instead of using Azure as deployment point you can use File transfer task or Powershell task to deploy in desired IIS folder on desired server. Avenues are endless VSTS is very matured now and VSTS team has already address most of regular CICD challenges experience by any project team. If you don’t get an off the shelf task for your requirement you always have powershell/batch task options to build one.
HAPPY CODING………..
VSTS DevOps: Quick guide to setup VSTS Continuous Integration In the recent time, there has been a new wave in the software industry. Techies have already build lot technologies, frameworks, programming languages, and platform, so the next big question is In the recent time, there has been a new wave in the software industry.
0 notes
Text
Service Articles From AMAZINES.COM.
You've been coping with so many traits since the break up, have not you? People which have enthusiasm for establishing their personal organisation understand the truth the to create cash and gain profit from the lawns from people is actually a sensible program. Satisfy assist by discussing this blog, assisting autism understanding as well as thinking about just how YOUR town, service or work place could also be actually autism pleasant too.
Tumblr media
At some point, by time the youngster goes into preschool, he is actually seasoned and proficient adequate to be pals along with a whole team of other kids as well as appreciate his expertises along with others. Typically made coming from recycled product, wine bottle holders are additionally eco-friendly and also built to last a number of years. Whether playing a video game or involved in an item of work, if the environment is antagonistic at that point individuals come to be stressed out as well as concerned, afraid of making a mistake or from performing something wrong. I suspect at times our company acquire caught up in our everyday lives as well as cannot understand that therre are many issues on the market that should be taken care of. Often times, individuals request for help considering that they doubt their personal capabilities. The work postings mirror the work locations found due to the folks served through Right Neighborhood Companies, Inc First try one environment friendly product, then the other, at that point yet another much better one, and also's exactly how you become a setting friendly individual. An antagonistic medical professional will be at the bottom from the step ladder with handful of close friends. Exactly what you are to discover, above all, from the Parable from the Sower, is actually that whatever hinges on words from God in Christ-- who is Themself the Word-made-Flesh. The concern is that scientific research occasionally ignores the analysis, certainly not because of a negligence in the research study, however because of which carried out the research. The holy book states that he which possesses a plethora of friends need to present themself friendly.
Tumblr media
Similar to many various other types of insurance policy, funeral insurance coverage exists to protect folks against unrestrainable costs in the course of demanding and also stressful times. Approximately like that, a loud scream was heard, Nansou is lowered a lot of opportunities over.
Tumblr media
To that luckied, divine Church you additionally belong by the goodness and grace from God in Christ Jesus. Awaiting trouble creates remarkable issue for the person who is dying, horrendous planning from the departure from their loved one, and bring in the corrections to life without the familied member. His byline has appeared in the Washington Message, the L.a Times and Bon Appetit. Yet another neighbour likewise defined Liang as a delightful and also pleasant girl, who often played with her little ones in their lawn. GREATER LONDON (Thomson http://poznajpielegnacja4u.Info/Cena-grow-ultra-Kontra-dzialanie-i-porost-wlosow/ News Agency Groundwork) - More than half a million children which drop ill with tuberculosis each year go to risk of perishing because of a shortage from child-friendly therapies, professionals said. Microsoft's Xbox One is actually obtaining extremely much more indie-friendly along with today's confirmation coming from Microsoft that its own honest video game console will function as a programmer debug device. Each temperament kind at some time thinks yet another style is actually "much better" however that sensation is normally related to one thing they admire during that person that they can easily not do conveniently.
0 notes
flatlogic · 3 years
Text
22+ React Developer Tools to Increase Your Programming Productivity [Updated 2021]
New Post has been published on https://flatlogic.com/blog/22-react-developer-tools-to-increase-your-programming-productivity-updated-2021/
22+ React Developer Tools to Increase Your Programming Productivity [Updated 2021]
React Developer Tools Reactide Belle react-styleguidist React Material template React Semantic UI Profiler React Component Benchmark React Developer Toolbox React Bootstrap Admin template Sing App Periscope React wastage Monitor React Studio Atom React Plugin React Extension pack React Style generator Flatlogic One React React Testing Library React Monocle React + Redux kit React Boilerplate Storybook React-Sight
Conclusion
As you can understand from the title of this article, the goal is to be more productive developing React applications. That is why a long intro is unnecessary. 
There are only two points that I want to highlight at the very beginning of the article:
This list is opinionated. That means first of all that you can make your additions. I am sure that it can be extended to 30 or even 40 React developer tools. That is why your comments on Facebook or Twitter are highly appreciated. This article can be useful first of all to beginners. That is why I provide some additional historical or background information about React.js in some paragraphs.
React Developer Tools
Reactide
Github stars: 9662 Web-site: http://reactide.io/
Image source: http://reactide.io/
Reactide is an integrated development environment (IDE) for web developers using React.js. If you use this tool, you don’t need server configuration as well as build-tool. Reactide is a React developer tool, it is simply a desktop application that offers great opportunities for visualization thought live code editing.
In Flatlogic we create web & mobile application templates built with Laravel, React, Vue, Angular and Bootstrap to help you develop web & mobile apps faster. Go and check out yourself! See our themes!
Belle
Web-site: http://nikgraf.github.io/belle
Image source: http://nikgraf.github.io/belle/#/?_k=744r8m
This open-source library was built by the members of React community. Belle is a UI framework that was built because of the difficulties with creating a decent UI with React in a short period. Too much freedom with React can lead to a giant waste of time. And that is where the opinionated component library Belle comes in handy. You can easily customize these components, and think only about the features you need to have. Mobile support and consistent API complying with React are also two big pluses of this React dev tool.
react-styleguidist
Web-site: https://react-styleguidist.js.org/docs/getting-started
React development environment. You need to install webpack in order to use this tool. You can see some examples here and here.
React Material Admin
Web-site: https://flatlogic.com/templates/react-material-admin
Image source: https://flatlogic.com/templates/react-material-admin
Admin template is a great React development tool that simplifies the process of coding. The benefits of using admin templates are well known. This particular admin dashboard follows Google material design guidelines. It is completely jQuery and Bootstrap free and can be used for fast development of almost any kind of web application.
Basic Tables; React Router;
Charts; Authentication; Basic Dashboard; Notifications bar.
Do you like this article?
You might want to read  “19 Online Tools for Creating Charts”
React Semantic UI
Web-site: https://react.semantic-ui.com/
Image source: https://react.semantic-ui.com/
There is an original Semantic UI library. And to use it in React you need to use a React integration of this library and Semantic UI CSS package. It will help to speed up the development process because of the prebuilt UI components. React Semantic UI is jQuery-free. As you probably know jQuery is a library for DOM manipulation. That is why it is unnecessary to keep real DOM in sync with virtual DOM (React uses JS representation of the real DOM). 
Among other features semantic UI React has:
Declarative API Shorthand Props Sub Components Augmentation Auto Controlled State
Profiler
Web-site: https://github.com/reactjs/rfcs/pull/51
Image source: https://reactjs.org/blog/2018/09/10/introducing-the-react-profiler.html
Two years ago the React team introduced Profiler. It gives you a summary of re-rendering of your app. You can increase your debugging performance using this “recording” your set of interactions with the help of this profiling feature. You will be able to see a visualization of re-render as well as screenshots of DOM update. 
React Component Benchmark
Web-site: https://github.com/paularmstrong/react-component-benchmark
Image source: https://github.com/paularmstrong/react-component-benchmark
Do you remember react-addons-perf? This tool provided developers with insights about app performance. As the new version of React has been released you can no longer use react-addons-perf. React Component Benchmark is an open-source project that aims to solve the problem of getting an accurate benchmark metric. But it is important to understand that only large enough sample will give you a confident metric. The reason it’s happening like this is that this project does not hook into React directly. And because of this values are not accurate enough. That is why it is reasonable to run large samples using this React development tool.
React Developer Toolbox
Web-site: http://react-toolbox.io/#/
Image source: http://react-toolbox.io/#/
This is the best tool for developing Material Design UI. It has tons of responsive components that comply with Google Material Design guidelines. The exhaustive list you can find right here. React Toolbox is created on top CSS Modules, ES6, and Webpack. Documentation page contains all the live examples of each component so it’s very illustrative. 
React Bootstrap
Web-site: https://react-bootstrap.github.io
You can make a case that bootstrap is the largest UI ecosystem in the world. So React-Bootstrap was built for compatibility with Bootstrap. This is one of the oldest libraries for React. It has Bootstrap core, rely on Bootstrap stylesheet and fully evolved side by side with React.js itself. If you want a set of accessible-by-default components React-Bootstrap is giving you much more possibilities than plain Bootstrap. 
Admin Templates: Sing App React
Web-site: https://flatlogic.com/templates/sing-app-react
This fully responsive admin template was downloaded more than 1000 times. This template is versatile and was built by professional UI/UX experts. It has more than 60 ready-to-use components and provides you with intuitive framework. It can be useful for building such CRM, CMS, SAAS, etc.
Tens of Pages Fully Responsive 8 Charts Library 2 Dashboards Theme Support E-Commerce Section Static & Hover Sidebar Fully Documented Codebase
Periscope
Web-site: https://github.com/shea-hawkins/periscope
Image source: https://github.com/shea-hawkins/periscope
There isn’t much to say about this open-source project. This is monitoring for Redux applications. You can view your app at all times and adjust the timeline range. 
React Wastage Monitor
Web-site: https://github.com/MalucoMarinero/react-wastage-monitor
Image source: https://github.com/MalucoMarinero/react-wastage-monitor#react-wastage-monitor
This project helps you to manage performance issues by detecting wasted rendering time. To understand the importance of this tool you need to dive deep into the concept of <PureComponent>. Implementing PureComponent stops the process called React reconciliation (you can read more here). And PureComponent only re-render when it’s necessary. If you rely on Redux managing to access possible performance mistakes you risk making a critical mistake. React Wastage Monitor ensures you never waste computation on unnecessary renders. 
React Studio
Web-site: https://reactstudio.com/
Image source: https://reactstudio.com
React Studio is a useful tool for web developers and web designers. Web developers can enjoy clean JS code, good visual design representation that respects React.js concepts. You can design separate UI components using the code generator. A designer can enjoy responsive layouts that can be easily turned into React code, mobile preview and use it as a prototyping tool. You can have your clean code promptly with nothing extra. 
Atom React Plugin
Web-site: https://orktes.github.io/atom-react/
Image source: https://orktes.github.io/atom-react/
This is support for the Atom Editor that helps highlight JSX code. JavaScript Syntax eXtensin without the plugin is very difficult to work with. With the addition of highlighter and code folding, you can make fewer mistakes. It will help you be more productive and makes your job easier.
React Developer Tool. Extension Pack
Web-site: https://marketplace.visualstudio.com/items?itemName=jawandarajbir.react-vscode-extension-pack
Image source: https://marketplace.visualstudio.com/items?itemName=jawandarajbir.react-vscode-extension-pack
As well as the previous tool this one is used to adjust your code editor. You can speed up the development process in Visual Studio using these seven extensions:
Code snippets; An integrated npm; ES6 snippets; ESLint; File paths; IntelliSense for npm modules; A search feature for node_modules.
React Style Guide Generator
Web-site: http://pocotan001.github.io/react-styleguide-generator/#!.
Image source: http://pocotan001.github.io/react-styleguide-generator/#!.
You need to maintain a consistent style across all the pages. When a big team is working on the same project all colors, typography, paddings should be consistent. To make a convenient style guide you can use React Style Guide Generator. And even if in a couple of years you will need to make adjustments or addons to your project you can simply give a developer or agency your style guide. 
Flatlogic One React
Web-site: https://flatlogic.com/templates/one-react-template
Image source: https://flatlogic.com/templates/one-react-template
This is an admin template made with React 16 and Redux. The template has a responsive layout with tens of pages and hundreds of customizable components. The designers did a good job on this product. Flatlogic One React is a good basis for creating CMS systems, SAAS, Blog/Data management solutions, E-Commerce.
Tens of Pages; Beautiful charts made with Amcharts, Echarts, and Apexcharts; Fully responsive; React 16;  Redux; Login and Logout screens; Notifications & Icons; Flatlogic Typography & Icons; 2 Dashboards;
Google Maps Integrated, etc.
If you’re interested in more examples of a react template, Flatlogic team can offer them for you.
React Testing Library
Web-site: https://testing-library.com/docs/react-testing-library/example-intro
If you use create-react-app you have support of Testing Library. If you don’t, you can use npm
npm install –save-dev @testing-library/react
React Monocle
Web-site: https://github.com/team-gryff/react-monocle
Image source: https://github.com/team-gryff/react-monocle
When you work on some complex projects with tons of classes of components it is always hard to manage such a project and debug it. In this case, only a transparent structure of a project is a condition for the successful delivery of a project. React-monocle can visualize all the relationships of all the components and show you the hierarchies very fast. 
React + Redux starter kit
Web-site: https://github.com/coryhouse/react-slingshot
Image source: https://github.com/coryhouse/react-slingshot
This starter kit implements React best practices. This includes:
Bundling; Minification; Testing; Lintinting; Hot reloading, etc.
The most valuable part of this project is the amount of developers expertise that was put is this boilerplate. You no longer need to make tons of difficult decisions starting from the structure of the project until the testing. 
React Boilerplate
Web-site: https://www.reactboilerplate.com/
Image source: https://www.reactboilerplate.com/
When you start a new app very often create-react-app crosses your mind. But you can also use a boilerplate with all dependencies prebuilt. This ready-to-use was created by the community to maximize the development speed and therefore your effectiveness. React Boilerplate can easily work with well known Chrome Redux DevTools.
Storybook
Web-site: https://storybook.js.org
Image source: https://storybook.js.org/
Storybook helps you develop nice separate UI components. In case when you need to make some isolated from business logic this tool provides so-called sandbox. And that in this sandbox or playground (you can call it as you want) you can create components. So why it is called a storybook? Because it documents components as stories. Each story contains states. Each state can be may be compared with the visual test case. In the end, a story is simply a function. This function returns a value that is rendered to the screen. 
React-Sight
Web-site: https://github.com/React-Sight/React-Sight
Image source: https://github.com/React-Sight/React-Sight
This tool fully supports Router, Redux, and Fiber, and shows your app’s hierarchy. As well as previous visualization tool it requires to React Dev Tools that can be installed as an extension in Chrome. 
Finally…
JavaScript is famous for the number of tools that you can use. As time goes by you get overwhelmed and tired. You need to have a set of proven tools for your coding process. We offer you a series of articles about React.js development tools.
The post 22+ React Developer Tools to Increase Your Programming Productivity [Updated 2021] appeared first on Flatlogic Blog.
0 notes
skqq-net · 5 years
Text
The 6 Most Common Causes of WordPress Website Crashes (And How to Prevent Them)
Proudly owning a self-hosted web web page will virtually undoubtedly be enjoyable and rewarding. And for companies, it’s wanted to take care of a web web page that appears upright, works successfully, and that you simply simply would possibly per probability virtually undoubtedly rely on.
wordpress is an edifying platform for getting this finished. Nonetheless no talents is agreeable, and no-one is proof in opposition to making trustworthy errors every now and then. 
A take heed to 200 companies printed that web web page downtime fees endeavor companies greater than $26.5 billion in misplaced earnings every year. The be aware additionally confirmed absolutely 56% of companies in North The US keep a opinion to acquire successfully from an outage.
That doesn’t have to be you. No matter how assured you would possibly per probability virtually undoubtedly be to your platform or your consideration to side, you unruffled should know relating to the long-established causes throughout the inspire of web web page crashes and what you would possibly per probability virtually undoubtedly attain to insulate your self in opposition to them.
1. Deletion of Extreme Sources
Everytime you occur to by accident delete one factor out of your wordpress state of affairs, the outcomes will virtually undoubtedly be fast and doubtlessly disastrous. Generally, web web page owners would possibly per probability virtually undoubtedly by accident delete one factor take care of:
A plugin that’s extreme to web web page performance
Up up to now information
Net swear on-line consumer profiles
Weblog posts and articles
Photographs, logos, and theme information
Sooner than you undertake any web web page upkeep, it’s crucial to inspire up all of the information you’re eliminating or enhancing. It doesn’t matter how minor they could per probability per probability virtually undoubtedly additionally look like. If one factor you alter breaks your web web page, you don’t want all of the items offline for an prolonged length whereas you establish methods to restore the lacking sources.
Defend these redundant backups after your state of affairs has lengthy gone dwell over once more, upright in case a ache vegetation up and it’s appreciable to roll one element, and even all of the web web page, inspire to a earlier iteration.
In 2016, this correct ache prompted a UK-based completely largely cyber web internet hosting firm to show their purchasers, and a substantial fragment of the accumulate itself, to “catastrophic error.” The perpetrator? Unintended file deletion staunch by way of routine server cleanup.
2. Errors With Plugins
Everytime you occur to’re accustomed to wordpress, you already know “there’s a plugin for that.” Plugins allow worthwhile performance, nevertheless you would possibly per probability virtually undoubtedly’t essentially vouch for his or her builders. They may per probability additionally as quickly as rapidly attribute in methods by which wrestle with each different or a separate attribute, inflicting web web page concerns, even virtually undoubtedly web web page outages.
Little question one in every of your duties is to sparsely vet the instrument builders you suppose into your digital ecosystem. Your different job, for people who suspect a wordpress plugin wrestle has prompted your web web page to smash, is to ticket the ache to its supply.
Consider in ideas taking out a pen and a notepad and recording when, and in what expose, you carried out the subsequent initiatives not too long ago:
Put in an odd plugin
Up up to now an current plugin
Made modifications to the state of affairs theme
Edited a PHP file
Plugins change even the core features of your web web page as quickly as rapidly. Make sure that you simply simply resolve plugins sparsely to inspire away from concerns and know the association to methodically troubleshoot factors that attain occur.
3. Your Area Identify Has Expired
Area title expiration is an extremely long-established supply of wordpress web web page outages. The upright information is, it’s additionally one amongst the highest to forestall and restore.
We don’t know why so many web web page owners neglect this section of their web web page. You don’t possess the phrases, nevertheless you possess that specific mixture of them. Your space title is how prospects procure you, and is one amongst essentially the most conventional branding workouts you’ll ever undertake.
Nonetheless it indubitably requires routine upkeep take care of the alternative sides of your web web page. Log into wherever you acquire your space and be apparent your contact information and cost method are up to date. Everytime you occur to’ve modified any of this information, otherwise you don’t keep “auto-renew” turned on, your space would possibly per probability virtually undoubtedly lapse, rendering your state of affairs unreachable.
4. Website site visitors Surges
There are site visitors surges you would possibly per probability virtually undoubtedly opinion for, take care of Gloomy Friday and Cyber Monday stAMPedes, and some you upright can’t. All individuals hopes their advertising and marketing swear materials goes viral. Nonetheless can your web web page server deal with the sudden inflow of site visitors you’re crossing your fingers for?
wordpress is quick to remind its prospects that the platform is absolutely as unparalleled as a result of the {hardware} working it. Firms that haven’t considered processor and community speeds would possibly per probability virtually undoubtedly procure themselves unprepared for a spike in site visitors.
What would possibly per probability had been a account-breaking gross sales day would possibly per probability virtually undoubtedly peter out into nothing for people who don’t dwell up to your needs and develop as a minimum a measure of future-proofing into your server and restore picks.
5. Host Availability Problems
Generally, wordpress outages consequence from errors on the consumer side. Nonetheless on uncommon occasions, the host itself would possibly per probability virtually undoubtedly talents a ache that renders consumer web sites unreachable. In different circumstances, take care of 1 favourite incident from summer time 2019, the outcomes have been equal sides absorbing and disruptive.
In July, web sites hosted on the wordpress VIP Sprint platform started serving default themes, largely that includes cactuses and succulents, in dwelling of customized themes chosen by the shoppers. The outcomes didn’t “hotfoot viral” so unparalleled – they mysteriously propagated staunch by way of the accumulate.
VIP Sprint prospects virtually undoubtedly didn’t keep too some ways to forestall this one. Nonetheless wordpress outfitted short-timeframe selections and vital instructions as they labored on a restore. You don’t want prospects completely thrown for a succulent loop after they speak over alongside along with your state of affairs.
So be aware to be aware the linked PR and tech toughen teams on Twitter and different platforms, or procure out relating to the quickest ability to obtain updates about ongoing factors and resolutions.
6. Unintended Vitality Off
Information facilities keep emergency-energy-off (EPO) switches. These are as quickly as rapidly for serving to comprise fires and mitigating harm from emergencies. Nonetheless if anybody by accident invokes the EPO staunch by way of business hours, your web web page would possibly per probability virtually undoubtedly tumble out of existence.
Generally, emergency energy-offs don’t even keep an influence on an entire information middle. In 2017, Amazon’s cyber web internet hosting merchandise and suppliers skilled an outage that took down many excessive-profile web sites. They at closing traced the ache inspire to an worker who “took extra servers offline than meant” staunch by way of a debugging session.
The ache of unintended energy-offs isn’t odd to wordpress-hosted web sites. Nonetheless wordpress customers keep the ability to inspire up their full state of affairs independently throughout the cloud, the utilization of paid third-occasion devices furthermore to free-to-use selections. Incandescent you would possibly per probability virtually undoubtedly tumble inspire to a restore level for people who attain lose vitality out of the blue is a potent supply of peace of ideas.
Don’t Let Downtime Recount You Down
Whether or not or not you’re a wordpress consumer or not, you now keep the subsequent understanding of web web page outages and the steps you would possibly per probability virtually undoubtedly bewitch to forestall and procure successfully from them.
Kayla Matthews
Kayla Matthews is a wordpress blogger and self sufficient writer. She’s finished freelance work for Digital Traits, The Week, Net swear on-line Journal and VICE. To learn extra posts from Kayla, visit her weblog, Productiveness Principle.
The put up The 6 Most Complete Causes of wordpress Net swear on-line Crashes (And The right way to Dwell Them) appeared first on Torque.
from WordPress https://ift.tt/2ZWMKPy via IFTTT
0 notes
coatescoates2-blog · 7 years
Text
Effective ways to See TV On The Computer.
Your new computer is soft and also quick running and it is a joy to work with. If you're willing to cut the connections with conventional broadcast televison broadcasting totally, the Logitech Squeezebox still does substantially more - using Spotify streaming, plus access to a handful from other solutions. It's a great idea, to some extent, however many individuals have actually due to the fact that disclosed that through turning the function off they have observed an increase in the speed around their property system. Android Jelly Bean permits you to program your phone to monitor your records consumption if you don't possess limitless data. Among them was actually to make a computer system course that could defeat the globe mentally stimulating games champ. Yet another essential reason to have pc certification courses is actually to be capable to maintain innovation as that alters. Those of us that are outdated enough to consider obtaining our 1st pc - my own was actually a ZX Range 48k, back in 1983 - will certainly no question have sentimental minds from filling the games up coming from a tape and also playing them up until our company either finished all of them or even our team extended the tape relevant where this was meaningless. Certain contacts disrupt the eye's all-natural moisture as well as greasing triggering the cornea to end up being completely dry, reddish with irritation, as well as knowledge sight distortion. In terms of world wide web hookups, the site highly recommends a broadband relationship of 1.5 Mbps. A natural smile will aid you to maintain your eye get in touch with suitable and real. This is actually certainly not a huge offer, but that gives buyers more option on how their phone appears, each front end and back. The conveniences from a connect with lense over brilliant glasses is actually that photos predicted directly into the eyeball through a lens would be actually dramatically higher quality in comparison to those altered onto an exterior monitor. It is actually huge though, thus if you want a smaller sized phone this will not be actually the best option for you with its 5.5-inch 1080p display. The step off a traditional phone screen to one that feels like this's trying to burn your retinas is actually strange, however the outcomes are actually great. A very clear red flag from not having good enough RAM is actually if your computer decreases every single time you try and refine large documents, or even that freezes will accomplishing a number of other activities instantly. I have actually simply possessed this phone for 3 times today and also I do not acknowledge the problems the reviewer had using this phone. Sweat eczema feels like eczema atopica and the winter months itch in relations to chronic eczema symptoms. This application gives a number of tutorials presenting your mom the best ways to appreciate her phone, and also gives her reputabled get in touches with the distant capability that can help deal with as well as change her Doro smart device off their smartphone no matter where they are. Gone are the times from must acquire a pricey, premium computer system and putting up complicated software program and also data sources prior to also writing the initial line from code. With perhaps very first mainstream game of the kind, Tetris, Nintendo managers bargained with Soviet Union computer system programmer during the Tension to acquire the copyright for a tile-matching activity they would package with the Gameboy. Simply give total details of the post and the mistake hyperlink (if the short article looks online) or the web page number and date of article if in paper. Given that of the reality this allows you observe specifically what an additional person is actually doing on their phone, this is grouped as a surveillance device. One more niggle our company discovered is that, unlike other phones that our company have actually utilized as well as assessed, high resolution photos can't be actually picked off your social networking accounts, they can simply be actually attracted from your Google account. Simply think of as your battery goes flat some one aims to telephone you to inform you your mommy has actually just been actually taken right into health center!!!!!!!!!!! Your group gets on the roadway toppling a customer and in the nick of time you become aware that you've left an important part from your discussion unwinding at your office on your home computer. Im from Denmark - and also below there is no 64GB version - and I require a phone with double SIM. Even if you're certainly not in to Virtual Reality, this suggests you are actually getting state-of-the-art specs adequate for power-hungry gamers, and also is actually superb news for any person who really wants a rapid phone years later on. We needed to shuffle the phone around in the palm to transform it on and off on many events, and a lot of the amount of time our team couldn't utilize our finger to hit the whole of the screen without shaking the phone up and down. So as for your personal computer to be capable to check out the game discs you need a specialized game copying item of software. As an example, Armor Video games could supply you $3,000 center however $150 for each 100k plays on their web site and $200 for striking the front webpages of Kongregate and also Newgrounds - all landmarks that our best video games frequently struck. There are actually a lot of fixed term, full time as well as part time postures offered within Telesales. Once more our company were actually a little bit of discouraged that, unlike with the great HTC Feeling, there is no automatic call matching as well as linking. Back on the main contacts page there is actually a helpful alphabet down the right-hand man of the display permitting you to hop to a particular letter to spare you scrolling manically down your substantial call list, plus there's a search club at the top of the webpage if you prefer to tap in a name. A phone is most vulnerable from significant damages when dropped on its side, causing surges from stress that can shatter a display. I recently received a TP-LINK powerlines wireless N extender set for identical explanations and also I now possess perfect wireless reception in the room for my tablet and also phone via powerline relationship to my free-from-my-ISP hub. Steinberg states he believes students are more concentrated resting at a desk in front of a pc than when they are actually gazing into a mobile phone. Coming from opening your timetable to conserving amount of money, there are actually many perks to watching TELEVISION on your personal computer. Proofreading is actually mostly about looking your creating for errors, both typographical and also grammatical, prior to providing your newspaper for a viewers (a teacher, an author, etc.). Use this source in order to help you discover as well as repair usual mistakes. This had not been a large issue as our company do not count on the particulars coming from Facebook, that merely made our call checklist a bit uninteresting with all the missing graphics. The majority of times, you would certainly merely type the telephone number right into your preferred online search engine and smash hit enter. A notable part of guide packages naturally with Papert's expertise in monitoring kids use LOGO DESIGN and also obtain, on their own, important concepts from geometry, math, personal computer programming as well as debugging.
0 notes
Text
New Post has been published on Atticusblog
New Post has been published on https://atticusblog.com/the-quiet-power-of-androids-custom-launchers/
The quiet power of Android's custom launchers
A launcher can change the way you interact with your tool
It can make your life simpler. It can make it less complicated so that you can get right of entry to the items you need — making pertinent info available with a look or with a short tap, swipe, or pinch in just the right spot. That’s precious in case you’re the use of your tool for enterprise, the use of it for delight, or using it for a few combination of the two. And you positive as heck don’t have to be an energy user to comprehend it.
[ To comment on this story, visit JR’s Google+ page. ] Whether you dance around Android like a seasoned or just stick to the basics, an amazing launcher can make an awful telephone tolerable and a superb smartphone extraordinary. But like most matters inside the world of personal generation, there is no accepted “proper” answer. Finding the “great” launcher is mostly just about figuring out what type of setup and series of alternatives works pleasant for you and your own non-public options.
And man, are there some fantastic alternatives obtainable
I’ve long been keen on Nova Launcher for its total control method to customization and the plethora of options it provides — now not to mention the short tempo at which its developer always works to put into effect thrilling new features and thoughts (have you visible his modern-day innovation?!).
I recently spent some time the use of Evie Launcher and got here away inspired through how it makes use of search because the centerpiece for the home screen enjoys and how transformative of a perception that seems to be. Instead of just doing greater of the same, its developers set out to create something meaningfully specific from the whole lot else obtainable — something with its personal distinct cause and raised’être. As a result of that clever and authentic technique, they controlled to accumulate a respectable huge fan base in an impressively short amount of time.
I even spent numerous months the usage of Google’s new Pixel Launcher after choosing up a Pixel of my personal final fall. While it’s far much less feature-packed than my usual launcher selection, I really dig its simplicity and the smooth, platform-regular aesthetic it brings to my tool.
But no matter what number of launchers I try or how tons I experience them, there’s one launcher I simply keep coming lower back too. It’s Action Launcher, via a fella named Chris Lacy — and it fits my workflow in a manner no other launcher ever pretty manages to parallel.
Keeping Your Cooling System Quiet
Then, homeowners realize that the cooling gadget they just established makes more noise than they like. These pointers will help make certain that everyone can nonetheless pay attention the television over top of the fans within the cooling device.
Anti-vibration mounts
When the enthusiasts get going, they are going to vibrate as a minimum a touch bit. It is not a count number of whether or not they vibrate, but a be counted of the way to hold them quiet. If human beings hear a vibrating noise, anti-vibration mounts are the way to head. Anti-vibration mounts are generally made from rubber, and paintings precisely like everyday ones. The rubber that anti-vibration mounts are manufactured from enables to prevent the vibrations from achieving the timber or metal to prevent that stressful noise from disrupting everyone’s favorite display.Other words for quiet.
New enthusiasts
After installing anti-vibration mounts, there may nevertheless be noise from the enthusiasts themselves. Anti-vibration mounts will best help with noise from that motion, and so that it will not be enough to quiet a loud fan. Not all lovers are designed to be quiet. Consumers are encouraged to remember the fact that there may be no such element as a silent fan, but there are positive products which can be designed to be as noiseless as possible.
Taking the time to shop around to discover a fan that is as quiet as possible might be properly really worth the time when all and sundry can hear what is going on in the sport instead of the constant whirring noise of lovers.
Include plenty of areas
There wishes to be sufficient room in the media cabinet for the fans themselves and then introduced room above or under components of the cooling machine for air flow. Most people do not realize this if it is their first time making their very own cooling system. Then, when they may be finished, they understand their cooling system sounds like a miniature wind tunnel.
How Do Power Stations and Coal Mines Affect Your Surroundings?
Most strength stations which might be taken into consideration the dirtiest coal-fired power vegetation, are set to close down in March this 12 months. This fundamental challenge and moving far away from fossil gasoline energy and towards greater renewable power options are currently being met with mixed reactions through special sectors of society. There are benefits and repercussions that could impact the certain place as a whole, but on the identical time, the consequences of the transition can also be right now felt by using the groups which have been primary players in supplying energy necessities for the longest time.NFL offense and defense rankings.
Know how these power stations and coal mines affect your surroundings and why closure is necessary
When these strength stations and coal mines are closed the carbon emissions will lower. The strength plant is one of the oldest coal-fired strength plants in u . S . A . In addition to one of the maximum emissions in depth ones. It burns greater carbon-extensive brown coal, and as such has been generating what is equivalent to one,400 tons of carbon dioxide per gig watt-hour of energy produced. And once the plant’s operations give up, there could be a right away effect on carbon emissions.
Additionally, community and environmental health will improve. Burning coal creates pollutants which place humans dwelling in the location of the plant at danger for various health conditions. Closing the plant approach that locals will revel in appreciably less publicity to harmful air-borne debris.
However, closing these flowers also has drawbacks and downsides
Among those is the rise of strength rate. Closing the coal mines way that human beings must now depend upon power to meet their energy necessities. However, even though households pick out to use energy-efficient lighting fixtures and appliances, the demand for strength keeps rising, pressuring expenses to do the identical.
Closing such plants may even create higher unemployment tiers. Hence, the transition stands to strike a main monetary blow that could without delay have an effect on the lives of the locals. The plant employs over three hundred contractors and 500 bodies of workers. These flowers were providing the vicinity’s strength desires for decades and the closure has locals suffering to visualize an unsure future.
How to Perform Android Battery Testing
The fast battery discharge is one of the most massive problems of state-of-the-art fact. Modern smartphones or capsules include superior functions and they may be full of various competencies. But all this is the purpose why software program checking out company need to paintings harder than ever.Android tutorial for beginners pdf.
Frequently, customers make a few manipulations with their devices: switch off cellular statistics or pick out low power mode which reduces energy consumption. For those motives, QA experts must execute thorough checking out of battery to understand how plenty power is eaten up by using a sure application.
Usually, unique testing tools are used to test battery consumption
Let us make an instance how to test Android battery, the use of Battery Historian testing tool. Before proceeding at once to test method, one has to remember the operation peculiarities of battery historian tool itself.
Battery Historian Tool Peculiarities:
it is a Google device; calls for knowing of programming (as a minimum command line); it’s miles an open-source Python script; works on Android (starting from five.0 model and later); examine battery on the basis of Android computer virus report files; operates on Mac OS, Windows, and Linux. The listing above proves that this device is a substitute effective. All you need to execute battery testing is to fulfill a few necessities: activate USB debugging on Android device; install Python inside the gadget; Android Debug Bridge (ADB) presence. Only after all necessities are met, QA group may additionally start to take a look at the process. Usually, the take a look at technique, the usage of Battery Historian tool includes 5 ranges. Five Stages of Android App Testing through Battery Historian Tool:
Removing all previous stats – first of all, to execute accurate testing, a tester must clean all stats to be able to gain applicable facts (ADB command will look this manner: “ADB shell dump says battery stats –reset”). After the records are cleared, the professional should disconnect the device from the gadget. Execute numerous check scenarios with a purpose to define what consumes the most of the strength. It is essential to behave just like the consumer to better comprehend the effect of consumer revel in on battery lifecycle. Connect tool to the machine once more and create a worm record (Add command will look this way: add bug report > batterydata.Txt). On the bottom of this log document, the tool may also get statistics of the tool battery. Download Battery historian device in an effort to generate HTML report, the use of Android log report (Use this command: python historian.Py batterydata.Txt > batteryinfo.HTML).
0 notes
airoasis · 5 years
Text
Learn C# Basics in 1 Hour - C# Tutorial For Beginners
New Post has been published on https://hititem.kr/learn-c-basics-in-1-hour-c-tutorial-for-beginners-3/
Learn C# Basics in 1 Hour - C# Tutorial For Beginners
Hi! Thanks for taking my C# tutorial for novices. Let me swiftly offer you an overview of what you’re going to be trained and the way I’ve structured this tutorial. In the first part, i’m going to talk about fundamentals of C# and .Net. Probably the most questions that numerous newbies ask is what is the difference between C# and .Internet so i will cover that i am additionally going to speak about CLR assemblies namespaces IL code and stuff like that then over the subsequent two sections i’ll speak about varieties i’ll speak about primitive and non primitive forms now at this point you still can not write any C# programs but i’ve designed a number of quizzes to aid you strengthen what you are going to be trained then from section four the place I talk about manage waft you are going to start writing easy C# packages and from that part onwards in every section you are going to learn some thing new about C# and you are going to write down extra exciting applications and sooner or later i’ll conclude this path with a piece on debugging so i’ll exhibit you probably the most instruments we have now so in case you have bugs for your code you know the way to search out them and eliminate them i’m additionally going to talk about some good program practices that help you write better and extra nontoxic code so we now have a lot to quilt and let’s get started okay so this is the very first part of this direction on this part i’m going to begin by way of instructing you the very basics of C# one of the most questions that quite a few rookies ask is what is the difference between C# and net so that is the first thing i’m going to reply right here subsequent i’ll talk about CLR or original language runtime which is the runtime environment for .Web functions next i’ll talk concerning the architecture of .Net applications and as part of this i’ll introduce you to standards corresponding to courses namespaces and assemblies and in the end i’ll exhibit you all these concepts in motion i will introduce you to the very fundamentals of visual studio and write a very simple C# application so you will discover classes namespaces and approaches in motion i am hoping you loved this section and let’s get began k what is darknet framework and the way is it one of a kind from C# some builders who are without doubt new to C# have no idea the difference so in this lecture i will speak a bit of bit about C# and .Net framework C# is a programming language .Web is a framework for building functions on the home windows .Net framework is just not restricted to C# there are distinct languages that may goal that framework and construct purposes utilizing that framework examples are F sharp or vb.Web k now but what precisely is .Net framework Dartmouth framework consists of two components one is known as CLR or common language runtime and the opposite is a category library for building applications in the subsequent lecture we are going to speak about CLR in additional element okay before we appreciate what CLR is and why we want it let me give an explanation for slightly bit concerning the historical past of C# earlier than C# we had two languages within the C family the c language and C++ with both of these languages once we compiled our software the compiler translated our code into the native code for the computing device on which it was once going for walks which means that if I wrote an application in C++ on a home windows machine with 8086 processor architecture the compiler would translate my code into the native code for that machine that could be a windows desktop with an 8086 processor now we simplest have extraordinary hardware’s and we have now different running methods so if I took the application that compile the applying on the pc with another architecture that would not run so when Microsoft was designing the C# language and the .Internet framework they got here up with an proposal that they borrowed from the Java community in Java when you assemble your code it is not translated straight into the computing device code it is translated into an intermediate language called bytecode and we have now the certain identical concept in C# so while you collect your C# code the outcome is what we call IL or intermediate language code is impartial of the computer on which it is walking now we want some thing that would translate that il code into the native code or the desktop that’s strolling the applying and that’s the job of CLR or common language runtime so CLR is essentially an application that’s sitting within the memory whose job is to translate the il code into the desktop code and this system is referred to as simply-in-time compilation or JIT so with this structure which you can write an utility in C# and you don’t have got to fear about compiling that into the native code for one-of-a-kind machines so long as a computer has CLR that may run your application k now let’s be trained in regards to the architecture of .Internet purposes at an extraordinarily high level whilst you construct an application with C# your utility consists of constructing blocks referred to as classes these lessons collaborate with each different at runtime and for this reason the application supplies some functionality now what is a class a class is a container that has some information which is also referred to as attributes and capabilities which is often known as approaches capabilities or approaches have habits they execute code they do matters for us data represents the state of the application let me use an example feel of a auto the auto has some attributes like its make its mannequin its colour these are the attributes of a automobile a car also has some services we can begin it or we will transfer it so which you could consider of a car as a category in a real world software we have now tens countless numbers or even 1000s of lessons each and every type dependable for a bit of performance an instance of that is courses which might be accountable for getting the information from the consumer approach the info and show something to the user now as the quantity of classes in an utility grows we want a way to organize these classes that’s where we use a namespace so a namespace is a container for associated lessons for illustration in .Net framework now we have namespaces each containing tens of related lessons we have namespaces for working with information like databases we also have namespaces for working with photographs and photographs we’ve namespaces for working with security now in actual world application as these namespaces develop we’d like a further approach of partitioning an utility and that is the place we use an meeting and assembly is a container for associated namespaces physically it’s a file on the disk which will either be an executable or a DLL which stands for dynamically linked library so when you bring together an software the compiler builds one or more assemblies relying on the way you partition your code in the subsequent lecture we’ll write a very simple structure application and you are going to see all these standards in motion ok in this video we’re going to have a fast tour of visible studio and build a very simple C# software so right here I’ve received visual Studio open let’s go to file new project ok on this speak on the left side we have now bought a section called templates and right here you see the variety of purposes we can construct with C# in order you see within the record we can build laptop functions net purposes apps for cloud mobile offerings workflows and quite a lot of kind of things however on this course and the next parts of this path we’re just going to focus on console purposes a console utility is a quite simple application that does not have a graphical consumer interface and it’s a quality studying instrument for studying a brand new language so we’re now not going to be distracted by more than a few complexities of bigger applications so on the left part decide upon home windows and on the correct side decide upon console application then supply a name to your undertaking so let’s name it hiya world which is a original lifestyle when finding out a brand new language and specify a region that you may put it at any place you want i know this inspiration of resolution in visual Studio now we have this suggestion of answer which can have one or more projects with a quite simple utility you have just one answer and one task however as your utility grows you add extra initiatives each in charge for anything different but now we don’t need to fear about it now click on adequate very well let’s examine what’s happening here some builders get somewhat bit intimidated the first time they open visual studio and that is very sufficient on the grounds that there are such a lot of menus and panels here that may be a bit confusing however let me inform you some thing 90% of the time you are going to make use of simplest 10% of these or even less so do not worry about all these menus right here you don’t must use all of them invariably 90% of the time all you want is the code editor here many times you need the solution Explorer actually I individually hardly ever use resolution Explorer in view that I do the whole lot with my keyboard and for those who watch my direction double your coding velocity you’ll see that the whole lot is feasible with keyboard so that you are not looking for these panels here you do not have got to grab your mouse and navigate round you do not really want these items also none of the stuff on the toolbar are ever required don’t fear about it the whole thing you are able to do with your keyboard o.K. Now let’s take a look at this primary to char application so we created a console application and on the correct part you see the answer Explorer panel for those who don’t see that go to view and decide on answer Explorer prime you see we’ve a solution which has just one task below that now we have got the venture referred to as good day world seem at these 4 items here properties increase that we have a file right here referred to as assembly data this is the identification or the meeting with a view to be produced as a consequence of compiling this software so when we compile the console utility we will get an executable and that is an assembly that meeting has an identification look at these attributes right here like the title description which is currently not set manufacturer product copyright trademark tradition a grade you realize quite a lot of sort of matters like even version so these are all part of assembly identification or assembly occur mostly you do not have got to worry about it but if you want to create an assembly and you need to distribute it send to different persons then you may also need to come right here and give you the right identify and a right variation so for now we don’t need to worry about it on the references you see any assemblies that this undertaking is referencing to do its job when you create a undertaking with visual studio by using default it as a reference to a bunch of assemblies that you can see here these are all part of .Internet framework so at a minimal visible Studio assumes you are going to make use of classes in method assembly or approach the information to work with databases and so forth you may not always use all these assemblies on your project however that is simply part of the template config’ is an XML the place we retailer the configuration for this software regularly you can also want to retailer connection strings to the database or you can also want to have some settings about your utility all of them will grow to be right here and finally you see program dot C s which is the place we are going to begin writing code all correct let’s examine what’s taking place here so on this file application that C S on the highest you see a bunch of utilising statements what is this all about well our mission is known as hello world so by way of default visible Studio creates a namespace known as hi there world when we write code in this namespace we have entry to any classes defined on this namespace so if you wish to use a class that is defined in a further namespace we have to import it in our code file and that’s why we use the using announcement so with the aid of default visual Studio as these 5 making use of statements system is a namespace in .Internet framework and that is the place we have now all these common utility courses and primitive varieties there procedure that collections that normal is used to work with lists collections and many others procedure that link is used to work with information and it can be a complete topic that i’ve covered in my C# evolved path procedure the textual content is used to work with tags and coding and stuff like that and ultimately method the threading is used to construct multi-threaded applications in this video we will create a quite simple application and we’re no longer going to make use of any of those for namespaces here so we’re just going to make use of approach for now i’m going to leave them there and then i’ll show you easy methods to easy them up all right so here is our namespace and perception namespace by default we have a class called software so each console utility you create with visible Studio has a category known as program inside of program by way of default we have a procedure or a operate called primary and that is the entry point to the application so whilst you run your application CLR execute the code inside of primary method and that’s where everything kicks off this approach is asserted as static and that is anything i’m going to quilt later in the subsequent part approaches have enter and output so what goes within parenthesis is the input to the process which we call parameter or argument notice that parameters are not obligatory but on this case in the default template the major approach has a parameter called args which is of kind string array we’re going to be taught about string array in the subsequent part what you see before the system title is the return kind or the output of the approach void in C# approach nothing that means this method does no longer return any value it just comprises some code that’s it also note that C# is a case touchy language so this foremost needs to be with capital M or else CLR will not be going to find this procedure as the entry point of the appliance okay and one final thing is word these curly braces so where we have a block of code we must encompass it with curly braces so that’s applicable for approaches for courses and for namespaces very well now let’s write a quite simple C# program so let’s go right here now we have a class known as console which is used to read knowledge from console or write knowledge to it it has a bunch of approaches entry this procedure making use of the dot notation and here you see more than a few members of this type approaches are indicated through a crimson cube so beep is used to play a beep sound or clear is used to clear the console we’ll use the correct line process this approach can optionally take a parameter so i’ll go a string here hiya world simply that I observe that statements in C# terminate with a semicolon as you see right here now take a appear at using method on the top do you see that it is highlighted whereas the others are grayed out the intent for that’s on this file we’re utilizing a category referred to as console which is outlined within the approach namespace that is why that utilising announcement is energetic we are not making use of any courses defined in other namespaces and that is why they’re grayed out for you to get rid of them to make our code cleaner we are able to either delete every one with the aid of ctrl X like that or if you’re utilising resharper that you may eliminate all of them by pressing Alt + Enter here and deciding on the primary alternative which is take away unused directives in file so it is rapid now let’s run the application with ctrl + f5 so this window that you see right here this black window is what we call console and that’s why this form of undertaking is called console application you k that’s it for this lecture from this factor in each lecture we will gain knowledge of something new about C# and we will write more exciting and more complex packages i’m hoping you loved this lecture and thank you for staring at well hiya it’s mush right here your C# teacher I simply desired to quickly assist you to recognize that this video you have got been watching is without a doubt part of my C# basics direction on udemy on this course I stroll you via the entire core concepts of C# in a step-by-step trend plus you get entry to workout routines cheat sheets and a dialogue board to ask your questions in case you are interested you can get this path with a reduction utilising the link in the video description and if now not that’s perfectly great proceed observing as the following section is arising k this part goes to be step one for your experience to study C# so i will introduce you to variables and constants i’m going to speak about various information varieties and variety conversion i’ll talk about scope and overflowing and subsequently i’m going to speak about quite a lot of operators we have now in C# so let’s get started ok we’re going to begin our ride by means of studying about variables and constants a variable is a name that we supply to a storage place in memory where we will store a worth any consistent in an immutable value that may be a worth that we know at assemble time and that price cannot change throughout the life of the appliance why can we use constants the intent for that is to create protection in our application imagine you are growing an application that involves some mathematical computation around circles we’ve this number known as P which is three.14 and we use that to calculate the area of a circle that number must perpetually be the same we don’t need to by chance trade that in our program when you accidently trade that the whole lot goes to explode in terms of the results the program produces so we declare that quantity as a constant and this fashion we create protection in our application in C# to declare a variable we begin with the sort followed by an identifier and in the end semicolon here ain’t symbolize integer which is a number between minus 2 billion and plus 2 billion later on this video i’ll exhibit you the entire primitive varieties that you must recognize also observe that C# is a case touchy language which means that in this case these two identifiers are different one has lowercase n and 1 has uppercase n when declaring a variable we will optionally assign it the worth like what you see here you don’t have to however there may be one thing you have got to find out about variables and that’s you can’t use a variable unless you initialize it so let’s assume if I declare this int quantity here and that i decide to show it on the console my utility will not end up section I ought to assign it a price before i will use it earlier than i will read it i’ll show you that later after we jump to coding to declare constant we start with the key phrase cunt next we have now the datatype and an identifier and right here we need to initialize it with some value we cannot outline a regular with out surroundings its value there are a few things you ought to find out about identifiers first one is that an identifier cannot with a quantity so that you cannot have an identifier just like the one you see right here instead you need to substitute one with the word one so an identifier can’t comprise whitespace so that you can not have an identifier like first area name it has to be one word an identifier are not able to be a reserved key phrase like int that you simply noticed earlier if you are determined to use a word that coincidentally clashes with one of the most C# key phrases that you may ideal that with the add sign and in the end as a recommendation continually use meaningful names for illustration hinder a reputation like f n instead use first title this way your code will probably be extra readable or maintainable and cleaner and each person will realize that in phrases of naming convention listed here are three fashionable naming conventions which were around in the c language family now we have got camelcase Pascal case and Hungarian notation with camelcase as you see i’ve bolded here the first letter of the primary word is lowercase and the primary letter of every word after has to be uppercase with Pascal case the primary letter of every word needs to be uppercase with Hungarian notation we prefix the name of a variable with the datatype it uses so right here str represents a string Hungarian notation is just not utilized in C# and i’ve seen programmers coming from C or C++ historical past use that of their code if you’re one in all them I highly advise you not to use Hungarian notation due to the fact that C# builders should not used to that they usually do not like to look Hungarian notation in the code it makes your code seem slightly bit unpleasant so in C# to call your neighborhood variables use camel case in order you see here the primary letter of the first phrase is lowercase and if we had extra words right here in the identifier the first letter of every word needed to be uppercase four constants use Pascal case so here you see I’ve obtained a constant right here steady integer and the primary letter of each word is uppercase right here is the list of most more often than not used primitive types in C# in fact the genuine list is reasonably greater than this but I deliberately determined not to include those information types due to the fact that they’re infrequently used actually they are there for interoperability with other languages I in my view over the last 12 years of me coding in C# I’ve rarely used them correctly certainly not so I decided not to confuse you with an excessive amount of small print that you simply are not looking for within the subsequent slide I’ve got a hyperlink right here in case you wish to have to learn in regards to the different primitive types so let’s take a appear at the table right here on the left facet i have divided these datatypes into 4 categories fundamental numbers actual numbers personality and boolean this column shows the C# data instances and these are C# keyword phrases observe that C# key phrases are consistently lowercase each of those C# key phrases or C sharp varieties maps to a variety in .Web framework which is displayed on this column so these forms are part of the.Web framework and while you compile your software the compiler internally would translate the C# keyword you employ right here two an identical .Web form the third column here shows the number of bytes each information kind uses and i’ve listed these information types from the smallest to the most important in each and every category so within the category of integral numbers you see byte is the smallest it takes only one byte whereas long is the largest and it takes eight bytes the more bytes we now have the extra storage now we have and we will retailer bigger numbers you do not particularly need to memorize the range of each and every data kind however don’t forget white can store a price between zero to 255 short can store a value between minus 32,000 to plus 32,000 integer can store a worth between minus 2 billion to Plus 2 billion and long is even larger than that in terms of real numbers we have now three data varieties waft double and decimal flow maps to the one style in that framework and it takes four bytes and as you see it could possibly store a very big number double is twice as enormous so it uses eight bytes and decimal uses sixteen bytes the extra precision you want the greater knowledge style you utilize we even have persona which is represented through char key phrase and it’s two bytes so characters in C# are unicode and ultimately we have now bull which represents boolean which can be either actual or false in case you need to learn more concerning the different information types that I told you they are now not really used that you could quite simply go to Google and search for C# constructed-in types and the first web page is the MSDN web page that lists the entire primitive types in C# and a lot of these information types are pretty straightforward however there is some thing complicated about real numbers on this table i have listed the info forms we have for actual numbers load double and decimal I’ve highlighted double on the grounds that that’s the default knowledge sort utilized by a C# compiler when you’re utilising real numbers so if you wish to declare a drift you need to explicitly inform the compiler to treat the number you’ve as a go with the flow right here is an illustration I’ve declared a float call it quantity as i need one point two here i have introduced the suffix F and that is to tell the compiler to trade this number as a flow if I did not have this F right here compiler would think one point two is a double due to the fact that double is the default knowledge kind for actual numbers and of direction I can’t assign a double number right into a flow so the program would now not collect equal applies to decimals so if you wish to declare a decimal you have got to add the suffix M at the finish of the number in C# we also have a few different forms which aren’t viewed primitive types and they are string array enum and class we will study more about them throughout this course ok that is it for this lecture within the next lecture we’ll talk concerning the proposal of overflowing i’m hoping you enjoyed this lecture and thanks for observing k now let’s speak concerning the concept of overflowing here I’ve declared a variable of style byte reduce the quantity and assign it to 255 as I instructed you earlier within the slide 255 is the most important price that you could store in a byte now within the subsequent line i am increasing the value of number via one and trying to store 256 within the number however in the event you compile the applying and display number on the console you’ll see zero and that is what we name overflowing so now we have handed the boundary of the byte data form in C# via default we shouldn’t have overflow checking which means that we will adjust the value of a variable at runtime and if we go past the boundary of its underlying data style we will get overflow now sometimes this isn’t fascinating in your software you need to stop overflowing if that is the case you need to use the investigate keyword so right here is the way it works we’ve the checked keyword followed through curly braces which indicate the code block and within that block we have the variable announcement and any form of arithmetic operations with this code overflow won’t occur at runtime as a substitute an exception can be thrown and the application will crash until you manage the exception the subject of exceptions is an advanced topic and i’ve blanketed it in my C# developed direction for now all i need you to understand is that if you happen to use the verify keyword overflow will not occur and instead the program will throw an exception now do we rather want that really honestly i’ve not ever ever ever came across this concern on account that if I used to be involved that in this case my quantity variable would overflow i’d just conveniently use the short information type instead of byte but I determined to comprise the suggestion of overflowing due to the fact I desired my sous-chef path to be comprehensive so simply be conscious of that should you hear about overflowing somewhere but you’re ordinarily no longer going to use that in the actual world within the subsequent lecture we’re going to speak concerning the concept of scope ok let’s speak concerning the proposal of scope what’s the scope scope is the place a variable or a regular as meaning and is on the market take a seem at this block of code here as you recognize a block is indicated by curly braces here we’ve got three blocks of code here’s one right here is another and here is the final one within the first block I’ve obtained a variable called a an a is obtainable at any place inside this block or any of these little one blocks if i’m going out of this block and check out to access a the software won’t collect the equal rule applies to other variables so let’s take a look at this block right here B is significant at any place within this block or any of its children if i’m going outside this block and try to access B i will get a collect time error k I consider that’s adequate theory for now let’s open up visual studio and do some coding k let’s start by declaring a variable of variety byte and get in touch with it number now we need to display it on the console so as you remember from the last lecture we kind console dot write line and put the variable here observe that as I was once typing console dot write line my resharper plugin robotically introduced this utilising announcement on the highest process is a namespace and console is a category that is defined in the method namespace so in order to use the console class we need that declaration right here on the top if you are now not utilising resharper you must go here and manually kind utilizing method semicolon k now take a look at this quantity here it has a red underline and if we put the mouse cursor right here it says nearby variable quantity would now not be initialized before having access to for those who do not forget from the slides I told you in C# earlier than that you could access a variable you have to set it you have to initialize it and that is the reason right here we have now the purple underline we can not show the quantity on the console earlier than initializing that so if i try to collect the application we will get an error to collect an utility you press ctrl shift + B and right here is the error record use of unassigned regional variable number we will solve this main issue by means of initializing quantity like surroundings it to 2 for illustration and also you see the crimson underline is long gone we can compile once more manage-shift be build succeeded take a seem right here k now we are able to run the appliance through urgent ctrl + f5 k so we received two on the console now let’s lengthen this illustration and declare a few more variables define an integer int count equals 10 and a drift flow say total rate equals 20 $95 now notice this purple underlined right here let’s find out what’s taking place right here so I put the mouse cursor here it says can not convert source style double to goal variety flow if you happen to don’t forget from the slides I told you by using default the sea-shore compiler qualities real numbers like this one here as double whereas we’re declaring a drift so right here we must explicitly tell the C# compiler to deal with this actual quantity as a glide and we are able to try this via appending an F at the finish so the error is gone let’s take your personality so char personality equals a note that in C# we enclose characters by means of single quote like right here we can also declare a string string just isn’t one of the most primitive types and have protected it in a separate lecture in this course however for now let me show you declare a string which is form string give it a name first name equals mosh be aware that with strings we enclose them in double quote so that’s one of the crucial differences between strings and characters and eventually let’s declare a bull bull is working equals genuine so with bulls we can either set them to proper or false each authentic and false our keywords as you will find they’re indicated by the blue colour here and so they’re lowercase so the whole thing you see here that is blue is a key phrase like static void string type identify house and all these information types right here now let’s display these variables on the console so let me show you a trick as an alternative of writing consistent the right line we will do a shortcut that is what we call a code snippet so we form CW that’s brief for console.Writeline after which press tab and visible Studio mechanically converts that to console the right line there are quite a lot of code snippets that support you write code rapid and i’ll try to point them out for the duration of this course so let’s display depend now one other one totalprice and note that i can simply variety t oh and here is what we name intellisense it’s visible studios auto completion mechanism you don’t have got to kind the entire name of a type or a variable as long as the intellisense detects tab and is highlighted right here like whole price that you may with no trouble press tab and there you go visible studio automatically completes that for us let’s show the character identical here I just press tab again I variety only a few characters it could press tab or enter and sooner or later is working we run the appliance with the aid of ctrl + f5 so we got all these values on the console ok now let me exhibit you some thing else in C# we have now a key phrase known as var which makes variable declarations less complicated for instance right here alternatively of explicitly specifying the datatype for every of those right here i will be able to readily style var and that i let the C# compiler become aware of the datatype for this variable here so let me substitute all of this with var k now if we hover the mouse over the VAR key phrase we will see the underlying knowledge type on this case is method that boolean which is the data kind which maps to C# pull keyword how about this one that is a string and this one is a personality and this one is approach that single which maps to drift in C# and within the case of rely it is in 32 which is integer and same for a number so the complex thing right here is by default C# treats essential numbers as integer and while you use the VAR keyword it assumes that it can be an integer if you happen to relatively want to go for a byte then you ought to explicitly specify it as byte right here however let you know from expertise it’s risk-free to make use of integer on the whole correctly when you appear on the classes in the.Web framework regularly integer is the data sort used for representing necessary numbers ok I revert this back now I show you whatever else so let’s take a seem at this one here so it’s a char which is a character i will be able to put the mouse cursor right here and press manage and then click on that opens the thing browser window take a seem right here it can be object browser and it’s a way to look at the various classes to your challenge or in the.Web framework on this case considering that I did a ctrl click on on the char or VAR keyword that is what we bought right here so char is highlighted in the object browser on the right side you see all of the members of the chart kind so these crimson ones are capabilities or approaches in the event you scroll down here you see two fields here min worth and Max worth we’ll explore them shortly and be aware that right here is the announcement of Char Char is a constitution we will be able to duvet structures later in this direction and be aware that it’s a member of approach namespace it will possibly click process and that indicates the process namespace as well as all the types defined within the process namespace so these are a part of the.Internet framework ok let’s shut this for now let’s discover one other example so i’ll do away with the entire code here we are able to effortlessly press manage X on every line and that deletes all these strains right here adequate let’s do a console the right line so CW tab this time I cross a string right here I specify two placeholders and ultimately deliver a few arguments okay let’s examine what’s going on here so right here what now we have is called a format string it can be a form of string that can be utilized as some style of template so at runtime what now we have right here indicated by way of curly braces and nil because the argument can be changed by the value we cross here so 0 represents the first argument after this layout string and 1 represents the 2nd argument after this structure string in this case bited max price so let’s run this software we got 0 and 255 and that is the range you could retailer in a byte we are able to do the equal with a flow so CW faucet a format string float imply price glide Max worth run the appliance so that is the variety we can retailer with a float it is a gigantic quantity that is displayed utilising the scientific notation ok now let’s take a appear at constants so I do away with these two strains right here control X control X we define a constant with the Const keyword Const waft P 3.14 and we need to put F on the end for the reason that it is a float now because we declared P as a constant here I can not trade it in my software so I can’t go right here and say P equals 1 the compiler is just not pleased and that’s why we see that crimson underline here if you hover the mouse right here it says learn handiest neighborhood regular are not able to be used as an undertaking target it can be a bit weird expression to have an understanding of but clearly the intention of utilising constants is to have some kind of defense to your program so if there are values that should not be modified for the period of your application you outline them as consistent and this way you need to accidentally regulate their values good for those who made it this a long way you look to be very keen about studying C# and i extremely advise you to take my C sharp basics course utilising the hyperlink within the video description this fashion which you can be trained all of the core ideas in a structured means and you do not ought to waste time jumping from one free tutorial to yet another you will discover that presently this course has over 5,000 pupils with over four hundred 5-famous person studies plus it comes with a 30-day money-back warranty so if you are not satisfied which you could ask udemy for a full refund inside 30 days and also you get all of your a reimbursement no questions asked once more that you would be able to get this direction utilising the hyperlink within the video description i am hoping to see you in the course on this video i’ll talk about more than a few types of kind conversion in C# we have now implicit type conversion explicit form conversion which is also called casting and we also have conversion between non suitable varieties right here is an instance of implicit style conversion a blight as you know takes just one byte of reminiscence and an integer takes four bytes as a way to simply copy a byte to an integer what happens at runtime is let’s take a seem at this slide so this is the binary representation of our B variable here so one is represented as seven bits of zero and one bit of 1 when we reproduction a byte to an integer what the runtime does is it prefixes that price with a bunch of zeros to fill the 4 bytes there is not any information loss in occasions like that after the compiler is a hundred% definite that the varieties are suitable and no information loss will occur values can also be changed to one other form implicitly right here is one more instance of implicit kind conversion so now we have an integer set it to 1 and we replica that to a drift once more in this illustration no data loss will occur however let’s take a look at this one right here we now have declared an integer and we’re seeking to copy that to a byte and integer is 4 bytes so after we convert that to a byte three bytes out of four bytes can be gone and there’s a threat for data loss now information loss doesn’t always occur it most effective occurs if the value restored in the integer is past the capacity of a byte on this illustration one will also be stored in a byte so no knowledge loss will happen but when we had shall we say 300 right here we can’t store 300 in a byte so thus of that conversion information might be lost when the compiler knows that there is a threat for data loss it would not permit implicit type conversion and you have got to explicitly inform the compiler that you’re conscious of the data loss and you still want to go forward with the conversion in situations like that what we do is we prefix the variable with the goal variety so here i’m attempting to convert I to a byte this is what we call as casting here is a further illustration so we have a go with the flow set to 1.Zero and if we are trying to convert that to an integer the compiler would complain i will exhibit you that later within the coding demo so we ought to tell the compiler that we are aware of the info loss and we nonetheless need to transform F which is a go with the flow to an integer so we forged it like right here routinely we’re working with forms that are not suitable but you still ought to convert them for instance we might have a number represented as a string as you see here and we must convert it to an integer in instances like that considering the fact that string and int usually are not suitable they are not able to use explicit casting so we need an additional mechanism for converting a string to a quantity in situations like that we have to use the convert class or use the parse procedure so convert category is a component of .Net framework and is outlined within the process namespace of ways for changing quite a lot of forms to other forms they usually all start with two in this case we’re attempting to convert s which is a string to an int 32 in 32 as you realize is a .Net framework style which maps to a sushar p– integer type recall a blight is one byte short is two bytes and integer is four bytes and long is eight bytes you most likely understand that each and every byte has eight bits so an integer which has four bytes times eight bits ends up being 32 bits that is why it is known as two in 32 and in sixteen which represents 16 bits equals to brief which is 2 bytes we even have this parse process here the entire primitive varieties that I defined in the final lecture like integer long flow boolean they all have this parse approach and the parsh method takes a string and tries to transform that to the goal style on this case an integer listed here are one of the crucial approaches that you can find in the convert classification to byte which converts the given price to a byte 2 in 16 to convert the given price to a short 2 in 32 to convert the given worth to an integer and to n64 to transform the given price to an extended k in a conception let’s leap into code and spot all this idea in action ok let’s assume implicit style conversion in motion first I declare a bite name it B and set it to 1 now I declare an integer and set it to be once more to recap a byte is only one byte and an integer is 4 bytes so as to replica b2i with out knowledge loss and as you see there’s no assemble time error here let’s put on the console so console dot write line and we move I here observe that as I typed consult the correct line my resharper plugin automatically introduced this utilising procedure statement on the top once more if you wouldn’t have resharper you need to go manually add this assertion here we run the appliance by using ctrl + f5 so we acquired on the console now let’s reverse this and notice what occurs so i’m going to get rid of this code right here control X manipulate X manage X first I declare an integer set it to 1 then I declare a byte and take a look at to repeat I to B we immediately obtained this red underline right here if you happen to hover the mouse here the tooltip says are not able to convert supply kind int to goal form byte frequently this error maybe in yet another file which isn’t open in visible Studio here so you may see the error when compiling the applying let’s simulate that so I bring together this application by ctrl shift and B which stands for build so this is the error cannot implicitly convert kind int to byte an explicit conversion exists are you lacking a caste so now you recognize the notion of implicit versus specific sort conversion so what we have got to do right here is to do a forged so we casted integer to a byte now on this case no information loss will happen seeing that the value is small sufficient to be stored in one bite let’s put B on the console console by right line B we run the applying so the whole lot is just right however let’s see what occurs if we said I – let’s assume thousand we are not able to store the quantity thousand in a byte the maximum we can store in a byte is 255 so in case you run the appliance now we obtained to 32 seeing that some of the bits have been lost and this is the rationale that C# compiler is aware of that there’s a threat for data loss and it enforces you to explicitly specify the solid routinely that despite the variations in information types there is no risk of information loss like within the last illustration the place I used to be set to 1 in those cases we can safely follow a cast ok now let’s take a seem at non suitable types so let’s clean up this code I start through declaring a string let’s call it quantity and set it to 1 two three 4 recapping from the final lecture observe that right here I would declare this with the VAR keyword and considering our compiler mechanically detects that this can be a string so number shall be defined as a string and we are able to see that through hovering the mouse here it says procedure that string now shall we say we want to convert that to a quantity if I declare an integer like I I are not able to solid that quantity to an integer given that they are not suitable let’s take a seem on the error are not able to solid expression of sort string to variety int so in the event you see that error that is the time when you need to use the convert type so we style in convert dot take a look at this method right here – chew – char – in 16 in 32 and plenty of different methods here so let’s convert that to an integer which is int 32 and cross quantity as an argument right here now let’s print out the I on the console run software so I is 1 2 three four all just right however let’s see what happens if instead I declare this as a byte and right here we have got to use convert dot 2 byte and here we display B on the console a byte does not have adequate storage to store the worth of 1234 so once we run the appliance now the appliance crashed the cancel is right here and here is the exception exception is Dartmouth frameworks error reporting mechanism it’s an advanced matter and i’ve blanketed it in detail in my C# developed course however on this video i will in short exhibit you tips on how to control exceptions so right here it says unhandled exception the kind of exception is process that overflow exception because of this we try to store a price that was once too tremendous or too small for a byte so each and every exception or error as a sort in this case overflow exception and has a message value was once both too significant or too small for an unsigned byte regularly the exception messages are friendly sufficient that are convenient to realize routinely they may be a little bit bit intricate and the pleasant method to figure out what goes mistaken is to leap on Google and search for the error and there’s in general normally a Stack Overflow web page that explains that now let’s describe that let’s see how to manage the exception here occurred during conversion of that string to chunk what we have to do here is to wrap these few statements with a try-capture block let’s see the way it works so I just typed attempt to press the enter and visible studio robotically generated this block for me once more that is what we call a code snippet let me undo this i’ll exhibit you a different time so try see this are trying here within the intellisense and this icon represents a code snippet so if I press enter or tab you robotically get this code block so what i will do now could be to maneuver this code enter a are trying block and the trap block gets an exception with the aid of default visual studio as this throw here do not worry about it just delete it again i will provide an explanation for it in element in my sushar evolved direction for now let’s examine what is going on on here so the code that you just put within the try block can be in some way monitored and if an exception occurs this block will likely be accomplished this prevents your software from crashing the rationale our application crashed previous was seeing that we did not manage the exception so when you do not control exception the exception will likely be propagated to the .Internet runtime and that the run instances mechanism is to stop your utility and display the error right here we are able to handle the exception and that would avert the exception from being propagated to .Net runtime so instead we can display a pleasant message to the person pronouncing for illustration console.Writeline the number could not be transformed to a byte now let’s run the applying again see we got the firmly message and the application failed to crash so what i want you to remove from this lecture is this we’re type works pretty good regularly but in cases where the source form cannot be converted to the target kind there is a chance for exception and you must be conscious of that and what you have got to do is to wrap this block of code with are trying-capture let’s take a look at an extra example earlier than we conclude this lecture let’s remove this and as a substitute – drink call it STR and set it to proper we will use the convert type to transform that value to a boolean so bull P equals convert that to boolean and we cross that STR here once more on this instance string and bull will not be suitable and that’s why we are not able to use explicit casting so right here we are utilizing the convert class we can display B on the console utility so the actual string was once efficaciously converted to a boolean value that is as a rule it for this lecture earlier than I conclude I just ought to emphasize anything here that for the period of this path during early lectures you may even see me making use of some brief variable names like P or STR right here that is in basic terms for demonstration and retaining matters simple and in building real-world applications we should really prevent naming our variables ABC STR it can be now not relatively a excellent follow the only exception is when we get to loops which you will see later in this path in for loops we use counter variables and we name them I or J it is a normal conference now right here we’re simply commencing to study C# and it can be relatively impossible for me to illustrate constructing an actual world application on account that you are simply covering their fundamentals or alphabets i am hoping you enjoyed this lecture and thanks for staring at ok we got two operators in C# we’ve five forms of operators arithmetic comparison project logical and bitwise let’s take a better appear at each of these operators we use arithmetic operators in computations the place we are working with numbers in order you see on this slide we’ve add subtract multiply divide and the rest of division we also have two arithmetic operators referred to as increment and decrement which are a shortcut for including one or subtracting one from a variable so a plus plus is identical to a equals any plus one now with this increment and decrement operator there are two ways that you could follow them you can use them as a postfix so in this illustration a is 1 and when we observe the postfix increment operator first the value of a is assigned to B so B is going to be 1 after which a is incremented by means of 1 so in this example after the 2nd line is accomplished a goes to be 2 and B goes to be 1 now let’s take a appear at one other method of applying increment operator as a prefix so on this example within the second line first a is incremented via 1 after which it can be assigned to B so after the 2nd line both a and B are going to be 2 so be mindful of this difference adequate next comparison operators so we acquired equal which is indicated by way of double equal signal no longer equal larger than better than or equal to not up to and no more than or equal to now what i want you to pay awareness to in this record is that the testing for equality is complete by means of double equal signal and that’s special from a single equal which is the project operator next challenge operators so the most most of the time used is the one with a seen the equal sign so right here we set a 2/1 lovely general now appear at the next four types of venture operators addition project subtraction project multiplication task and division venture let’s have a look at how they work for example addition venture a plus equal three approach add three to a so it can be identical to writing a equals a plus three and the identical rule applies to other four undertaking operators logical operators are utilized in boolean expressions that are mainly used in conditional statements will get two conditional statements later in this course so a real-world example is where you have got a situation and you want to make sure that and a further situation both are proper or possibly certainly one of them is right so that’s the place you use a logical operator in C# the logical end is indicated via double ampersand and the logical or is implemented with the aid of double vertical line we even have the no longer operator which is indicated by way of an exclamation mark and finally in right here now we have acquired the bitwise operators bitwise operators are normally utilized in low-level programming like when working with windows api or in sockets or encryption clarification of those is beyond the scope of this course but if you’re interested let me be aware of and that i write a web publication submit for you now what i want you to take away right here is that the bitwise end is indicated by means of a single ampersand whereas the logical end which we use in conditional statements is indicated by way of double ampersand identical for bitwise or and logical or so recollect the change ok sufficient idea let’s flip over to visual studio and notice all these standards in action okay let’s start with the arithmetic operators first so I outline two variables a equals 10 B equals 3 let’s add them collectively and show the outcome in the console that is beautiful convenient proper run the applying so the result is 13 now let’s take a seem at division so I replace the ad operator with division you the influence is three the interesting factor here is when you consider that each a and B are integers the influence of the division ends up being an integer if you happen to like a floating-factor number because the result of the division you have got to solid both these numbers to a drift so like this now if you are on the application the effect is a floating-point quantity now let’s appear at a more tricky illustration let’s assume C’s three B’s 2 and a is 1 I wish to exhibit you the idea of operator precedence so if I variety a plus B instances C what do you assume the influence to be from a mathematical perspective B will have to be expanded through C first which means that two instances three equals six after which it will have to be added to 1 so the influence must be seven let’s run the appliance so C# behaves precisely as what we expected so multiply or division operators have bigger priority than add or subtract if you want to alter the precedence you are able to do so via utilizing parentheses so on this case if you want to have a and B introduced together first and then multiply it via C that is how we’d obtain that on this case the influence will probably be 9 there you go okay now let’s take a seem at assessment operators so let’s do away with C here and rather see if a is higher than B very simple illustration proper the effect is fake so what i would like you to understand here is the effect of the evaluation expression is invariably a boolean value which is true or false we will scan for equality so double equal sign on this case a is not equal to B so the effect must be false now let’s examine the not equal operator so comfortably have an exclamation mark here followed by an equal signal in this case on account that a is not equal to B the result must be real k now let me exhibit you a extra tricky illustration what do you expect right here good first that is the now not operator which is applied on boolean values or boolean expressions in this case this is a boolean expression and as you noticed previous it used to be authentic because a is just not equal to B so we apply the not operator to that and the outcome finally ends up being false let’s run the application so we obtained records right here however this code will not be easy to have an understanding of or convenient to read due to the fact that right here we now have two negatives one poor and two terrible and for us humans to negative is rough to recognize two negatives invariably equal to one constructive so to your software in case you emerge as in occasions the place you could have two negatives make certain to at all times inverse them with one optimistic so if so i will get rid of the primary terrible and convert the 2nd negative to a constructive like that and we will be able to get the equal outcomes which is false now let’s take a look at logical operators so I create an extra variable here VAR c equals three i will change that to C larger than B and C better than a what do you assume here as the result well C is better than B so the effect of that expression is true also C is bigger than a so the outcomes of that expression is true as good and here we have the top operator so proper and genuine equals to genuine let’s run the application there you go now let’s make a tiny exchange here so this time considering we all know C is not equal to a this expression evaluates to false authentic and false results in false let’s run the applying so we received false now let’s have a look at the outcomes of the or operator so i will replace the tip with or which is double vertical line in this case that is proper or false the result finally ends up being genuine and of path we will observe not operator right here as you noticed prior which alterations the genuine to false now this expression doesn’t particularly look easy to understand it is simply in simple terms for demonstration of how we are able to combine different operators and make up extra complex expressions k that is it for this lecture i am hoping you enjoyed it and thanks for staring at ok so we acquired to remark a remark is text that we put in our code to improve its readability and maintainability in C# we now have two ways to write down comments in case your remark is handiest a single line you can prefix the comment with double curb but when your comment is longer and it’s multiple lines you have got to begin it with scale down superstar after which finish it with star decrease this kind of remark is extra just like the comments we used to put in writing in C and C++ code this present day it’s extra conventional to put in writing both single line or multi-line comments prefixing with double cut down so in this instance we will rewrite this multi-line comment with double reduce form like this now most commonly of thumb maintain your comments to minimal use feedback only win required and that is when explaining shrewd residence constraints and things like that don’t give an explanation for what the code is doing all your code must be so smooth and simple that it doesn’t need comment if a comment explains simply what the code is doing is redundant and the problem with redundant comments is we modify the code but not everybody may be very steady in changing the feedback so after a at the same time these feedback end up out of date and considering the fact that they don’t get compiled like the code there is no approach to validate them and after a at the same time they turn out to be vain so once more preserve them to minimal and explain sensible apartment and constraints that you just had at the time you wrote the code so the next character who is reading your code knows the rationale why you wrote the code that means on this section you be taught that C# is a statically typed language because of this while you ticular a variable you have to specify its sort and that kind cannot alternate in the course of the lifetime of that variable you also study about the primitive types in C# akin to integer persona boolean and so forth now within the next part i’ll introduce you to non primitive forms in C# similar to classes or structures arrays strings and in ohms so i’ll see you the next section
0 notes
batterymonster2021 · 5 years
Text
Learn C# Basics in 1 Hour - C# Tutorial For Beginners
New Post has been published on https://hititem.kr/learn-c-basics-in-1-hour-c-tutorial-for-beginners-3/
Learn C# Basics in 1 Hour - C# Tutorial For Beginners
Hi! Thanks for taking my C# tutorial for novices. Let me swiftly offer you an overview of what you’re going to be trained and the way I’ve structured this tutorial. In the first part, i’m going to talk about fundamentals of C# and .Net. Probably the most questions that numerous newbies ask is what is the difference between C# and .Internet so i will cover that i am additionally going to speak about CLR assemblies namespaces IL code and stuff like that then over the subsequent two sections i’ll speak about varieties i’ll speak about primitive and non primitive forms now at this point you still can not write any C# programs but i’ve designed a number of quizzes to aid you strengthen what you are going to be trained then from section four the place I talk about manage waft you are going to start writing easy C# packages and from that part onwards in every section you are going to learn some thing new about C# and you are going to write down extra exciting applications and sooner or later i’ll conclude this path with a piece on debugging so i’ll exhibit you probably the most instruments we have now so in case you have bugs for your code you know the way to search out them and eliminate them i’m additionally going to talk about some good program practices that help you write better and extra nontoxic code so we now have a lot to quilt and let’s get started okay so this is the very first part of this direction on this part i’m going to begin by way of instructing you the very basics of C# one of the most questions that quite a few rookies ask is what is the difference between C# and net so that is the first thing i’m going to reply right here subsequent i’ll talk about CLR or original language runtime which is the runtime environment for .Web functions next i’ll talk concerning the architecture of .Net applications and as part of this i’ll introduce you to standards corresponding to courses namespaces and assemblies and in the end i’ll exhibit you all these concepts in motion i will introduce you to the very fundamentals of visual studio and write a very simple C# application so you will discover classes namespaces and approaches in motion i am hoping you loved this section and let’s get began k what is darknet framework and the way is it one of a kind from C# some builders who are without doubt new to C# have no idea the difference so in this lecture i will speak a bit of bit about C# and .Net framework C# is a programming language .Web is a framework for building functions on the home windows .Net framework is just not restricted to C# there are distinct languages that may goal that framework and construct purposes utilizing that framework examples are F sharp or vb.Web k now but what precisely is .Net framework Dartmouth framework consists of two components one is known as CLR or common language runtime and the opposite is a category library for building applications in the subsequent lecture we are going to speak about CLR in additional element okay before we appreciate what CLR is and why we want it let me give an explanation for slightly bit concerning the historical past of C# earlier than C# we had two languages within the C family the c language and C++ with both of these languages once we compiled our software the compiler translated our code into the native code for the computing device on which it was once going for walks which means that if I wrote an application in C++ on a home windows machine with 8086 processor architecture the compiler would translate my code into the native code for that machine that could be a windows desktop with an 8086 processor now we simplest have extraordinary hardware’s and we have now different running methods so if I took the application that compile the applying on the pc with another architecture that would not run so when Microsoft was designing the C# language and the .Internet framework they got here up with an proposal that they borrowed from the Java community in Java when you assemble your code it is not translated straight into the computing device code it is translated into an intermediate language called bytecode and we have now the certain identical concept in C# so while you collect your C# code the outcome is what we call IL or intermediate language code is impartial of the computer on which it is walking now we want some thing that would translate that il code into the native code or the desktop that’s strolling the applying and that’s the job of CLR or common language runtime so CLR is essentially an application that’s sitting within the memory whose job is to translate the il code into the desktop code and this system is referred to as simply-in-time compilation or JIT so with this structure which you can write an utility in C# and you don’t have got to fear about compiling that into the native code for one-of-a-kind machines so long as a computer has CLR that may run your application k now let’s be trained in regards to the architecture of .Internet purposes at an extraordinarily high level whilst you construct an application with C# your utility consists of constructing blocks referred to as classes these lessons collaborate with each different at runtime and for this reason the application supplies some functionality now what is a class a class is a container that has some information which is also referred to as attributes and capabilities which is often known as approaches capabilities or approaches have habits they execute code they do matters for us data represents the state of the application let me use an example feel of a auto the auto has some attributes like its make its mannequin its colour these are the attributes of a automobile a car also has some services we can begin it or we will transfer it so which you could consider of a car as a category in a real world software we have now tens countless numbers or even 1000s of lessons each and every type dependable for a bit of performance an instance of that is courses which might be accountable for getting the information from the consumer approach the info and show something to the user now as the quantity of classes in an utility grows we want a way to organize these classes that’s where we use a namespace so a namespace is a container for associated lessons for illustration in .Net framework now we have namespaces each containing tens of related lessons we have namespaces for working with information like databases we also have namespaces for working with photographs and photographs we’ve namespaces for working with security now in actual world application as these namespaces develop we’d like a further approach of partitioning an utility and that is the place we use an meeting and assembly is a container for associated namespaces physically it’s a file on the disk which will either be an executable or a DLL which stands for dynamically linked library so when you bring together an software the compiler builds one or more assemblies relying on the way you partition your code in the subsequent lecture we’ll write a very simple structure application and you are going to see all these standards in motion ok in this video we’re going to have a fast tour of visible studio and build a very simple C# software so right here I’ve received visual Studio open let’s go to file new project ok on this speak on the left side we have now bought a section called templates and right here you see the variety of purposes we can construct with C# in order you see within the record we can build laptop functions net purposes apps for cloud mobile offerings workflows and quite a lot of kind of things however on this course and the next parts of this path we’re just going to focus on console purposes a console utility is a quite simple application that does not have a graphical consumer interface and it’s a quality studying instrument for studying a brand new language so we’re now not going to be distracted by more than a few complexities of bigger applications so on the left part decide upon home windows and on the correct side decide upon console application then supply a name to your undertaking so let’s name it hiya world which is a original lifestyle when finding out a brand new language and specify a region that you may put it at any place you want i know this inspiration of resolution in visual Studio now we have this suggestion of answer which can have one or more projects with a quite simple utility you have just one answer and one task however as your utility grows you add extra initiatives each in charge for anything different but now we don’t need to fear about it now click on adequate very well let’s examine what’s happening here some builders get somewhat bit intimidated the first time they open visual studio and that is very sufficient on the grounds that there are such a lot of menus and panels here that may be a bit confusing however let me inform you some thing 90% of the time you are going to make use of simplest 10% of these or even less so do not worry about all these menus right here you don’t must use all of them invariably 90% of the time all you want is the code editor here many times you need the solution Explorer actually I individually hardly ever use resolution Explorer in view that I do the whole lot with my keyboard and for those who watch my direction double your coding velocity you’ll see that the whole lot is feasible with keyboard so that you are not looking for these panels here you do not have got to grab your mouse and navigate round you do not really want these items also none of the stuff on the toolbar are ever required don’t fear about it the whole thing you are able to do with your keyboard o.K. Now let’s take a look at this primary to char application so we created a console application and on the correct part you see the answer Explorer panel for those who don’t see that go to view and decide on answer Explorer prime you see we’ve a solution which has just one task below that now we have got the venture referred to as good day world seem at these 4 items here properties increase that we have a file right here referred to as assembly data this is the identification or the meeting with a view to be produced as a consequence of compiling this software so when we compile the console utility we will get an executable and that is an assembly that meeting has an identification look at these attributes right here like the title description which is currently not set manufacturer product copyright trademark tradition a grade you realize quite a lot of sort of matters like even version so these are all part of assembly identification or assembly occur mostly you do not have got to worry about it but if you want to create an assembly and you need to distribute it send to different persons then you may also need to come right here and give you the right identify and a right variation so for now we don’t need to worry about it on the references you see any assemblies that this undertaking is referencing to do its job when you create a undertaking with visual studio by using default it as a reference to a bunch of assemblies that you can see here these are all part of .Internet framework so at a minimal visible Studio assumes you are going to make use of classes in method assembly or approach the information to work with databases and so forth you may not always use all these assemblies on your project however that is simply part of the template config’ is an XML the place we retailer the configuration for this software regularly you can also want to retailer connection strings to the database or you can also want to have some settings about your utility all of them will grow to be right here and finally you see program dot C s which is the place we are going to begin writing code all correct let’s examine what’s taking place here so on this file application that C S on the highest you see a bunch of utilising statements what is this all about well our mission is known as hello world so by way of default visible Studio creates a namespace known as hi there world when we write code in this namespace we have entry to any classes defined on this namespace so if you wish to use a class that is defined in a further namespace we have to import it in our code file and that’s why we use the using announcement so with the aid of default visual Studio as these 5 making use of statements system is a namespace in .Internet framework and that is the place we have now all these common utility courses and primitive varieties there procedure that collections that normal is used to work with lists collections and many others procedure that link is used to work with information and it can be a complete topic that i’ve covered in my C# evolved path procedure the textual content is used to work with tags and coding and stuff like that and ultimately method the threading is used to construct multi-threaded applications in this video we will create a quite simple application and we’re no longer going to make use of any of those for namespaces here so we’re just going to make use of approach for now i’m going to leave them there and then i’ll show you easy methods to easy them up all right so here is our namespace and perception namespace by default we have a class called software so each console utility you create with visible Studio has a category known as program inside of program by way of default we have a procedure or a operate called primary and that is the entry point to the application so whilst you run your application CLR execute the code inside of primary method and that’s where everything kicks off this approach is asserted as static and that is anything i’m going to quilt later in the subsequent part approaches have enter and output so what goes within parenthesis is the input to the process which we call parameter or argument notice that parameters are not obligatory but on this case in the default template the major approach has a parameter called args which is of kind string array we’re going to be taught about string array in the subsequent part what you see before the system title is the return kind or the output of the approach void in C# approach nothing that means this method does no longer return any value it just comprises some code that’s it also note that C# is a case touchy language so this foremost needs to be with capital M or else CLR will not be going to find this procedure as the entry point of the appliance okay and one final thing is word these curly braces so where we have a block of code we must encompass it with curly braces so that’s applicable for approaches for courses and for namespaces very well now let’s write a quite simple C# program so let’s go right here now we have a class known as console which is used to read knowledge from console or write knowledge to it it has a bunch of approaches entry this procedure making use of the dot notation and here you see more than a few members of this type approaches are indicated through a crimson cube so beep is used to play a beep sound or clear is used to clear the console we’ll use the correct line process this approach can optionally take a parameter so i’ll go a string here hiya world simply that I observe that statements in C# terminate with a semicolon as you see right here now take a appear at using method on the top do you see that it is highlighted whereas the others are grayed out the intent for that’s on this file we’re utilizing a category referred to as console which is outlined within the approach namespace that is why that utilising announcement is energetic we are not making use of any courses defined in other namespaces and that is why they’re grayed out for you to get rid of them to make our code cleaner we are able to either delete every one with the aid of ctrl X like that or if you’re utilising resharper that you may eliminate all of them by pressing Alt + Enter here and deciding on the primary alternative which is take away unused directives in file so it is rapid now let’s run the application with ctrl + f5 so this window that you see right here this black window is what we call console and that’s why this form of undertaking is called console application you k that’s it for this lecture from this factor in each lecture we will gain knowledge of something new about C# and we will write more exciting and more complex packages i’m hoping you loved this lecture and thank you for staring at well hiya it’s mush right here your C# teacher I simply desired to quickly assist you to recognize that this video you have got been watching is without a doubt part of my C# basics direction on udemy on this course I stroll you via the entire core concepts of C# in a step-by-step trend plus you get entry to workout routines cheat sheets and a dialogue board to ask your questions in case you are interested you can get this path with a reduction utilising the link in the video description and if now not that’s perfectly great proceed observing as the following section is arising k this part goes to be step one for your experience to study C# so i will introduce you to variables and constants i’m going to speak about various information varieties and variety conversion i’ll talk about scope and overflowing and subsequently i’m going to speak about quite a lot of operators we have now in C# so let’s get started ok we’re going to begin our ride by means of studying about variables and constants a variable is a name that we supply to a storage place in memory where we will store a worth any consistent in an immutable value that may be a worth that we know at assemble time and that price cannot change throughout the life of the appliance why can we use constants the intent for that is to create protection in our application imagine you are growing an application that involves some mathematical computation around circles we’ve this number known as P which is three.14 and we use that to calculate the area of a circle that number must perpetually be the same we don’t need to by chance trade that in our program when you accidently trade that the whole lot goes to explode in terms of the results the program produces so we declare that quantity as a constant and this fashion we create protection in our application in C# to declare a variable we begin with the sort followed by an identifier and in the end semicolon here ain’t symbolize integer which is a number between minus 2 billion and plus 2 billion later on this video i’ll exhibit you the entire primitive varieties that you must recognize also observe that C# is a case touchy language which means that in this case these two identifiers are different one has lowercase n and 1 has uppercase n when declaring a variable we will optionally assign it the worth like what you see here you don’t have to however there may be one thing you have got to find out about variables and that’s you can’t use a variable unless you initialize it so let’s assume if I declare this int quantity here and that i decide to show it on the console my utility will not end up section I ought to assign it a price before i will use it earlier than i will read it i’ll show you that later after we jump to coding to declare constant we start with the key phrase cunt next we have now the datatype and an identifier and right here we need to initialize it with some value we cannot outline a regular with out surroundings its value there are a few things you ought to find out about identifiers first one is that an identifier cannot with a quantity so that you cannot have an identifier just like the one you see right here instead you need to substitute one with the word one so an identifier can’t comprise whitespace so that you can not have an identifier like first area name it has to be one word an identifier are not able to be a reserved key phrase like int that you simply noticed earlier if you are determined to use a word that coincidentally clashes with one of the most C# key phrases that you may ideal that with the add sign and in the end as a recommendation continually use meaningful names for illustration hinder a reputation like f n instead use first title this way your code will probably be extra readable or maintainable and cleaner and each person will realize that in phrases of naming convention listed here are three fashionable naming conventions which were around in the c language family now we have got camelcase Pascal case and Hungarian notation with camelcase as you see i’ve bolded here the first letter of the primary word is lowercase and the primary letter of every word after has to be uppercase with Pascal case the primary letter of every word needs to be uppercase with Hungarian notation we prefix the name of a variable with the datatype it uses so right here str represents a string Hungarian notation is just not utilized in C# and i’ve seen programmers coming from C or C++ historical past use that of their code if you’re one in all them I highly advise you not to use Hungarian notation due to the fact that C# builders should not used to that they usually do not like to look Hungarian notation in the code it makes your code seem slightly bit unpleasant so in C# to call your neighborhood variables use camel case in order you see here the primary letter of the first phrase is lowercase and if we had extra words right here in the identifier the first letter of every word needed to be uppercase four constants use Pascal case so here you see I’ve obtained a constant right here steady integer and the primary letter of each word is uppercase right here is the list of most more often than not used primitive types in C# in fact the genuine list is reasonably greater than this but I deliberately determined not to include those information types due to the fact that they’re infrequently used actually they are there for interoperability with other languages I in my view over the last 12 years of me coding in C# I’ve rarely used them correctly certainly not so I decided not to confuse you with an excessive amount of small print that you simply are not looking for within the subsequent slide I’ve got a hyperlink right here in case you wish to have to learn in regards to the different primitive types so let’s take a appear at the table right here on the left facet i have divided these datatypes into 4 categories fundamental numbers actual numbers personality and boolean this column shows the C# data instances and these are C# keyword phrases observe that C# key phrases are consistently lowercase each of those C# key phrases or C sharp varieties maps to a variety in .Web framework which is displayed on this column so these forms are part of the.Web framework and while you compile your software the compiler internally would translate the C# keyword you employ right here two an identical .Web form the third column here shows the number of bytes each information kind uses and i’ve listed these information types from the smallest to the most important in each and every category so within the category of integral numbers you see byte is the smallest it takes only one byte whereas long is the largest and it takes eight bytes the more bytes we now have the extra storage now we have and we will retailer bigger numbers you do not particularly need to memorize the range of each and every data kind however don’t forget white can store a price between zero to 255 short can store a value between minus 32,000 to plus 32,000 integer can store a worth between minus 2 billion to Plus 2 billion and long is even larger than that in terms of real numbers we have now three data varieties waft double and decimal flow maps to the one style in that framework and it takes four bytes and as you see it could possibly store a very big number double is twice as enormous so it uses eight bytes and decimal uses sixteen bytes the extra precision you want the greater knowledge style you utilize we even have persona which is represented through char key phrase and it’s two bytes so characters in C# are unicode and ultimately we have now bull which represents boolean which can be either actual or false in case you need to learn more concerning the different information types that I told you they are now not really used that you could quite simply go to Google and search for C# constructed-in types and the first web page is the MSDN web page that lists the entire primitive types in C# and a lot of these information types are pretty straightforward however there is some thing complicated about real numbers on this table i have listed the info forms we have for actual numbers load double and decimal I’ve highlighted double on the grounds that that’s the default knowledge sort utilized by a C# compiler when you’re utilising real numbers so if you wish to declare a drift you need to explicitly inform the compiler to treat the number you’ve as a go with the flow right here is an illustration I’ve declared a float call it quantity as i need one point two here i have introduced the suffix F and that is to tell the compiler to trade this number as a flow if I did not have this F right here compiler would think one point two is a double due to the fact that double is the default knowledge kind for actual numbers and of direction I can’t assign a double number right into a flow so the program would now not collect equal applies to decimals so if you wish to declare a decimal you have got to add the suffix M at the finish of the number in C# we also have a few different forms which aren’t viewed primitive types and they are string array enum and class we will study more about them throughout this course ok that is it for this lecture within the next lecture we’ll talk concerning the proposal of overflowing i’m hoping you enjoyed this lecture and thanks for observing k now let’s speak concerning the concept of overflowing here I’ve declared a variable of style byte reduce the quantity and assign it to 255 as I instructed you earlier within the slide 255 is the most important price that you could store in a byte now within the subsequent line i am increasing the value of number via one and trying to store 256 within the number however in the event you compile the applying and display number on the console you’ll see zero and that is what we name overflowing so now we have handed the boundary of the byte data form in C# via default we shouldn’t have overflow checking which means that we will adjust the value of a variable at runtime and if we go past the boundary of its underlying data style we will get overflow now sometimes this isn’t fascinating in your software you need to stop overflowing if that is the case you need to use the investigate keyword so right here is the way it works we’ve the checked keyword followed through curly braces which indicate the code block and within that block we have the variable announcement and any form of arithmetic operations with this code overflow won’t occur at runtime as a substitute an exception can be thrown and the application will crash until you manage the exception the subject of exceptions is an advanced topic and i’ve blanketed it in my C# developed direction for now all i need you to understand is that if you happen to use the verify keyword overflow will not occur and instead the program will throw an exception now do we rather want that really honestly i’ve not ever ever ever came across this concern on account that if I used to be involved that in this case my quantity variable would overflow i’d just conveniently use the short information type instead of byte but I determined to comprise the suggestion of overflowing due to the fact I desired my sous-chef path to be comprehensive so simply be conscious of that should you hear about overflowing somewhere but you’re ordinarily no longer going to use that in the actual world within the subsequent lecture we’re going to speak concerning the concept of scope ok let’s speak concerning the proposal of scope what’s the scope scope is the place a variable or a regular as meaning and is on the market take a seem at this block of code here as you recognize a block is indicated by curly braces here we’ve got three blocks of code here’s one right here is another and here is the final one within the first block I’ve obtained a variable called a an a is obtainable at any place inside this block or any of these little one blocks if i’m going out of this block and check out to access a the software won’t collect the equal rule applies to other variables so let’s take a look at this block right here B is significant at any place within this block or any of its children if i’m going outside this block and try to access B i will get a collect time error k I consider that’s adequate theory for now let’s open up visual studio and do some coding k let’s start by declaring a variable of variety byte and get in touch with it number now we need to display it on the console so as you remember from the last lecture we kind console dot write line and put the variable here observe that as I was once typing console dot write line my resharper plugin robotically introduced this utilising announcement on the highest process is a namespace and console is a category that is defined in the method namespace so in order to use the console class we need that declaration right here on the top if you are now not utilising resharper you must go here and manually kind utilizing method semicolon k now take a look at this quantity here it has a red underline and if we put the mouse cursor right here it says nearby variable quantity would now not be initialized before having access to for those who do not forget from the slides I told you in C# earlier than that you could access a variable you have to set it you have to initialize it and that is the reason right here we have now the purple underline we can not show the quantity on the console earlier than initializing that so if i try to collect the application we will get an error to collect an utility you press ctrl shift + B and right here is the error record use of unassigned regional variable number we will solve this main issue by means of initializing quantity like surroundings it to 2 for illustration and also you see the crimson underline is long gone we can compile once more manage-shift be build succeeded take a seem right here k now we are able to run the appliance through urgent ctrl + f5 k so we received two on the console now let’s lengthen this illustration and declare a few more variables define an integer int count equals 10 and a drift flow say total rate equals 20 $95 now notice this purple underlined right here let’s find out what’s taking place right here so I put the mouse cursor here it says can not convert source style double to goal variety flow if you happen to don’t forget from the slides I told you by using default the sea-shore compiler qualities real numbers like this one here as double whereas we’re declaring a drift so right here we must explicitly tell the C# compiler to deal with this actual quantity as a glide and we are able to try this via appending an F at the finish so the error is gone let’s take your personality so char personality equals a note that in C# we enclose characters by means of single quote like right here we can also declare a string string just isn’t one of the most primitive types and have protected it in a separate lecture in this course however for now let me show you declare a string which is form string give it a name first name equals mosh be aware that with strings we enclose them in double quote so that’s one of the crucial differences between strings and characters and eventually let’s declare a bull bull is working equals genuine so with bulls we can either set them to proper or false each authentic and false our keywords as you will find they’re indicated by the blue colour here and so they’re lowercase so the whole thing you see here that is blue is a key phrase like static void string type identify house and all these information types right here now let’s display these variables on the console so let me show you a trick as an alternative of writing consistent the right line we will do a shortcut that is what we call a code snippet so we form CW that’s brief for console.Writeline after which press tab and visible Studio mechanically converts that to console the right line there are quite a lot of code snippets that support you write code rapid and i’ll try to point them out for the duration of this course so let’s display depend now one other one totalprice and note that i can simply variety t oh and here is what we name intellisense it’s visible studios auto completion mechanism you don’t have got to kind the entire name of a type or a variable as long as the intellisense detects tab and is highlighted right here like whole price that you may with no trouble press tab and there you go visible studio automatically completes that for us let’s show the character identical here I just press tab again I variety only a few characters it could press tab or enter and sooner or later is working we run the appliance with the aid of ctrl + f5 so we got all these values on the console ok now let me exhibit you some thing else in C# we have now a key phrase known as var which makes variable declarations less complicated for instance right here alternatively of explicitly specifying the datatype for every of those right here i will be able to readily style var and that i let the C# compiler become aware of the datatype for this variable here so let me substitute all of this with var k now if we hover the mouse over the VAR key phrase we will see the underlying knowledge type on this case is method that boolean which is the data kind which maps to C# pull keyword how about this one that is a string and this one is a personality and this one is approach that single which maps to drift in C# and within the case of rely it is in 32 which is integer and same for a number so the complex thing right here is by default C# treats essential numbers as integer and while you use the VAR keyword it assumes that it can be an integer if you happen to relatively want to go for a byte then you ought to explicitly specify it as byte right here however let you know from expertise it’s risk-free to make use of integer on the whole correctly when you appear on the classes in the.Web framework regularly integer is the data sort used for representing necessary numbers ok I revert this back now I show you whatever else so let’s take a seem at this one here so it’s a char which is a character i will be able to put the mouse cursor right here and press manage and then click on that opens the thing browser window take a seem right here it can be object browser and it’s a way to look at the various classes to your challenge or in the.Web framework on this case considering that I did a ctrl click on on the char or VAR keyword that is what we bought right here so char is highlighted in the object browser on the right side you see all of the members of the chart kind so these crimson ones are capabilities or approaches in the event you scroll down here you see two fields here min worth and Max worth we’ll explore them shortly and be aware that right here is the announcement of Char Char is a constitution we will be able to duvet structures later in this direction and be aware that it’s a member of approach namespace it will possibly click process and that indicates the process namespace as well as all the types defined within the process namespace so these are a part of the.Internet framework ok let’s shut this for now let’s discover one other example so i’ll do away with the entire code here we are able to effortlessly press manage X on every line and that deletes all these strains right here adequate let’s do a console the right line so CW tab this time I cross a string right here I specify two placeholders and ultimately deliver a few arguments okay let’s examine what’s going on here so right here what now we have is called a format string it can be a form of string that can be utilized as some style of template so at runtime what now we have right here indicated by way of curly braces and nil because the argument can be changed by the value we cross here so 0 represents the first argument after this layout string and 1 represents the 2nd argument after this structure string in this case bited max price so let’s run this software we got 0 and 255 and that is the range you could retailer in a byte we are able to do the equal with a flow so CW faucet a format string float imply price glide Max worth run the appliance so that is the variety we can retailer with a float it is a gigantic quantity that is displayed utilising the scientific notation ok now let’s take a appear at constants so I do away with these two strains right here control X control X we define a constant with the Const keyword Const waft P 3.14 and we need to put F on the end for the reason that it is a float now because we declared P as a constant here I can not trade it in my software so I can’t go right here and say P equals 1 the compiler is just not pleased and that’s why we see that crimson underline here if you hover the mouse right here it says learn handiest neighborhood regular are not able to be used as an undertaking target it can be a bit weird expression to have an understanding of but clearly the intention of utilising constants is to have some kind of defense to your program so if there are values that should not be modified for the period of your application you outline them as consistent and this way you need to accidentally regulate their values good for those who made it this a long way you look to be very keen about studying C# and i extremely advise you to take my C sharp basics course utilising the hyperlink within the video description this fashion which you can be trained all of the core ideas in a structured means and you do not ought to waste time jumping from one free tutorial to yet another you will discover that presently this course has over 5,000 pupils with over four hundred 5-famous person studies plus it comes with a 30-day money-back warranty so if you are not satisfied which you could ask udemy for a full refund inside 30 days and also you get all of your a reimbursement no questions asked once more that you would be able to get this direction utilising the hyperlink within the video description i am hoping to see you in the course on this video i’ll talk about more than a few types of kind conversion in C# we have now implicit type conversion explicit form conversion which is also called casting and we also have conversion between non suitable varieties right here is an instance of implicit style conversion a blight as you know takes just one byte of reminiscence and an integer takes four bytes as a way to simply copy a byte to an integer what happens at runtime is let’s take a seem at this slide so this is the binary representation of our B variable here so one is represented as seven bits of zero and one bit of 1 when we reproduction a byte to an integer what the runtime does is it prefixes that price with a bunch of zeros to fill the 4 bytes there is not any information loss in occasions like that after the compiler is a hundred% definite that the varieties are suitable and no information loss will occur values can also be changed to one other form implicitly right here is one more instance of implicit kind conversion so now we have an integer set it to 1 and we replica that to a drift once more in this illustration no data loss will occur however let’s take a look at this one right here we now have declared an integer and we’re seeking to copy that to a byte and integer is 4 bytes so after we convert that to a byte three bytes out of four bytes can be gone and there’s a threat for data loss now information loss doesn’t always occur it most effective occurs if the value restored in the integer is past the capacity of a byte on this illustration one will also be stored in a byte so no knowledge loss will happen but when we had shall we say 300 right here we can’t store 300 in a byte so thus of that conversion information might be lost when the compiler knows that there is a threat for data loss it would not permit implicit type conversion and you have got to explicitly inform the compiler that you’re conscious of the data loss and you still want to go forward with the conversion in situations like that what we do is we prefix the variable with the goal variety so here i’m attempting to convert I to a byte this is what we call as casting here is a further illustration so we have a go with the flow set to 1.Zero and if we are trying to convert that to an integer the compiler would complain i will exhibit you that later within the coding demo so we ought to tell the compiler that we are aware of the info loss and we nonetheless need to transform F which is a go with the flow to an integer so we forged it like right here routinely we’re working with forms that are not suitable but you still ought to convert them for instance we might have a number represented as a string as you see here and we must convert it to an integer in instances like that considering the fact that string and int usually are not suitable they are not able to use explicit casting so we need an additional mechanism for converting a string to a quantity in situations like that we have to use the convert class or use the parse procedure so convert category is a component of .Net framework and is outlined within the process namespace of ways for changing quite a lot of forms to other forms they usually all start with two in this case we’re attempting to convert s which is a string to an int 32 in 32 as you realize is a .Net framework style which maps to a sushar p– integer type recall a blight is one byte short is two bytes and integer is four bytes and long is eight bytes you most likely understand that each and every byte has eight bits so an integer which has four bytes times eight bits ends up being 32 bits that is why it is known as two in 32 and in sixteen which represents 16 bits equals to brief which is 2 bytes we even have this parse process here the entire primitive varieties that I defined in the final lecture like integer long flow boolean they all have this parse approach and the parsh method takes a string and tries to transform that to the goal style on this case an integer listed here are one of the crucial approaches that you can find in the convert classification to byte which converts the given price to a byte 2 in 16 to convert the given price to a short 2 in 32 to convert the given worth to an integer and to n64 to transform the given price to an extended k in a conception let’s leap into code and spot all this idea in action ok let’s assume implicit style conversion in motion first I declare a bite name it B and set it to 1 now I declare an integer and set it to be once more to recap a byte is only one byte and an integer is 4 bytes so as to replica b2i with out knowledge loss and as you see there’s no assemble time error here let’s put on the console so console dot write line and we move I here observe that as I typed consult the correct line my resharper plugin automatically introduced this utilising procedure statement on the top once more if you wouldn’t have resharper you need to go manually add this assertion here we run the appliance by using ctrl + f5 so we acquired on the console now let’s reverse this and notice what occurs so i’m going to get rid of this code right here control X manipulate X manage X first I declare an integer set it to 1 then I declare a byte and take a look at to repeat I to B we immediately obtained this red underline right here if you happen to hover the mouse here the tooltip says are not able to convert supply kind int to goal form byte frequently this error maybe in yet another file which isn’t open in visible Studio here so you may see the error when compiling the applying let’s simulate that so I bring together this application by ctrl shift and B which stands for build so this is the error cannot implicitly convert kind int to byte an explicit conversion exists are you lacking a caste so now you recognize the notion of implicit versus specific sort conversion so what we have got to do right here is to do a forged so we casted integer to a byte now on this case no information loss will happen seeing that the value is small sufficient to be stored in one bite let’s put B on the console console by right line B we run the applying so the whole lot is just right however let’s see what occurs if we said I – let’s assume thousand we are not able to store the quantity thousand in a byte the maximum we can store in a byte is 255 so in case you run the appliance now we obtained to 32 seeing that some of the bits have been lost and this is the rationale that C# compiler is aware of that there’s a threat for data loss and it enforces you to explicitly specify the solid routinely that despite the variations in information types there is no risk of information loss like within the last illustration the place I used to be set to 1 in those cases we can safely follow a cast ok now let’s take a seem at non suitable types so let’s clean up this code I start through declaring a string let’s call it quantity and set it to 1 two three 4 recapping from the final lecture observe that right here I would declare this with the VAR keyword and considering our compiler mechanically detects that this can be a string so number shall be defined as a string and we are able to see that through hovering the mouse here it says procedure that string now shall we say we want to convert that to a quantity if I declare an integer like I I are not able to solid that quantity to an integer given that they are not suitable let’s take a seem on the error are not able to solid expression of sort string to variety int so in the event you see that error that is the time when you need to use the convert type so we style in convert dot take a look at this method right here – chew – char – in 16 in 32 and plenty of different methods here so let’s convert that to an integer which is int 32 and cross quantity as an argument right here now let’s print out the I on the console run software so I is 1 2 three four all just right however let’s see what happens if instead I declare this as a byte and right here we have got to use convert dot 2 byte and here we display B on the console a byte does not have adequate storage to store the worth of 1234 so once we run the appliance now the appliance crashed the cancel is right here and here is the exception exception is Dartmouth frameworks error reporting mechanism it’s an advanced matter and i’ve blanketed it in detail in my C# developed course however on this video i will in short exhibit you tips on how to control exceptions so right here it says unhandled exception the kind of exception is process that overflow exception because of this we try to store a price that was once too tremendous or too small for a byte so each and every exception or error as a sort in this case overflow exception and has a message value was once both too significant or too small for an unsigned byte regularly the exception messages are friendly sufficient that are convenient to realize routinely they may be a little bit bit intricate and the pleasant method to figure out what goes mistaken is to leap on Google and search for the error and there’s in general normally a Stack Overflow web page that explains that now let’s describe that let’s see how to manage the exception here occurred during conversion of that string to chunk what we have to do here is to wrap these few statements with a try-capture block let’s see the way it works so I just typed attempt to press the enter and visible studio robotically generated this block for me once more that is what we call a code snippet let me undo this i’ll exhibit you a different time so try see this are trying here within the intellisense and this icon represents a code snippet so if I press enter or tab you robotically get this code block so what i will do now could be to maneuver this code enter a are trying block and the trap block gets an exception with the aid of default visual studio as this throw here do not worry about it just delete it again i will provide an explanation for it in element in my sushar evolved direction for now let’s examine what is going on on here so the code that you just put within the try block can be in some way monitored and if an exception occurs this block will likely be accomplished this prevents your software from crashing the rationale our application crashed previous was seeing that we did not manage the exception so when you do not control exception the exception will likely be propagated to the .Internet runtime and that the run instances mechanism is to stop your utility and display the error right here we are able to handle the exception and that would avert the exception from being propagated to .Net runtime so instead we can display a pleasant message to the person pronouncing for illustration console.Writeline the number could not be transformed to a byte now let’s run the applying again see we got the firmly message and the application failed to crash so what i want you to remove from this lecture is this we’re type works pretty good regularly but in cases where the source form cannot be converted to the target kind there is a chance for exception and you must be conscious of that and what you have got to do is to wrap this block of code with are trying-capture let’s take a look at an extra example earlier than we conclude this lecture let’s remove this and as a substitute – drink call it STR and set it to proper we will use the convert type to transform that value to a boolean so bull P equals convert that to boolean and we cross that STR here once more on this instance string and bull will not be suitable and that’s why we are not able to use explicit casting so right here we are utilizing the convert class we can display B on the console utility so the actual string was once efficaciously converted to a boolean value that is as a rule it for this lecture earlier than I conclude I just ought to emphasize anything here that for the period of this path during early lectures you may even see me making use of some brief variable names like P or STR right here that is in basic terms for demonstration and retaining matters simple and in building real-world applications we should really prevent naming our variables ABC STR it can be now not relatively a excellent follow the only exception is when we get to loops which you will see later in this path in for loops we use counter variables and we name them I or J it is a normal conference now right here we’re simply commencing to study C# and it can be relatively impossible for me to illustrate constructing an actual world application on account that you are simply covering their fundamentals or alphabets i am hoping you enjoyed this lecture and thanks for staring at ok we got two operators in C# we’ve five forms of operators arithmetic comparison project logical and bitwise let’s take a better appear at each of these operators we use arithmetic operators in computations the place we are working with numbers in order you see on this slide we’ve add subtract multiply divide and the rest of division we also have two arithmetic operators referred to as increment and decrement which are a shortcut for including one or subtracting one from a variable so a plus plus is identical to a equals any plus one now with this increment and decrement operator there are two ways that you could follow them you can use them as a postfix so in this illustration a is 1 and when we observe the postfix increment operator first the value of a is assigned to B so B is going to be 1 after which a is incremented by means of 1 so in this example after the 2nd line is accomplished a goes to be 2 and B goes to be 1 now let’s take a appear at one other method of applying increment operator as a prefix so on this example within the second line first a is incremented via 1 after which it can be assigned to B so after the 2nd line both a and B are going to be 2 so be mindful of this difference adequate next comparison operators so we acquired equal which is indicated by way of double equal signal no longer equal larger than better than or equal to not up to and no more than or equal to now what i want you to pay awareness to in this record is that the testing for equality is complete by means of double equal signal and that’s special from a single equal which is the project operator next challenge operators so the most most of the time used is the one with a seen the equal sign so right here we set a 2/1 lovely general now appear at the next four types of venture operators addition project subtraction project multiplication task and division venture let’s have a look at how they work for example addition venture a plus equal three approach add three to a so it can be identical to writing a equals a plus three and the identical rule applies to other four undertaking operators logical operators are utilized in boolean expressions that are mainly used in conditional statements will get two conditional statements later in this course so a real-world example is where you have got a situation and you want to make sure that and a further situation both are proper or possibly certainly one of them is right so that’s the place you use a logical operator in C# the logical end is indicated via double ampersand and the logical or is implemented with the aid of double vertical line we even have the no longer operator which is indicated by way of an exclamation mark and finally in right here now we have acquired the bitwise operators bitwise operators are normally utilized in low-level programming like when working with windows api or in sockets or encryption clarification of those is beyond the scope of this course but if you’re interested let me be aware of and that i write a web publication submit for you now what i want you to take away right here is that the bitwise end is indicated by means of a single ampersand whereas the logical end which we use in conditional statements is indicated by way of double ampersand identical for bitwise or and logical or so recollect the change ok sufficient idea let’s flip over to visual studio and notice all these standards in action okay let’s start with the arithmetic operators first so I outline two variables a equals 10 B equals 3 let’s add them collectively and show the outcome in the console that is beautiful convenient proper run the applying so the result is 13 now let’s take a seem at division so I replace the ad operator with division you the influence is three the interesting factor here is when you consider that each a and B are integers the influence of the division ends up being an integer if you happen to like a floating-factor number because the result of the division you have got to solid both these numbers to a drift so like this now if you are on the application the effect is a floating-point quantity now let’s appear at a more tricky illustration let’s assume C’s three B’s 2 and a is 1 I wish to exhibit you the idea of operator precedence so if I variety a plus B instances C what do you assume the influence to be from a mathematical perspective B will have to be expanded through C first which means that two instances three equals six after which it will have to be added to 1 so the influence must be seven let’s run the appliance so C# behaves precisely as what we expected so multiply or division operators have bigger priority than add or subtract if you want to alter the precedence you are able to do so via utilizing parentheses so on this case if you want to have a and B introduced together first and then multiply it via C that is how we’d obtain that on this case the influence will probably be 9 there you go okay now let’s take a seem at assessment operators so let’s do away with C here and rather see if a is higher than B very simple illustration proper the effect is fake so what i would like you to understand here is the effect of the evaluation expression is invariably a boolean value which is true or false we will scan for equality so double equal sign on this case a is not equal to B so the effect must be false now let’s examine the not equal operator so comfortably have an exclamation mark here followed by an equal signal in this case on account that a is not equal to B the result must be real k now let me exhibit you a extra tricky illustration what do you expect right here good first that is the now not operator which is applied on boolean values or boolean expressions in this case this is a boolean expression and as you noticed previous it used to be authentic because a is just not equal to B so we apply the not operator to that and the outcome finally ends up being false let’s run the application so we obtained records right here however this code will not be easy to have an understanding of or convenient to read due to the fact that right here we now have two negatives one poor and two terrible and for us humans to negative is rough to recognize two negatives invariably equal to one constructive so to your software in case you emerge as in occasions the place you could have two negatives make certain to at all times inverse them with one optimistic so if so i will get rid of the primary terrible and convert the 2nd negative to a constructive like that and we will be able to get the equal outcomes which is false now let’s take a look at logical operators so I create an extra variable here VAR c equals three i will change that to C larger than B and C better than a what do you assume here as the result well C is better than B so the effect of that expression is true also C is bigger than a so the outcomes of that expression is true as good and here we have the top operator so proper and genuine equals to genuine let’s run the application there you go now let’s make a tiny exchange here so this time considering we all know C is not equal to a this expression evaluates to false authentic and false results in false let’s run the applying so we received false now let’s have a look at the outcomes of the or operator so i will replace the tip with or which is double vertical line in this case that is proper or false the result finally ends up being genuine and of path we will observe not operator right here as you noticed prior which alterations the genuine to false now this expression doesn’t particularly look easy to understand it is simply in simple terms for demonstration of how we are able to combine different operators and make up extra complex expressions k that is it for this lecture i am hoping you enjoyed it and thanks for staring at ok so we acquired to remark a remark is text that we put in our code to improve its readability and maintainability in C# we now have two ways to write down comments in case your remark is handiest a single line you can prefix the comment with double curb but when your comment is longer and it’s multiple lines you have got to begin it with scale down superstar after which finish it with star decrease this kind of remark is extra just like the comments we used to put in writing in C and C++ code this present day it’s extra conventional to put in writing both single line or multi-line comments prefixing with double cut down so in this instance we will rewrite this multi-line comment with double reduce form like this now most commonly of thumb maintain your comments to minimal use feedback only win required and that is when explaining shrewd residence constraints and things like that don’t give an explanation for what the code is doing all your code must be so smooth and simple that it doesn’t need comment if a comment explains simply what the code is doing is redundant and the problem with redundant comments is we modify the code but not everybody may be very steady in changing the feedback so after a at the same time these feedback end up out of date and considering the fact that they don’t get compiled like the code there is no approach to validate them and after a at the same time they turn out to be vain so once more preserve them to minimal and explain sensible apartment and constraints that you just had at the time you wrote the code so the next character who is reading your code knows the rationale why you wrote the code that means on this section you be taught that C# is a statically typed language because of this while you ticular a variable you have to specify its sort and that kind cannot alternate in the course of the lifetime of that variable you also study about the primitive types in C# akin to integer persona boolean and so forth now within the next part i’ll introduce you to non primitive forms in C# similar to classes or structures arrays strings and in ohms so i’ll see you the next section
0 notes
muzaffar1969 · 7 years
Link
http://ift.tt/2rfYtYF
The Blockchain Bitcoin & Crypto (BBC) Weekly CXO Briefing is all you need to know, each week, jargon free for CXO level business leaders and investors who will use this technology to change the world. Each week we select the 3 news items that matter and explain why and link to one expert opinion.
This is week 5. For the index and the intro, please go here.
News Item 1:  Bitcoin crosses $1,800 for the first time adding $3 billion in market cap in just four days
Decrypted: This is almost getting boring. For three weeks we have been reporting record highs. Last week we reported an all-time high of $1,500. The previous week it was $1,300.  Now we have $1,800. In past weeks we said that this price action matters because “the Bitcoin price drives interest in this sector.” This is still true.
Our take:   The relentless price rise leads to two stories. One is “this is a bubble” and the other references price targets over $1 million per Bitcoin. Our take is that both are true, depending on your timeframe. There is a short term bubble and when the price corrects it will be brutal. You can lose 50% from here easily. The trigger could be anything; a big cyber heist is one likely story trigger.  However, we also believe that the over $1 million per Bitcoin stories are not crazy. It really depends on which of three lenses you use to look at Bitcoin as an investor:
Lens 1 = currency. A $1m coin is clearly crazy seen through this lens. When/if we get there, pricing for things other than jets, yachts, islands, mansions, famous art will be in Satoshis. There are 100m Satoshis to one Bitcoin. So if one Bitcoin is worth $1m, one Satoshi will be $0.01. So you can price a coffee or a pizza in Satoshis. (We may need an interim unit, maybe a Merkle, that is closer to $1 for everyday items where $0.01 is too low). A currency rising from $1,800 to $1m is inconceivable when seen through a currency lens, because it has never happened in any other currency (currency depreciation of that magnitude is far more common than order of magnitude Fiat currency appreciation). So we have to look at Bitcoin through two other lenses.
  Lens 2 = Gold alternative. This is tail risk insurance (in case of say hyperinflation in major Fiat currencies). There are gold bugs and there are Bitcoin bugs. The debate has been had many times. Both have pros and cons. The true believers won’t listen to the other side. Pragmatists buy a little of each. Both gold and Bitcoin have value as tail risk insurance and you can never know which will be more useful in different scenarios, so a bit of both is just a pragmatic insurance policy. For example, gold might be more useful for buying food from a conservative farmer but Bitcoin would better for sending money to a distant friend/family member. However, nobody seriously forecasts gold to go up 100x unless it is pegged against a currency undergoing hyperinflation. So the $1m Bitcoin forecast makes no sense through this currency lens unless that $1m is really worth $1k in today’s money.
  Lens 3 = Equity. This is where the valuations over $1m come from. Bitcoin is like equity because the supply is limited to 21 million Bitcoin. That is like the stock of company with 21 million shares. If you have 210,000 Bitcoin, you have 1% of Bitcoin as a whole. A price of $1m per Bitcoin translates to a total market cap of $21,000,000,000,000 ($21 trillion). If Bitcoin fundamentally changes the global financial services business that is not inconceivable. It is a long shot of course. That is over 500x more than the current all-time high of $1,800. The price could also crash to zero. That is also unlikely but possible. That kind of upside and downside is like investing in a tech startup, with lots of risk, but with maybe more upside than downside; if you have say a 50% risk of total loss and 50% chance of 10x and 10% chance of 100x return, the risk/reward looks good.
When we see something totally new like Bitcoin, humans naturally search for analogies from the past – currency, gold, shares. These analogies help with initial understanding, but they get in the way as well. Bitcoin is a bit like a currency, a bit like a gold alternative store of value and a bit like equity in a tech startup. It is a bit like all three, but it is different from all three. Beyond a certain point all analogies just get in the way.
News Item 2: The ERC20 Ethereum Token Standard
Decrypted: This requires two glossaries – which you can gloss over (ha ha) if you are already a cyber afficionado:
Ethereum. There is a cyber currency called Ether (ETH) that is used on Ethereum networks and you can speculate in ETH, but comparing ETH to BTC is apples vs oranges. Ethereum is a decentralized operating system. That is as complex and game-changing as other operating systems in their day such as Windows and Linux. The currency is the least interesting part of Ethereum. (Click here for Daily Fintech archive posts related to Ethereum).
Token. Think of this like a token you put in a slot machine. It is convertible to another asset, but in its native form it is only usable within that context (slot machine in that example). The innovation, often referred to as ICO (Initial Currency Offering) or ITO (Initial Token Offering) is to use digital tokens on a blockchain network. Click here for our take on ICOs.
What the ERC20 token standard is designed for is interoperability. It is better if all slot machines take the same token. Or to put it in blockchain terms, it is better if all Distributed Applications (aka Dapps, the apps that run on the decentralized operating system) take the same digital token.  If all tokens created on the Ethereum network use the same standard, those tokens will be easily exchangeable and be able to immediately work with any other Dapps that use the ERC20 standard. Technically a standardized token uses a defined set of functions, making testing and debugging easier for developers of Dapps.
Our take: This is still at the bleeding edge stage, with code on Github and some unresolved technical issues. It may or may not become the accepted standard. Given the momentum behind Ethereum, we believe that it stands a good chance of being an accepted standard. If an interoperable token standard emerges it will make ICOs more mainstream acceptable and that will be a big deal. Read this post for our take on ICOs.
News Item 3: Billionaire VC and Bitcoin fan invests in an ICO
Decrypted: Tim Draper is a renowned VC (with Skype and Baidu among his successes) and a Bitcoin bull and ICOs are billed as a way to disintermediate VCs. So when Tim Draper invests in an ICO we take notice.
The ICO, for a blockchain platform called Tezos, will launch on May 22. Draper will also invest in the creator of Tezos, Dynamic Ledger Solutions Inc, so this has a traditional VC angle as well.
Our Take: What this means is that Josephine Q Public can co-invest with a top VC and that is significant. Caution, blindly following a smart investor (social validation) is not smart. Do your own research. I see very little describing what Tezos does and what value it brings. I have no doubt that the ICO will be oversubscribed thanks to Tim Draper’s social validation, so the ICO will probably do well for speculators, but that does not make it a good long term bet (you need to be a momentum trader with strong nerves to play that game). Nor do we know the terms on which Tim Draper invested in the company. We believe that a self-regulatory code of conduct is needed for ICOs. If you are interested in working to make this happen, please get in touch as we know some people working on this.
Opinion: The EU thinks we should take Blockchain seriously
One major theme we are tracking is regulatory competition to be Bitcoin friendly in different jurisdictions. We have written about Switzerland, Malta, Japan and we are also seeing moves by Australia.
So it matters when the EU, the biggest single market in the world, jumps into the fray. So although we class this as opinion not news, it is significant opinion. With the USA distracted by Trump scandals, the EU has a window to take a leadership position.
The opinion being expressed is from an MEP called Jakob von Weizsäcker. It was at a session on the future of blockchain regulation in the 28-nation economic bloc. He was being cautious and said:
“It’s probably too early to intervene at this stage, because we as legislators don’t yet see sufficiently clearly to know what the main issues are going to be – so in order to not to stifle innovation, we don’t want it to be now.”
As Coindesk reported “interest was evident in the room, where every seat was full and stand-ups were lining the back wall.”
Coindesk also reported that “one commentator remarked on the irony of a disruptive technology that, rather than generating chaos, adds stability” and stunningly quoted a politician making a statement that you usually here from crypto anarchists:
“What is a currency really? It’s a ponzi game.”
Bernard Lunn is a Fintech thought-leader and deal-maker. 
Get fresh daily insights from an amazing team of Fintech thought leaders around the world. Ride the Fintech wave by reading us daily in your email.
May 15, 2017 at 09:51AM http://ift.tt/2qh8Zl4 from Bernard Lunn http://ift.tt/2qh8Zl4
0 notes