Refactoring •GURU• 🐿
Refactoring.Guru is a shiny website where you can find tons of information on refactoring, design patterns, SOLID principles and other smart programming topics. ✨
https://refactoring.guru/
#CleanCode #Refactoring
@ProgrammingTip
Refactoring.Guru is a shiny website where you can find tons of information on refactoring, design patterns, SOLID principles and other smart programming topics. ✨
https://refactoring.guru/
#CleanCode #Refactoring
@ProgrammingTip
refactoring.guru
Refactoring and Design Patterns
Refactoring is a controllable process of improving code without creating new functionality. Design Patterns are typical solutions to the commonly occurring problems in software design.
Stackify Prefix ☘️
Prefix is a lightweigth developer tool that shows you:
• Logs
• Errors
• Queries
...
in Real-time . 💎
Languages Supported : C#, Java 🕶
https://stackify.com/prefix/
src : [ @IranAspMvc ]
#Tracking #Log
@ProgrammingTip
Prefix is a lightweigth developer tool that shows you:
• Logs
• Errors
• Queries
...
in Real-time . 💎
Languages Supported : C#, Java 🕶
https://stackify.com/prefix/
src : [ @IranAspMvc ]
#Tracking #Log
@ProgrammingTip
Stackify
Prefix: The Developer's Tracing Solution and Code Profiling Tool
Our code profiling and tracing solution, Prefix. Streamlines app development, and optimizes app performance. No more nightmare code reviews!
Best Websites a Programmer Should Visit 🦋
Some useful websites for programmers. ✨
When learning CS there are some useful sites you must know to get always informed in order to do your technologies eve and learn new things.
Here is a non exhaustive list of some sites you should visit :
[ https://goo.gl/BVQT1v ]
#FreeTime
@ProgrammingTip
Some useful websites for programmers. ✨
When learning CS there are some useful sites you must know to get always informed in order to do your technologies eve and learn new things.
Here is a non exhaustive list of some sites you should visit :
[ https://goo.gl/BVQT1v ]
#FreeTime
@ProgrammingTip
GitHub
GitHub - sdmg15/Best-websites-a-programmer-should-visit: :link: Some useful websites for programmers.
:link: Some useful websites for programmers. Contribute to sdmg15/Best-websites-a-programmer-should-visit development by creating an account on GitHub.
Airbnb JavaScript Style Guide 🚀
Table of Contents 📜 :
• Types
• References
• Objects
• Arrays
• Strings
• Functions
• ...
[ https://github.com/airbnb/javascript ]
#JavaScript #Guide #Tips
@ProgrammingTip
Table of Contents 📜 :
• Types
• References
• Objects
• Arrays
• Strings
• Functions
• ...
[ https://github.com/airbnb/javascript ]
#JavaScript #Guide #Tips
@ProgrammingTip
GitHub
GitHub - airbnb/javascript: JavaScript Style Guide
JavaScript Style Guide. Contribute to airbnb/javascript development by creating an account on GitHub.
👉 Pointer Tips In C & C++ 👈
🔸Never ever forget to initialize the pointer. This may be simple and easy known stuff but here I would like to add it as an embedded system developer that this was the main cause of many bugs.
🔹Also never change the pointer variable itself unless & until you need to change the pointer.
🔸Also monitor that the pointers are not overlapping if not pointing to same memory location range.
〰〰〰〰〰〰〰〰〰〰〰〰〰〰
#c #cpp #pointer
@ProgrammingTip
🔸Never ever forget to initialize the pointer. This may be simple and easy known stuff but here I would like to add it as an embedded system developer that this was the main cause of many bugs.
🔹Also never change the pointer variable itself unless & until you need to change the pointer.
🔸Also monitor that the pointers are not overlapping if not pointing to same memory location range.
〰〰〰〰〰〰〰〰〰〰〰〰〰〰
#c #cpp #pointer
@ProgrammingTip
💚 Retrofit Library 💚
Retrofit turns your REST API into a Java Interface 💎
It’s an elegant solution for organizing API Calls in a project. The request method and relative URL are added with an Annotation , which makes code clean and simple.
With annotations, you can easily add a request body, manipulate the URL or headers and add query parameters. 🔥
Adding a return type to a method will make it synchronous, while adding a Callback will allow it to finish asynchronously with success or failure. 🔰
For learn more about Retrofit see :
https://github.com/square/retrofit
http://square.github.io/retrofit/
#java #android #library
@ProgrammingTip
Retrofit turns your REST API into a Java Interface 💎
It’s an elegant solution for organizing API Calls in a project. The request method and relative URL are added with an Annotation , which makes code clean and simple.
With annotations, you can easily add a request body, manipulate the URL or headers and add query parameters. 🔥
Adding a return type to a method will make it synchronous, while adding a Callback will allow it to finish asynchronously with success or failure. 🔰
For learn more about Retrofit see :
https://github.com/square/retrofit
http://square.github.io/retrofit/
#java #android #library
@ProgrammingTip
GitHub
GitHub - square/retrofit: A type-safe HTTP client for Android and the JVM
A type-safe HTTP client for Android and the JVM. Contribute to square/retrofit development by creating an account on GitHub.
JavaScript Clean Code 🛠
Use consistent capitalization 💡
Bad :
Good :
➖➖➖➖➖➖
#JSTips #CleanCode
@ProgrammingTip
Use consistent capitalization 💡
Bad :
const DAYS_IN_WEEK = 7;
const daysInMonth = 30;
const songs = ['Back In Black', 'Stairway to Heaven', 'Hey Jude'];
const Artists = ['ACDC', 'Led Zeppelin', 'The Beatles'];
function eraseDatabase() {}
function restore_database() {}
class animal {}
class Alpaca {}
Good :
const DAYS_IN_WEEK = 7;
const DAYS_IN_MONTH = 30;
const SONGS = ['Back In Black', 'Stairway to Heaven', 'Hey Jude'];
const ARTISTS = ['ACDC', 'Led Zeppelin', 'The Beatles'];
function eraseDatabase() {}
function restoreDatabase() {}
class Animal {}
class Alpaca {}
➖➖➖➖➖➖
#JSTips #CleanCode
@ProgrammingTip
Loader.css 🌀
Delightful and performance-focused pure css loading animations. 💎
https://github.com/ConnorAtherton/loaders.css
Demo : https://connoratherton.com/loaders
〰〰〰〰〰〰
#CSS
@ProgrammingTip
Delightful and performance-focused pure css loading animations. 💎
https://github.com/ConnorAtherton/loaders.css
Demo : https://connoratherton.com/loaders
〰〰〰〰〰〰
#CSS
@ProgrammingTip
GitHub
GitHub - ConnorAtherton/loaders.css: Delightful, performance-focused pure css loading animations.
Delightful, performance-focused pure css loading animations. - ConnorAtherton/loaders.css
Turn Things Off In HTML 📴
When making responsive sites, you don’t really want users to be able to double tap and zoom, as all your content should be visible. 🖥
To do this you will need to add some code that disables user zooming and scaling.
This code will also enable iOS device to display sites more elegantly when the iPad or iPhone is rotated. 📱
➖➖➖➖➖➖➖➖➖➖
#html #responsive
@ProgrammingTip
When making responsive sites, you don’t really want users to be able to double tap and zoom, as all your content should be visible. 🖥
To do this you will need to add some code that disables user zooming and scaling.
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
This code will also enable iOS device to display sites more elegantly when the iPad or iPhone is rotated. 📱
➖➖➖➖➖➖➖➖➖➖
#html #responsive
@ProgrammingTip
Try to group extension methods into static classes dealing with the same extended type. 📦
Sometimes related classes (such as DateTime and TimeSpan) can be sensibly grouped together. ↔️
But avoid grouping extension methods targeting disparate types such as Stream and string within the same class. ❌
〰〰〰〰〰〰
#CleanCode #ExtensionMethods
@ProgrammingTip
Sometimes related classes (such as DateTime and TimeSpan) can be sensibly grouped together. ↔️
But avoid grouping extension methods targeting disparate types such as Stream and string within the same class. ❌
〰〰〰〰〰〰
#CleanCode #ExtensionMethods
@ProgrammingTip
Let in LINQ 🔮
A let clause introduces a new range variable with a value that can be based on other range variables.
❌ Sorting by the lengths of usernames without let clause :
✅ Using a let clause to remove redundant calculations :
〰〰〰〰〰〰
#LINQ #Query
@ProgrammingTip
A let clause introduces a new range variable with a value that can be based on other range variables.
❌ Sorting by the lengths of usernames without let clause :
var query =
from user in SampleData.AllUsers
orderby user.Name.Length
select user.Name;
foreach (var name in query)
Console.WriteLine("{0}: {1}", name.Length, name);
✅ Using a let clause to remove redundant calculations :
var query =
from user in SampleData.AllUsers
let length = user.Name.Length
order by length
select new
{
Name= user.Name,
Length = length
};
foreach (var entry in query)
Console.WriteLine("{0}:{1}",entry.Length, entry.Name);
〰〰〰〰〰〰
#LINQ #Query
@ProgrammingTip
Bridge.NET : C# To Javascript Compiler 🔥
Open Source C# to JavaScript Compiler and Frameworks.
Run Your App On Any Device Using JavaScript. 💎
[ Website ] : http://bridge.net/
[ Demo ] : https://deck.net/
〰〰〰〰〰〰
#JavaScript #CSharp
@ProgrammingTip
Open Source C# to JavaScript Compiler and Frameworks.
Run Your App On Any Device Using JavaScript. 💎
[ Website ] : http://bridge.net/
[ Demo ] : https://deck.net/
〰〰〰〰〰〰
#JavaScript #CSharp
@ProgrammingTip
bridge.net
Domain Names For Sale
Looking for the perfect domain?
Profiling ASP.NET Core With Stackify Prefix 📊
https://pioneercode.com/post/profiling-asp-net-core-with-stackify-prefix
〰〰〰〰〰〰
#Aspnet #Core #Statistics
@ProgrammingTip
https://pioneercode.com/post/profiling-asp-net-core-with-stackify-prefix
〰〰〰〰〰〰
#Aspnet #Core #Statistics
@ProgrammingTip
Listing Content Of Directory In Java 📁
In order to list the contents of a directory, below program can be used. 🗄
This program simply receives the names of the all sub-directory and files in a folder in an Array and then that array is sequentially traversed to list all the contents. 💎
➖➖➖➖➖➖➖➖➖➖➖➖
#java #io
@ProgrammingTip
In order to list the contents of a directory, below program can be used. 🗄
This program simply receives the names of the all sub-directory and files in a folder in an Array and then that array is sequentially traversed to list all the contents. 💎
import java.io.*;
public class ListContents {
public static void main(String[] args) {
File file =
new File("//home//user//Documents/");
String[] files = file.list();
System.out.println (
"Listing contents of " + file.getPath()
);
for(int i=0 ; i < files.length ; i++) {
System.out.println(files[i]);
}
}
}
➖➖➖➖➖➖➖➖➖➖➖➖
#java #io
@ProgrammingTip
Creating Areas In ASP.NET Core 🔐
[ Website ] :
https://pioneercode.com/post/creating-areas-in-asp-net-core
〰〰〰〰〰〰
#Aspnet #Core #Area
@ProgrammingTip
[ Website ] :
https://pioneercode.com/post/creating-areas-in-asp-net-core
〰〰〰〰〰〰
#Aspnet #Core #Area
@ProgrammingTip
PioneerCode
Creating Areas In ASP.NET MVC Core
Structuring maintainable projects is key when it comes to the long-term success of any project. ASP.NET MVC Core Areas help us accomplish this. By Chad Ramos at Pioneer Code.
Git - Stash Saves Time 💎
The command git stash , picks All the changes in staging and save it in a separate place. Thus, this useful and aptly named command clears your staging area. 🔥
That way you can save a set of changes you have made but do not yet want to commit. 💥
Or, if you would need to stash untracked changes as well, use -u argument: 💡
In particular, I use more stash when I need to git pull and want to avoid conflicts between local changes and changes upstream.
¯\_(ツ)_/¯
To restore your local changes back to staging, you need to apply your stash. The following command recreates the latest changes that were stashed away: ✔️
You can have more than one stash. By default, your stashes will be applied in FILO (First-in, last-out) order.
#git #vcs #stash
@ProgrammingTip
The command git stash , picks All the changes in staging and save it in a separate place. Thus, this useful and aptly named command clears your staging area. 🔥
That way you can save a set of changes you have made but do not yet want to commit. 💥
$ git stash
Or, if you would need to stash untracked changes as well, use -u argument: 💡
$ git stash -u
In particular, I use more stash when I need to git pull and want to avoid conflicts between local changes and changes upstream.
¯\_(ツ)_/¯
To restore your local changes back to staging, you need to apply your stash. The following command recreates the latest changes that were stashed away: ✔️
$ git stash apply
You can have more than one stash. By default, your stashes will be applied in FILO (First-in, last-out) order.
#git #vcs #stash
@ProgrammingTip
Deploying ASP.NET Core Applications To IIS ☁️
[ Website ] : https://pioneercode.com/post/deploying-asp-dot-net-core-on-iis
〰〰〰〰〰〰
#Aspnet #Core
@ProgrammingTip
[ Website ] : https://pioneercode.com/post/deploying-asp-dot-net-core-on-iis
〰〰〰〰〰〰
#Aspnet #Core
@ProgrammingTip
PioneerCode
Deploying ASP.NET Core Applications To IIS
Unlike its predecessor ASP.NET, ASP.NET Core is not "hosted" inside of IIS. Instead, ASP.NET Core runs as a standalone process backed by Kestrel. In this post, I will show how to setup IIS to proxy public facing requests to your ASP.NET Core application.
Pluralsight - .NET Micro ORMs.zip
1017.6 MB
Pluralsight | .NET Micro ORMs ⚡️
Demonstrate the details of 5 different .NET Micro ORMs :
• Dapper
• OrmLite
• Massive
• PetaPoco
• Simple.Data
〰〰〰〰〰〰
#ORM #Dapper #Tutorial
@ProgrammingTip
Demonstrate the details of 5 different .NET Micro ORMs :
• Dapper
• OrmLite
• Massive
• PetaPoco
• Simple.Data
〰〰〰〰〰〰
#ORM #Dapper #Tutorial
@ProgrammingTip