Search results

객체 프로퍼티 키 평가 과정

Lee Dogeon @moreal@hackers.pub

이 글은 AI도 틀리는 JavaScript 퀴즈를 풀면서 발견한 JavaScript의 흥미로운 동작 방식에 대한 탐구 과정을 담고 있습니다. 퀴즈의 예제 코드를 실행했을 때 예상과 다른 결과가 나타난 이유를 분석하며, JavaScript에서 세미콜론 자동 삽입(Automatic Semicolon Insertion) 규칙과 쉼표 연산자의 동작 방식을 설명합니다. 특히 배열이 객체의 프로퍼티 키로 사용될 수 있는 이유를 파악하기 위해 ECMAScript 명세를 깊이 파고들어 `Symbol.toPrimitive`라는 개념을 소개합니다. 이를 통해 객체가 프로퍼티 키로 사용될 때 JavaScript 엔진이 어떻게 객체를 문자열로 변환하는지, 그리고 `Symbol.toPrimitive`를 사용하여 이 동작을 어떻게 커스터마이징할 수 있는지 보여줍니다. 비록 퀴즈의 정답과는 거리가 멀어졌지만, 이 과정에서 얻게 된 새로운 지식을 공유하며 JavaScript의 숨겨진 동작 원리를 이해하는 데 도움을 줍니다.

Read more →
5

AI도 무조건 틀리는 Javascript 퀴즈

중고 자몽차(따뜻함) @dvbeetle@hackers.pub

이 JavaScript 퀴즈는 `age` 객체와 `preferences` 객체를 사용하여 각 이름에 대한 나이를 출력하는 문제입니다. `forEach` 메서드를 통해 배열의 각 요소(이름)를 `printAge` 함수에 전달하고, 이 함수는 템플릿 리터럴을 사용하여 "name is age" 형태의 문자열을 콘솔에 출력합니다. Claude Opus, GPT 4.5, Gemini 2.5 Pro와 같은 고급 AI 모델들도 이 문제에서 오답을 냈다는 점이 흥미롭습니다. 이 코드를 통해 JavaScript의 객체 접근과 배열 메서드 사용법을 다시 한번 상기할 수 있습니다.

Read more →
3

A look at the state of , as it turns 10. It’s getting traction in some areas (though notably game engines aren’t one of them), though a pain point is its low-level model and lack of any standard implementation of structured types or garbage collection making interfacing with dynamic languages, or indeed the web DOM, a pain. As with Java, though, the web may not be where it ends up.

queue.acm.org/detail.cfm?id=37

0
0

Henlo frens, i have completed my basic studies of HTML and CSS with the help of a local school, now i begin studying Javascript.

But between the JS studies, i want to practice my HTML and CSS skills, what would be the best way to do that?

I believe that trying to clone existing websites would be a cool way to upskill. Do you know of any particular website(s) that i should try and clone as a beginner? I have once worked with cloning amazon.com.

What else can i do as well? I want to focus on styling and structure as well.

Tags:

0
0
0
0
0
0

Time for a proper

Hi, the name's Sebin

I'm a dragon 🐲 from Germany 🇩🇪🍺🥨 working as a 👨🏻‍💻 :firefox: making websites look pretty with , and with as my forte

💻 I'm using :arch: btw, trying very hard not to break it while tinkering with it. rookie

🎮 old and new, among others , , and critically acclaimed MMORPG

🎧 game , , ,

Avid fan

0
0

Reposting my after migrating. I’m 54 & live in southeastern Pennsylvania. Had 2 careers, now pondering a third. 12 years in IT then 16 years of tech blogging / podcasting & a 1.5 year stint at Google. Currently blogging about & on my own. Also covering on the side. Slowly learning through a formal program… just because! 12 years of battling to make life more interesting. 😉 I enjoy , & all things ✌🏻

Kevin Tofel sitting on a 2015 Moto Guzzi V7 Stone motorcycle.
0
0
0
0

It's been 30 years we have . So much in technology has changed in that time. It's kind of amazing how much the language and the broader web helped shape the world.

post on the history of Javascript really cements this. Can't believe it's been that long. 😅

deno.com/blog/history-of-javas

0
0

If you're building a JavaScript library and need logging, you would love LogTape

hackers.pub/@hongminhee/2025/l

1

When I have some time to kill, I'll make a Desktop Environment Framework using with and .

In my mind: apps would work seamlessly between desktop environment, no matter the flavor.

The idea: Apps are processes, Desktop Bus ties Window to App, multiple Desktops (screens).

0
0

If you're building a JavaScript library and need logging, you'll probably love LogTape

洪 民憙 (Hong Minhee) @hongminhee@hackers.pub

