Tagged articles
eval
22 articles · Page 1 of 1
This comprehensive guide presents a four-layer framework for prompt engineering: controlling input distribution, sampling techniques, multi-sample orchestration, and context engineering for production systems, with practical examples and engineering principles for reliable LLM applications.
LLMRAGReact
0 likes · 68 min read

The article presents a comprehensive analysis of AI developer experience (DevEx), detailing why traditional DevEx falls short for LLM‑driven applications, describing a seven‑component platform that spans Playground, Trace replay, Prompt diff, RAG debugging, Eval dashboards, SDK/CLI, and scaffolding templates, and offering concrete architecture, code, metric baselines, framework comparisons, and best‑practice recommendations for enterprise adoption.
AIDevExLLMOps
0 likes · 30 min read

This tutorial demonstrates how to harness Python's built‑in functions—print, input, open, eval, and exec—to customize console logs, write test results to files, create interactive scripts, safely evaluate strings, and dynamically load code, while highlighting common pitfalls and security considerations.
PythonTest Automationdata processing
0 likes · 15 min read

The article explains why the JavaScript eval() function is prohibited by major companies due to severe security vulnerabilities, significant performance penalties, maintainability challenges, and provides safer alternatives and best‑practice recommendations for developers.
Best PracticesJavaScriptSecurity
0 likes · 5 min read

Discover seven practical Python tricks—from function attributes and pass placeholders to eval, web server shortcuts, unlimited arguments, zip merging, and list rotation—each illustrated with clear code examples that make everyday coding faster and more elegant.
code tricksevalfunctions
0 likes · 5 min read

Python’s eval() function acts as a double‑edged sword, enabling dynamic code execution by parsing, compiling, and running string‑based expressions, but it introduces security and performance risks; this article explains its inner workings, common use cases, potential dangers, and safe practices or alternatives.
PythonSecuritybest-practices
0 likes · 9 min read

This article explains why major tech firms forbid JavaScript's eval() due to severe security vulnerabilities, performance degradation, maintainability challenges, and offers safer alternatives and best‑practice guidelines for developers.
Best PracticesJavaScriptalternatives
0 likes · 5 min read

This article walks through a community question about saving several mixed-type Python lists to a txt file, presenting three code solutions—including direct writes, global variable iteration, and a concise eval loop—while comparing their flexibility and suitability.
File I/OPythoneval
0 likes · 5 min read

This article provides a comprehensive guide to Python's eval() function, covering its syntax, parameters, execution process, differences between globals and locals, dynamic versus static execution, common use cases, security risks, and alternatives such as ast.literal_eval() and exec().
PythonSecuritycode evaluation
0 likes · 15 min read

This article explains three common methods—eval, ast.literal_eval, and json.loads—for converting quoted Python strings into executable code or data structures, outlining their advantages, disadvantages, and appropriate use cases.
Securityast.literal_evaldata serialization
0 likes · 5 min read

This article explains Python's eval() function, demonstrates basic and variable usage, highlights security risks, and presents safer alternatives such as ast.literal_eval and restricted eval implementations, providing code examples and practical recommendations for secure code execution.
PythonSecurityast.literal_eval
0 likes · 5 min read

This article walks through a real‑world Pandas issue raised in a Python community, shows how an eval conversion from string to list resolved the problem, and offers practical tips for sharing sanitized data and clear code when seeking help.
Data SanitizationDebuggingPandas
0 likes · 5 min read

This article walks through a real‑world Python question about converting several heterogeneous lists into a .txt file, presenting multiple code solutions, explaining the use of eval and loops, and showing the resulting output to help readers solve similar data‑export tasks.
Code ExampleListdata export
0 likes · 5 min read

This article explains JavaScript's variable scope models—including lexical and dynamic scope—covers the three scope types (global, function, and block), details hoisting, the eval function, scope chains, and closures, and shows practical code examples for each concept.
closureevalhoisting
0 likes · 18 min read

This article explains the purpose, usage, parameters, return values, and differences of Python's eval, exec, compile, globals, and locals functions, providing detailed code examples and output analysis to help readers grasp how these built‑ins work in various execution contexts.
compileevalexec
0 likes · 13 min read

This article walks through a seemingly simple Python input‑eval problem, reveals a hidden bug caused by extra parentheses around input(), demonstrates corrected code and extensive testing, and explains how proper use of eval can safely parse various data types.
DebuggingPythonTutorial
0 likes · 6 min read

This article explains Python's eval function, its syntax and parameters, demonstrates how it parses and evaluates expressions, shows practical examples with globals and locals, and discusses important security considerations when executing dynamic code.
PythonSecurityTutorial
0 likes · 9 min read

This article provides a comprehensive overview of using Lua scripts with Redis, covering Lua basics, advantages of Lua scripting, detailed Redis‑Lua integration syntax, command usage, return‑type mappings, script management commands, and step‑by‑step instructions for installing Lua and executing example scripts.
LuaRedisdatabase
0 likes · 15 min read

This article explains how to use Python's sorted, eval, and upper built‑in functions, covering their syntax, optional arguments such as key, cmp, and reverse, safety considerations for eval, and concrete code examples that demonstrate sorting lists, converting strings to uppercase, and evaluating literals.
coding-tutorialevalfundamentals
0 likes · 6 min read

This article explains how Python's eval can execute arbitrary code, demonstrates multiple bypass techniques—including __import__, __builtins__ manipulation, and object subclass exploitation—and shows how to safely restrict eval using whitelist globals or ast.literal_eval to prevent code injection and denial‑of‑service attacks.
PythonSecurityWhitelist
0 likes · 9 min read

This article reveals a collection of unconventional JavaScript techniques—including regex replacement, Unicode escapes, eval tricks, unusual operator combinations, custom getters/setters, and URL‑encoded payloads—that can evade common XSS filters and strengthen your understanding of web security.
BypassSecurityUnicode
0 likes · 10 min read


21CTOApr 19, 2016 · Backend Development
This article walks through the fundamentals of creating a tiny template engine, explaining how templates are split into text, variables and blocks, how delimiters are parsed, how an abstract syntax tree is built, and how both Python and JavaScript can render the template using eval or Function constructors.
ASTJavaScriptPython
0 likes · 8 min read
