#go#go_interview_questions#go_practice#golang#golang_interview_questions#golang_practice#hacktoberfest#interview#interview_practice#interview_questions#learn_to_code#learning_resources
You can practice and improve your Go programming skills with an interactive web platform that offers 30 coding challenges ranging from beginner to advanced levels. It provides a live code editor with syntax highlighting, instant test results, and detailed performance analytics to help you write efficient Go code. You can track your progress on leaderboards, compare your solutions with others, and learn from detailed explanations and resources for each challenge. The platform supports easy setup via web UI, GitHub Codespaces, or command line, making it convenient to prepare for Go technical interviews and boost your coding confidence. This helps you master Go concepts and get ready for real job interviews effectively.
https://github.com/RezaSi/go-interview-practice
🚀 Вышел стабильный JavaScript движок от Google для Android
Новая стабильная библиотека Jetpack JavaScript Engine позволит разработчикам выполнять JS код в изолированной и ограниченной среде.
class MainActivity : ComponentActivity() {
// Теперь nullable, без lateinit
private var jsSandbox: JavaScriptSandbox? = null
private var jsIsolate: JavaScriptIsolate? = null
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
if (!JavaScriptSandbox.isSupported()) {
Log.e("JS", "JavaScriptSandbox не поддерживается")
return
}
lifecycleScope.launch {
// Создаём и сохраняем в nullable-поле
jsSandbox = JavaScriptSandbox
.createConnectedInstanceAsync(applicationContext)
.await()
jsIsolate = jsSandbox?.createIsolate()
// При выполнении гарантируем, что jsIsolate != null
val result: String = jsIsolate
?.evaluateJavaScriptAsync(JS_SCRIPT_SCRING)
?.await()
?: "Ошибка: isolate не инициализирован"
Log.d("JS", "Результат выполнения: $result")
}
}
override fun onDestroy() {
super.onDestroy()
// Закрываем только если не null
jsIsolate?.close()
jsSandbox?.close()
}
}
#jetpack#js