LogTape offers a novel approach to logging in JavaScript libraries, designed to provide diagnostic capabilities without imposing choices on users. Unlike traditional methods such as using debug packages or custom logging systems, LogTape operates on a "library-first design" where logging is transparent and only activated when configured. This eliminates the fragmentation problem of managing multiple logging systems across different libraries. With zero dependencies and support for both ESM and CommonJS, LogTape ensures minimal impact on users' projects, avoiding dependency conflicts and enabling tree shaking. Its universal runtime support and efficient performance make it suitable for various environments. By using a hierarchical category system, LogTape prevents namespace collisions, offering a seamless developer experience with TypeScript support and structured logging patterns. LogTape provides adapters for popular logging libraries like Winston and Pino, bridging the transition for users invested in other systems. Ultimately, LogTape offers a way to enhance library capabilities while respecting users' preferences and existing choices, making it a valuable consideration for library authors.

Read more →
10

Since I haven’t yet posted an

Hi, Mastodon! I joined :mastodon: before the kicked off because I love exploring new apps and social media sites.

I’m a programmer by trade, usually working on web apps using and of course (we love it just the way it is lol :blobmiou:)

I’m constantly , especially , , and ! I’m passionate about music, especially and electronica. Catch me at … IYKYK 🙃

0

Announcing LogTape 1.0.0

洪 民憙 (Hong Minhee) @hongminhee@hackers.pub

LogTape 1.0.0 has been released, marking a significant milestone for this zero-dependency logging library designed for the modern JavaScript ecosystem. This release emphasizes API stability and introduces high-performance features such as non-blocking sinks for console, stream, and file logging, along with the `fromAsyncSink()` function for integrating asynchronous logging operations. New sink integrations include packages for AWS CloudWatch Logs and Windows Event Log, enhancing LogTape's versatility. The update also brings a visually appealing console logging experience with the `@logtape/pretty` package, and seamless integration with existing Winston or Pino setups through adapter packages. Key developer experience enhancements include programmatic access to log levels and improved browser compatibility. LogTape 1.0.0 streamlines logging infrastructure with a comprehensive package ecosystem, offering specialized packages for various logging needs. This release provides a stable and mature logging solution, making it easier to manage and optimize logging in JavaScript applications.

Read more →
12

I guess I should have an #introduction on here as well:

I'm a programmer and #FreeSoftware enthusiast. I've been using #Linux as my main desktop and #Emacs as my... everything... since 2008. I started off with a lot of distro hopping, my journey took me through #Ubuntu, #Fedora, #Zenwalk, #Gentoo, and #Exherbo before settling on #ArchLinux, now with #Guix on top.

I love writing software in #Lisp (either #CommonLisp or #Scheme or any other), but I don't get enough of a chance to. Except #EmacsLisp, basically all my personal projects end up being written in that. Other than that I've enjoyed writing things in #CSharp, #PHP, #Python, #JavaScript, #Ruby, #Groovy, and several other languages.

My main account is @ryuslashTom :emacs: :guix:, this is my account for experimenting with self-hosting.

0

Chawanというターミナルウェブブラウザを知りました.

メモリセーフなNimで実?

されていてライセンスはパブリックドメインです.

同じようにターミナル上で動作するw3mやLynx系との大きな違いはJavaScriptやCSSに対応している辺りでしょうか.SixelやKittyのターミナル画像形式にも対応しています.

少し試してみました.

Chawan: TUI web browser

chawan: TUI Web Browser

chawan – A TUI web browser.

[…]

https://matoken.org/blog/2025/06/20/try-chawan-a-terminal-web-browser-that-supports-images-javascript-css-etc/

chawan aboutchawan chawanchawan tenki1
0

Hi, sfba.social! Allow me to myself.

I just moved here from pdx.social. I can’t be summed up in a single toot, but… I love , , , , the coast, , and systems. Oh, and my three brilliantly unique kids (the hardest work I’ve ever done) and really bad puns.

My life’s work is building Oolie, our family business and Certified helping families sleep better with bedding and baby products. I hope you’ll check us out: oolie.com/signup

In my former career, I was into online learning, creative coding, and data visualization, even publishing a couple of books. I still love that stuff ( ), but that feels like 1M years ago.

Expect to see posts about everything mentioned above!

Big thanks to the SFBA @moderatorsSFBA Moderators for having me.

♥️

0

I hate saying things which seem blindingly obvious, but when Famous People™ such as Theo on YouTube make these basic mistakes, I wonder. 🧐

So here you go:

`document.querySelector("# my-dumb-button").addEventListener(...)` is completely obsolete in the year 2025.

Never do that again please. You don't need to!

If you're wondering “well, what should I do instead?”, check the comments; we'll talk about what to do instead. Apparently it will BLOW YOUR MIND! 😂

0