Loading...

All Tips (7)

Credits: Theta Trainings ๐Ÿ‘โญ๐Ÿ’–

Follow Bishir Tijjani ๐Ÿ˜‰๐Ÿ•บ for the most amazing content related to JavaScript, programming, ReactJS & Web Development
JavaScript April 18, 2024
Bishir Tijjani javascript
Make fields '๐—ฟ๐—ฒ๐—ฎ๐—ฑ๐—ผ๐—ป๐—น๐˜†' when exclusively assigned in the constructor!

A field set only in a constructor without the readonly modifier may lead to ambiguity in its intended use.

Marking such fields as readonly enhances clarity about their purpose.

The readonly modifier prevents unintentional alterations by future maintainers.

However, there are some ๐—ฒ๐˜…๐—ฐ๐—ฒ๐—ฝ๐˜๐—ถ๐—ผ๐—ป๐˜€:

โ†’ Fields declared in classes marked with the Serializable attribute.

โ†’ Fields declared in partial classes.

โ†’ Fields with attributes are ignored.

โ†’ Fields of type struct that are not primitive or pointer types are also ignored because of possible unwanted behavior.
C# April 16, 2024
Georgios Petas CSharp .Net
๐—š๐˜‚๐—ฎ๐—ฟ๐—ฑ is a conditional statement to perform early input validation and detect problematic states, mitigating potential execution errors within a method.

The ๐—ด๐˜‚๐—ฎ๐—ฟ๐—ฑ ๐—ฐ๐—น๐—ฎ๐˜‚๐˜€๐—ฒ runs before the main code, quickly checking if specific conditions are not met and ๐—ณ๐—ฎ๐—ถ๐—น๐—ถ๐—ป๐—ด ๐—ณ๐—ฎ๐˜€๐˜ if necessary. It guards the rest of the code.

โœ… By checking for invalid input or problematic states at the beginning code becomes less cluttered and easier to follow, enhancing both code ๐—ฟ๐—ฒ๐—ฎ๐—ฑ๐—ฎ๐—ฏ๐—ถ๐—น๐—ถ๐˜๐˜† and ๐—บ๐—ฎ๐—ถ๐—ป๐˜๐—ฎ๐—ถ๐—ป๐—ฎ๐—ฏ๐—ถ๐—น๐—ถ๐˜๐˜†.
โœ… This technique is highly effective for preventing deep conditional nesting, making the logic flow clearer and more transparent.

Do you use ๐—š๐˜‚๐—ฎ๐—ฟ๐—ฑ๐˜€ & ๐—™๐—ฎ๐—ถ๐—น ๐—™๐—ฎ๐˜€๐˜ techniques in your code? ๐Ÿ‘‡

๐Ÿ”„ If this is useful, ๐™ง๐™š๐™ฅ๐™ค๐™จ๐™ฉ to spread the knowledge.
๐Ÿ‘‰ Follow Poorna Soysa and click the notification bell๐Ÿ””on his likedin profile to receive notifications for all his upcoming posts.
C# April 11, 2024
Poorna Soysa CSharp .Net
๐Ÿš€ In LINQ queries, the order in which you apply operations can affect performance. If you filter a collection using ๐—ช๐—ต๐—ฒ๐—ฟ๐—ฒ before sorting it with ๐—ข๐—ฟ๐—ฑ๐—ฒ๐—ฟ๐—•๐˜†, you reduce the number of items that need to be sorted. Sorting is generally more computationally expensive than filtering, so this can result in significant performance benefits, especially for larger collections.

๐Ÿ”ฅ This approach enhances performance because we're sorting a smaller subset of the original data.
C# April 04, 2024
Jalal Alzebda CSharp .Net
Here are some tips to help you enhance the performance of your SQL queries.
SQL March 20, 2024
Kadek Dwi Pradnyana SQL
Here is first a jQuery AJAX example showing how to make an AJAX call in jQuery:
var jqxhr = 
    $.ajax({
       type: "POST",
       url: "/theServiceToCall.html",
       data: {
           name : "The name",
           desc : "The description"
        }
    })
    .done  (function(response, textStatus, jqXHR)    { alert("Success: " + response); })
    .fail  (function(jqXHR, textStatus, errorThrown) { alert("Error"); })
    .always(function(jqXHROrData, textStatus, jqXHROrErrorThrown)     { alert("complete"); })
    ;
jQuery March 11, 2024
Sonzogni Nicolò AJAX
Visual Studio March 04, 2024
Microsoft Microsoft

Activity Logs

There are 2 new tasks for you in รขโ‚ฌล“AirPlus Mobile Appรขโ‚ฌย project:
Added at 4:23 PM by
img
Meeting with customer
Application Design
img
img
A
In Progress
View
Project Delivery Preparation
CRM System Development
img
B
Completed
View
Invitation for crafting engaging designs that speak human workshop
Sent at 4:23 PM by
img
Task #45890 merged with #45890 in รขโ‚ฌล“Ads Pro Admin Dashboard project:
Initiated at 4:23 PM by
img
3 new application design concepts added:
Created at 4:23 PM by
img
New case #67890 is assigned to you in Multi-platform Database Design project
Added at 4:23 PM by
Alice Tan
You have received a new order:
Placed at 5:05 AM by
img

Database Backup Process Completed!

Login into Admin Dashboard to make sure the data integrity is OK
Proceed
New order #67890 is placed for Workshow Planning & Budget Estimation
Placed at 4:23 PM by
Jimmy Bold
Pic
Brian Cox 2 mins
How likely are you to recommend our company to your friends and family ?
5 mins You
Pic
Hey there, weรขโ‚ฌโ„ขre just writing to let you know that youรขโ‚ฌโ„ขve been subscribed to a repository on GitHub.
Pic
Brian Cox 1 Hour
Ok, Understood!
2 Hours You
Pic
Youรขโ‚ฌโ„ขll receive notifications for all issues, pull requests!
Pic
Brian Cox 3 Hours
You can unwatch this repository immediately by clicking here: Keenthemes.com
4 Hours You
Pic
Most purchased Business courses during this sale!
Pic
Brian Cox 5 Hours
Company BBQ to celebrate the last quater achievements and goals. Food and drinks provided
Just now You
Pic
Pic
Brian Cox Just now
Right before vacation season we have the next Big Deal for you.

Shopping Cart

Iblender The best kitchen gadget in 2022
$ 350 for 5
SmartCleaner Smart tool for cooking
$ 650 for 4
CameraMaxr Professional camera for edge
$ 150 for 3
$D Printer Manfactoring unique objekts
$ 1450 for 7
MotionWire Perfect animation tool
$ 650 for 7
Samsung Profile info,Timeline etc
$ 720 for 6
$D Printer Manfactoring unique objekts
$ 430 for 8