Kod Örnekleri
Yayınlanan içerikleri kategoriye göre keşfedin.
Python: Finding Duplicate Files with SHA-256
Identify the same files as content using pathlib and hashlib.
Python: Adding CSV Sales by Category with Decimal
Securely collect CSV data by category using Decimal.
JavaScript: Reducing Unnecessary Operations in the Live Search Box with Debounce
Only process the last entry instead of searching each time the user presses the key.
JavaScript: AbortController to Add Timeout to Fetch Request
Safely cancel a Fetch API request with the AbortController at the end of the period.
PHP 8.2: Verify JSON API Input and Return Standard Response
JSON request body reading, validating required fields and generating standard JSON response.
PHP 8.2: Saving Orders and Items Atomically with PDO Transaction
Preventing the formation of half data by saving order headers and items in a single transaction.
T-SQL: Secure Upsert in Transaction without using MERGE
Secure upsert transaction within the transaction using UPDATE and insert.
T-SQL: Customer-Based Cumulative Balance with Window Function
Line-by-line cumulative balance calculation from customer movements using SUM OVER.
Delphi: Running in the Background with TTask and Securely Updating the UI
Running the long process without locking the main UI thread and transferring the result to the form with TThread.Queue.
Delphi: Secure Reading and Error Management of JSON Data
Example of securely parsing, field reading, and memory management of a JSON object with System.JSON.