Use Strings carefully β οΈ
If two Strings are concatenated using β+β operator in a βforβ loop, then it creates a new String Object, every time.
This causes wastage of Memory and increases Performance time.
Also, while instantiating a String Object, constructors should be avoided and instantiation should happen directly. For example:
#memory #java #string
@ProgrammingTip
If two Strings are concatenated using β+β operator in a βforβ loop, then it creates a new String Object, every time.
This causes wastage of Memory and increases Performance time.
Also, while instantiating a String Object, constructors should be avoided and instantiation should happen directly. For example:
//Slower Instantiation β
String bad = new String("string object");
//Faster Instantiation β
String good = "string object";
#memory #java #string
@ProgrammingTip
Avoiding Memory Leaks By Simple Tricks β
Memory Leaks often cause performance degradation of software. Since, Java manages memory automatically, the developers do not have much control.
But there are still some standard practices which can be used to protect from memory leakages. ππ»ββοΈ
1οΈβ£ - Always release database connections when querying is complete.
2οΈβ£ - Try to use Finally block as often possible.
3οΈβ£ - Release instances stored in Static Tables.
#java #memory #performance
@programmingTip
Memory Leaks often cause performance degradation of software. Since, Java manages memory automatically, the developers do not have much control.
But there are still some standard practices which can be used to protect from memory leakages. ππ»ββοΈ
1οΈβ£ - Always release database connections when querying is complete.
2οΈβ£ - Try to use Finally block as often possible.
3οΈβ£ - Release instances stored in Static Tables.
#java #memory #performance
@programmingTip
Bootstrap Studio π
±οΈ
A powerful desktop app for creating responsive websites using the Bootstrap framework.
https://bootstrapstudio.io/
#Bootstrap
@ProgrammingTip
A powerful desktop app for creating responsive websites using the Bootstrap framework.
https://bootstrapstudio.io/
#Bootstrap
@ProgrammingTip
Bootstrap Studio 2.2.4 Professional Edition.exe
47.5 MB
Bootstrap Studio Version 2.2.4 Professional Edition π¦
Media is too big
VIEW IN TELEGRAM
Creating a Responsive website using Boostrap Studio Tutorial βοΈ
What the f*ck JavaScript? π€·π»ββοΈ
A list of funny and tricky JavaScript examples :
https://github.com/denysdovhan/wtfjs
#JavaScript #Fun
@ProgrammingTip
A list of funny and tricky JavaScript examples :
https://github.com/denysdovhan/wtfjs
#JavaScript #Fun
@ProgrammingTip
55 Checkboxes With Online Demo & Source Code πΎ
http://freefrontend.com/css-checkboxes/
#CSS #UI
@ProgrammingTip
http://freefrontend.com/css-checkboxes/
#CSS #UI
@ProgrammingTip
The Majesty of Vue.js.pdf
9.5 MB
The Majesty of Vue.js π
Author : Alex Kyriakidis π
Simple explained ππ»
#Book #Vue #JavaScript
@ProgrammingTip
Author : Alex Kyriakidis π
Simple explained ππ»
#Book #Vue #JavaScript
@ProgrammingTip
JSF*ck π€¦π»ββοΈ
It's a programming style based on the atomic parts of JavaScript.
It uses only 6 different characters to write and execute code.
Try it one time π€£
http://www.jsfuck.com/
#Fun #JavaScript
@ProgrammingTip
It's a programming style based on the atomic parts of JavaScript.
It uses only 6 different characters to write and execute code.
Try it one time π€£
http://www.jsfuck.com/
#Fun #JavaScript
@ProgrammingTip
Jsfuck
JSFuck - Write any JavaScript with 6 Characters: []()!+
JSFuck is an esoteric and educational programming style based on the atomic parts of JavaScript. It uses only six different characters to execute code.
Visual Studio Code treasures π
A list of Visual Studio Code extensions i canβt live without them.
http://bit.do/vscode
#Extensions #VSCode
@ProgrammingTip
A list of Visual Studio Code extensions i canβt live without them.
http://bit.do/vscode
#Extensions #VSCode
@ProgrammingTip
Medium
π Visual Studio Code treasures
a list of Visual Studio Code extensions I canβt live without
Measuring Time π°
Many applications require a very precise time measurement. For this purpose, Java provides static methods in System class. π
1οΈβ£ - currentTimeMillis(): Returns current time in MilliSeconds since Epoch Time, in Long.
view sourceprint?
2οΈβ£ - nanoTime(): Returns the current value of the most precise available system timer, in NanoSeconds, in long.
nanoTime() is meant for measuring relative time interval instead of providing absolute timing.
#java #time
@ProgrammingTip
Many applications require a very precise time measurement. For this purpose, Java provides static methods in System class. π
1οΈβ£ - currentTimeMillis(): Returns current time in MilliSeconds since Epoch Time, in Long.
view sourceprint?
long startTime = System.currentTimeMillis();
long estimatedTime = System.currentTimeMillis() - startTime;
2οΈβ£ - nanoTime(): Returns the current value of the most precise available system timer, in NanoSeconds, in long.
nanoTime() is meant for measuring relative time interval instead of providing absolute timing.
long startTime = System.nanoTime();
long estimatedTime = System.nanoTime() - startTime;
#java #time
@ProgrammingTip
Android Asset Studio π
A web-based set of tools for generating graphics and other assets that would eventually be in an Android application's res/ directory.
βLauncher icons
βAction bar icons
βNotification icons
βGeneric square icons
βSimple nine-patches
https://jgilfelt.github.io/AndroidAssetStudio/
#Android #Tools
@ProgrammingTip
A web-based set of tools for generating graphics and other assets that would eventually be in an Android application's res/ directory.
βLauncher icons
βAction bar icons
βNotification icons
βGeneric square icons
βSimple nine-patches
https://jgilfelt.github.io/AndroidAssetStudio/
#Android #Tools
@ProgrammingTip
This media is not supported in your browser
VIEW IN TELEGRAM
Expodal π₯
The Most Explosive Modal on the Web
Demo : https://jessekorzan.github.io/expodal/
Source : https://github.com/jessekorzan/expodal
#Modal
@ProgrammingTip
The Most Explosive Modal on the Web
Demo : https://jessekorzan.github.io/expodal/
Source : https://github.com/jessekorzan/expodal
#Modal
@ProgrammingTip
HTML5UP π
Attractive HTML5 Templates for Free π―
https://html5up.net/
#Theme #Template
@ProgrammingTip
Attractive HTML5 Templates for Free π―
https://html5up.net/
#Theme #Template
@ProgrammingTip
A.W.E.S.O.M.O π€
A big list of really interesting open source projects, for more than 18 programming languages.
https://github.com/lk-geimfari/awesomo
#OpenSource
@ProgrammingTip
A big list of really interesting open source projects, for more than 18 programming languages.
https://github.com/lk-geimfari/awesomo
#OpenSource
@ProgrammingTip
JavaScript Clean Code π
Use meaningful and pronounceable variable names π‘
Bad :
Good :
#JSTips #CleanCode
@ProgrammingTip
Use meaningful and pronounceable variable names π‘
Bad :
const yyyymmdstr = moment().format('YYYY/MM/DD');
Good :
const currentDate = moment().format('YYYY/MM/DD');
#JSTips #CleanCode
@ProgrammingTip
JavaScript Clean Code π
Use default arguments instead of short circuiting or conditionals π‘
Bad :
Good :
ββββββ
#JSTips #CleanCode
@ProgrammingTip
Use default arguments instead of short circuiting or conditionals π‘
Bad :
function createMicrobrewery(name) {
const breweryName = name || 'Hipster Brew Co.';
// ...
}
Good :
function createMicrobrewery(breweryName = 'Hipster Brew Co.') {
// ...
}
ββββββ
#JSTips #CleanCode
@ProgrammingTip
JavaScript Clean Code π
Use explanatory variables π‘
Bad :
Good :
ββββββ
#JSTips #CleanCode
@ProgrammingTip
Use explanatory variables π‘
Bad :
const address = 'One Infinite Loop, Cupertino 95014';
const cityZipCodeRegex = /^[^,\\]+[,\\\s]+(.+?)\s*(\d{5})?$/;
saveCityZipCode(address.match(cityZipCodeRegex)[1], address.match(cityZipCodeRegex)[2]);
Good :
const address = 'One Infinite Loop, Cupertino 95014';
const cityZipCodeRegex = /^[^,\\]+[,\\\s]+(.+?)\s*(\d{5})?$/;
const [, city, zipCode] = address.match(cityZipCodeRegex) || [];
saveCityZipCode(city, zipCode);
ββββββ
#JSTips #CleanCode
@ProgrammingTip