u/Substantial_Bag_9536

i++ and struct

Salut à tous !

Pourquoi ceci ne fonctionne-t-il pas ?

var i = 0;
global.upgradeCard[i] = { id: i++ }
global.upgradeCard[i] = { id: i++ }
global.upgradeCard[i] = { id: i++ }
global.upgradeCard[i] = { id: i++ }
global.upgradeCard[i] = { id: i++ }

...

On pourrait penser qu'on attribue les ID 0, puis 1, puis 2, mais d'après le journal, il semble y avoir un décalage. Quelqu'un sait pourquoi ? C'est une question d'ordre d'exécution, je suppose ?

Merci d'avance !

reddit.com
u/Substantial_Bag_9536 — 7 hours ago

Seeking advice for a 17" QHD "pc tablet" Build, Best 1440p panels and controller boards?

Hi everyone,

I’m starting a new project: a DIY 17-inch "pc tablet" primarily designed for coding. I want to build something portable but with enough screen real estate to avoid eye strain during long sessions.

I’ve settled on a 1440p (QHD) resolution as the "sweet spot" for this size, but I’m looking for specific hardware recommendations from anyone who has integrated large panels before.

My requirements:

  • Size: 17.3" or higest (16:10 ratio is a possibility too).
  • Resolution: 2560 x 1440 minimum.
  • Panel Type: All until TN, OLED would be very cool.
  • Connectivity: I don't know ? eDP ? LVDS ? display port ? I'm new in cyberdecking :)

Current Questions:

  1. Are there any specific laptop panel model numbers you’ve had success with?
  2. Which controller boards are the most reliable for 1440p?

Thanks for the help! I'll make sure to post my progress and 3D files once the build starts.

reddit.com
u/Substantial_Bag_9536 — 5 days ago