Thinking JavaScript π‘
The question posed to me was this :
Why does this first line "work" (compiles/runs) but the second line gives an error βοΈ
Not that I expect you'll ever intentionally write (or read, hopefully!) code like this, but being able to think more like JavaScript does always help you write better code. β
In this topic, we're gonna answer this question.
[ Website ] : https://davidwalsh.name/thinking-javascript
γ°γ°γ°γ°γ°γ°
#JavaScript #Compiler #Deep
@ProgrammingTip
The question posed to me was this :
Why does this first line "work" (compiles/runs) but the second line gives an error βοΈ
[[]][0]++;
[]++;
Not that I expect you'll ever intentionally write (or read, hopefully!) code like this, but being able to think more like JavaScript does always help you write better code. β
In this topic, we're gonna answer this question.
[ Website ] : https://davidwalsh.name/thinking-javascript
γ°γ°γ°γ°γ°γ°
#JavaScript #Compiler #Deep
@ProgrammingTip
David Walsh Blog
Thinking JavaScript
Exploring JS syntax/grammar to understand a confusing snippet, improving our thinking to be more like JavaScript!
Cleave.js π
Format your <input/> content when you are typing. π
Supported Formats :
β’ Credit Card
β’ Phone Number ( All Countries )
β’ Date
β’ Numeral
β’ Custom Formatting
β’ ReactJS Component π
β’ AngularJS Directive π °οΈ
[ Website ] : http://nosir.github.io/cleave.js/
γ°γ°γ°γ°γ°γ°
#JavaScript #Library
@ProgrammingTip
Format your <input/> content when you are typing. π
Supported Formats :
β’ Credit Card
β’ Phone Number ( All Countries )
β’ Date
β’ Numeral
β’ Custom Formatting
β’ ReactJS Component π
β’ AngularJS Directive π °οΈ
[ Website ] : http://nosir.github.io/cleave.js/
γ°γ°γ°γ°γ°γ°
#JavaScript #Library
@ProgrammingTip
Nameof Expression, Avoid Magic Strings πΆπ»
This is one of many goodnesses that came with C# 6.0 Back in July 2015.
A moment to think about some wild magic string that we could replace with nameof.
[ Website ] : https://codingblast.com/nameof-expression/
γ°γ°γ°γ°γ°γ°
#CSharp #NameOf
@ProgrammingTip
This is one of many goodnesses that came with C# 6.0 Back in July 2015.
A moment to think about some wild magic string that we could replace with nameof.
[ Website ] : https://codingblast.com/nameof-expression/
γ°γ°γ°γ°γ°γ°
#CSharp #NameOf
@ProgrammingTip
Benchmark .NET π
BenchmarkDotNet is a powerful .NET library for benchmarking.
[ Website ] : http://benchmarkdotnet.org/
[ Github ] : https://github.com/dotnet/BenchmarkDotNet
γ°γ°γ°γ°γ°γ°
#Dotnet #Benchmark
@ProgrammingTip
BenchmarkDotNet is a powerful .NET library for benchmarking.
[ Website ] : http://benchmarkdotnet.org/
[ Github ] : https://github.com/dotnet/BenchmarkDotNet
γ°γ°γ°γ°γ°γ°
#Dotnet #Benchmark
@ProgrammingTip
GitHub
GitHub - dotnet/BenchmarkDotNet: Powerful .NET library for benchmarking
Powerful .NET library for benchmarking. Contribute to dotnet/BenchmarkDotNet development by creating an account on GitHub.
Log Rocket π
Logging and Session Replay for JavaScript Apps.
Stop guessing why bugs happen,
LogRocket records everything users do on your site, helping you reproduce bugs and fix issues faster.
Provide SDKs for :
β’ React
β’ Angular
β’ Vue
β’ Redux
β’ Ember
β’ Plain JS
[ Website ] : https://logrocket.com/
γ°γ°γ°γ°γ°γ°
#JavaScript #Logging
@ProgrammingTip
Logging and Session Replay for JavaScript Apps.
Stop guessing why bugs happen,
LogRocket records everything users do on your site, helping you reproduce bugs and fix issues faster.
Provide SDKs for :
β’ React
β’ Angular
β’ Vue
β’ Redux
β’ Ember
β’ Plain JS
[ Website ] : https://logrocket.com/
γ°γ°γ°γ°γ°γ°
#JavaScript #Logging
@ProgrammingTip
Logrocket
Session Replay | Product Analytics | Error Tracking | LogRocket
LogRocket helps you understand problems affecting your users, so that you can get back to building great software.
Repl.it πΎ
Repl.it is a cloud coding environment for :
β’ Kotlin
β’ C++
β’ Python
β’ JavaScript
β’ Haskell
β’ Go
β’ Swift
...
[ Website ] : https://repl.it/
γ°γ°γ°γ°γ°γ°
#Environment #Playground
@ProgrammingTip
Repl.it is a cloud coding environment for :
β’ Kotlin
β’ C++
β’ Python
β’ JavaScript
β’ Haskell
β’ Go
β’ Swift
...
[ Website ] : https://repl.it/
γ°γ°γ°γ°γ°γ°
#Environment #Playground
@ProgrammingTip
Replit
Replit β Build apps and sites with AI
Replit is an AI-powered platform for building professional web apps and websites.
βBootbox.js : Bootstrap modals made easy π₯
Bootbox.js is a small JavaScript library which allows you to create programmatic dialog boxes using Bootstrap modals, without having to worry about creating, managing or removing any of the required DOM elements or JS event handlers. π
Hereβs the simplest possible example:
or
[ Website ] : http://bootboxjs.com/
γ°γ°γ°γ°γ°γ°
#Bootstrap #Bootbox #JavaScript
@ProgrammingTip
Bootbox.js is a small JavaScript library which allows you to create programmatic dialog boxes using Bootstrap modals, without having to worry about creating, managing or removing any of the required DOM elements or JS event handlers. π
Hereβs the simplest possible example:
bootbox.alert("Hello world!");or
bootbox.alert("Your message hereβ¦",
function(){ /* callback */ })[ Website ] : http://bootboxjs.com/
γ°γ°γ°γ°γ°γ°
#Bootstrap #Bootbox #JavaScript
@ProgrammingTip
Baffle.js β
A tiny (~1.8kb) javascript library for obfuscating and revealing text in DOM elements.
[ Website ] : https://camwiegert.github.io/baffle/
γ°γ°γ°γ°γ°γ°
#JavaScript #Obfuscate
@ProgrammingTip
A tiny (~1.8kb) javascript library for obfuscating and revealing text in DOM elements.
[ Website ] : https://camwiegert.github.io/baffle/
γ°γ°γ°γ°γ°γ°
#JavaScript #Obfuscate
@ProgrammingTip
camwiegert.github.io
baffle.js
a tiny (~1.8kb) javascript library for obfuscating and revealing text in DOM elements.
Invoking Delegate in an interpolated Verbatim String C# π¨π»βπ»
Try this short program, it has lots of topics to learn.
γ°γ°γ°γ°γ°γ°
#CSharp #Deep
@ProgrammingTip
Try this short program, it has lots of topics to learn.
Console.WriteLine($@"Hello {( (Func<string>) ( () =>
{
Console.Write("What's your name ? ");
return Console.ReadLine();
})).Invoke()}");γ°γ°γ°γ°γ°γ°
#CSharp #Deep
@ProgrammingTip
Esprima β¨
Esprima is a high performance, standard-compliant ECMAScript parser written in ECMAScript.
βοΈnline Features :
β’ Parser
β’ Syntax Validator
β’ Regex Collector
β’ Minify & Obfuscate
β’ Identifier Highlight
β’ Rename Refactoring
β’ AutoComplete
[ Website ] : http://esprima.org/index.html
[ Parser - Produce the syntax tree ] :
http://esprima.org/demo/parse.html
γ°γ°γ°γ°γ°γ°
#JavaScript #ES
@ProgrammingTip
Esprima is a high performance, standard-compliant ECMAScript parser written in ECMAScript.
βοΈnline Features :
β’ Parser
β’ Syntax Validator
β’ Regex Collector
β’ Minify & Obfuscate
β’ Identifier Highlight
β’ Rename Refactoring
β’ AutoComplete
[ Website ] : http://esprima.org/index.html
[ Parser - Produce the syntax tree ] :
http://esprima.org/demo/parse.html
γ°γ°γ°γ°γ°γ°
#JavaScript #ES
@ProgrammingTip
Do I need to dispose of Tasks βοΈ
Short answer to this question π π»ββοΈ :
And for those of you looking for a coffee-break read, hereβs long answer :
[ Website ] : http://bit.do/DisposeTasks
γ°γ°γ°γ°γ°γ°
#Dotnet #Parallel #Dispose
@ProgrammingTip
β Task implements IDisposable and exposes a Dispose method.
Does that mean I should dispose of all of my tasks ? β
Short answer to this question π π»ββοΈ :
No. Don't bother disposing of your tasks.
And for those of you looking for a coffee-break read, hereβs long answer :
[ Website ] : http://bit.do/DisposeTasks
γ°γ°γ°γ°γ°γ°
#Dotnet #Parallel #Dispose
@ProgrammingTip
Microsoft
Do I need to dispose of Tasks?
All about Async/Await, System.Threading.Tasks, System.Collections.Concurrent, System.Linq, and moreβ¦
You donβt have to memorize everything when it comes to Programming π
π»ββοΈ
Good programmers do not waste their time memorizing everything, every documentation, every piece of information.
But they are good at knowing the concepts and reading the documentation, googling and solving problems.
[ Website ] : http://bit.do/DontWasteTime
γ°γ°γ°γ°γ°γ°
#Tips
@ProgrammingTip
Good programmers do not waste their time memorizing everything, every documentation, every piece of information.
But they are good at knowing the concepts and reading the documentation, googling and solving problems.
[ Website ] : http://bit.do/DontWasteTime
γ°γ°γ°γ°γ°γ°
#Tips
@ProgrammingTip
Compare two string by equals() instead == in java π‘
Use equals() because this method internally checks == plus content equality check. βοΈ
[ CODE ]
[ RESULT ]
γ°γ°γ°γ°γ°γ°γ°γ°γ°γ°
#java
@PorgrammingTip
Use equals() because this method internally checks == plus content equality check. βοΈ
[ CODE ]
public class Test {
public static void main(String[] args) {
String s1 = "string";
String s2 = "string";
String s3 = new String("string");
String s4 = s3;
String s5 = "str"+"ing";
System.out.println("s1==s2 :"+(s1==s2));
System.out.println("s1==s3 :"+(s1==s3));
System.out.println(
"s1.equals(s3) :"+s1.equals(s3)
);
System.out.println("s3==s4 :"+(s3==s4));
System.out.println(
"s3.equals(s4) :"+s3.equals(s4)
);
System.out.println("s1==s5 :"+(s1==s5));
System.out.println(
"s1.equals(s5) :"+s1.equals(s5)
);
}
}[ RESULT ]
s1==s2 :true
s1==s3 :false
s1.equals(s3) :true
s3==s4 :true
s3.equals(s4) :true
s1==s5 :true
s1.equals(s5) :true
γ°γ°γ°γ°γ°γ°γ°γ°γ°γ°
#java
@PorgrammingTip
Programming Entity Framework- DbContext.pdf
7.8 MB
Programming Entity Framework : DbContext π
Author: Julia Lerman, Rowan Miller π
Publisher: O'Reilly π
γ°γ°γ°γ°γ°γ°
#Book #EF
@ProgrammingTip
Author: Julia Lerman, Rowan Miller π
Publisher: O'Reilly π
γ°γ°γ°γ°γ°γ°
#Book #EF
@ProgrammingTip
Awesome Vue.js π°
A curated list of awesome Vue.js things πΆ
[ Website ] :
https://github.com/vuejs/awesome-vue
γ°γ°γ°γ°γ°γ°
#JavaScript #Vue
@ProgrammingTip
A curated list of awesome Vue.js things πΆ
[ Website ] :
https://github.com/vuejs/awesome-vue
γ°γ°γ°γ°γ°γ°
#JavaScript #Vue
@ProgrammingTip
Particles.js β¨
A lightweight JavaScript library for creating particles.
[ Website ] :
http://vincentgarreau.com/particles.js/
γ°γ°γ°γ°γ°γ°
#JavaScript #Library
@ProgrammingTip
A lightweight JavaScript library for creating particles.
[ Website ] :
http://vincentgarreau.com/particles.js/
γ°γ°γ°γ°γ°γ°
#JavaScript #Library
@ProgrammingTip
particles.js
particles.js - A lightweight JavaScript library for creating particles
A lightweight JavaScript library for creating particles.
No Need for Temporary Collections, Yield Might Help β
Normally when we need to fetch the items from a collection we might create a Temporary List to hold the retrieved items and return. π
Following is the C# code using the temporary list :
βββββββ
To avoid the usage of this temporary collection you could choose to use the yield. π₯
It will yield the result as and when the result set is enumerated.
Below is the code using the yield keyword :
γ°γ°γ°γ°γ°γ°
#CSharp #Collections
@ProgrammingTip
Normally when we need to fetch the items from a collection we might create a Temporary List to hold the retrieved items and return. π
Following is the C# code using the temporary list :
public List<int> GetValuesGreaterThan100
(List<int> masterCollection)
{
List<int> tempResult = new List<int>();
foreach (var value in masterCollection)
{
if (value > 100)
tempResult.Add(value);
}
return tempResult;
}
βββββββ
To avoid the usage of this temporary collection you could choose to use the yield. π₯
It will yield the result as and when the result set is enumerated.
Below is the code using the yield keyword :
public IEnumerable<int> GetValuesGreaterThan100(List<int> masterCollection)
{
foreach (var value in masterCollection)
{
if (value > 100)
yield return value;
}
}
γ°γ°γ°γ°γ°γ°
#CSharp #Collections
@ProgrammingTip
6 Simple Tips on How to Start Writing Clean Code πΎ
1οΈβ£ Make code readable for people.
2οΈβ£ Use meaningful names for variables, functions and methods.
3οΈβ£ Let every function or method perform only one task.
4οΈβ£ Use comments for clarification ( if really needed )
5οΈβ£ Be consistent
6οΈβ£ Review your code regularly
γ°γ°γ°γ°γ°γ°
#CleanCode
@ProgrammingTip
1οΈβ£ Make code readable for people.
2οΈβ£ Use meaningful names for variables, functions and methods.
3οΈβ£ Let every function or method perform only one task.
4οΈβ£ Use comments for clarification ( if really needed )
5οΈβ£ Be consistent
6οΈβ£ Review your code regularly
γ°γ°γ°γ°γ°γ°
#CleanCode
@ProgrammingTip