home.social

Search

1000 results for “array”

  1. Array.map() IGNORES Empty Slots?!

    🤯 STOP! This will DESTROY your understanding of arrays! Empty slots vs undefined - they're NOT the same! .map() completely skips holes but processes undefined. This bug crashed a production app with 1M users!

    #javascript #javascripttricks #codingchallenge #javascriptarray #arrayholes #javascriptquiz #javascriptweird #javascriptwtf #arraymap #javascriptbugs #codinginterview #javascriptshorts

    youtube.com/watch?v=cwm9fdAlAB4

  2. Array.map() IGNORES Empty Slots?!

    🤯 STOP! This will DESTROY your understanding of arrays! Empty slots vs undefined - they're NOT the same! .map() completely skips holes but processes undefined. This bug crashed a production app with 1M users!

    #javascript #javascripttricks #codingchallenge #javascriptarray #arrayholes #javascriptquiz #javascriptweird #javascriptwtf #arraymap #javascriptbugs #codinginterview #javascriptshorts

    youtube.com/watch?v=cwm9fdAlAB4

  3. Array.map() IGNORES Empty Slots?!

    🤯 STOP! This will DESTROY your understanding of arrays! Empty slots vs undefined - they're NOT the same! .map() completely skips holes but processes undefined. This bug crashed a production app with 1M users!

    #javascript #javascripttricks #codingchallenge #javascriptarray #arrayholes #javascriptquiz #javascriptweird #javascriptwtf #arraymap #javascriptbugs #codinginterview #javascriptshorts

    youtube.com/watch?v=cwm9fdAlAB4

  4. TypeScript Strictness Is Non-Monotonic: Strict-Null-Checks and No-Implicit-Any Interact, by @huonw.bsky.social:

    huonw.github.io/blog/2025/12/t

    #typescript #arrays

  5. #array : the whole body of persons thus placed in order

    - French: variété

    - German: die Anordnung, der Bereich

    - Italian: varietà

    - Portuguese: arranjo

    - Spanish: variedad

    ------------

    Word of The Hour's Annual Survey @ wordofthehour.org/r/form

  6. CW: Advent of Code 2025, day 8 in K

    init:1+!n:#:d:`I$","\'0:"08.in"
    ds:1_'ds@<ds:{(+/t*t:d[x]-d[y]),x,y}.'p@&</'p:+!n,n
    conn:{(x*~f)+x[y[0]]*f:x=x[y[1]]}
    steps:1000#
    :one:*/t 3#>t:.#'=init conn/steps ds
    :two:*/*+d {:[&/g=*g:conn[x;*y];*y;o[g;1_y]]}[init;ds]

    Part 2 takes a metric eternity to converge. There must be a better solution, but this will have to do for now.

    #AdventOfCode #AoC2025 #APLJK #ArrayProgramming

  7. CW: Advent of Code 2025, day 6 in K

    d:0:"06.in"
    op:(+/;*/)@"*"=op@&~" "=op:*|d
    :one:+/op@'+.'1_|d
    :two:+/op@'n 1_'.=+\~n:0,.'+|1_|d

    The fact that the input file was nearly valid K was helpful.

    #AdventOfCode #APLJK #AoC2025 #ArrayProgramming

  8. The screens are arranged in a 2 ྾ 2 #array in #KDE and so I can move the #mouse #pointer logically around in the configuration shown. I just need a justification for four screens now. I’m sure I’ll contrive something.

  9. Как устроены массивы в PHP и как код влияет на скорость работы с ними

    Массивы — это хлеб и масло PHP-разработчика. Мы используем их постоянно, но редко задумываемся, как они устроены внутри. А от этого устройства напрямую зависит скорость и память нашего приложения. Давайте разберемся. Давайте развеем 3 мифа: 1. Доступ к элементам массива всегда занимает одинаковое время. 2. В PHP обычный и ассоциативный массивы – одно и то же. 3. Использовать ссылку в foreach быстрее, чем просто итерироваться по элементам. Представим ситуацию. Вы создали массив и одним и тем же оператором « $array[] = $value;» добавляете в него элементы. Ключи получаются последовательными: 0, 1, 2, 3, ... 9999. Последний ключ в массиве – 10000. Вы добавляете новый элемент с ключом 100000000. Вопрос: будет ли скорость добавления этого последнего элемента такой же, как у всех предыдущих? Согласитесь, большинство даже не задумается об этом. И кажется, что не должно оно отличаться. Но раз такой вопрос написан, может все-таки отличается? Откуда и какие появляются отличия разберем дальше. (Спойлер: у меня время добавления увеличилось в 2872 раза). Массив — один из самых часто используемых типов в PHP. Понимание его внутренностей помогает:

    habr.com/ru/articles/947162/

    #array #массив

  10. Array support in Quiche is progressing nicely. I've added support functions Low High, Sizeof and Length, and now code to adjust for non-zero lower bounds when dereferencing an element.

    Currently only for static array variables - pointer based derefencing will be the next step.

    Images show the source and assembly code. I've hand added comments to the assembly. Plenty of room for optimisation here.

    #quiche #quichelang #compiler #z80 #pascal

  11. 🗣️ Announcing Python-Blosc2 3.8.0 🚀

    A step closer to compliance with the array-api standard: data-apis.org/array-api!
    This is an effort across all array-based libraries so that your code works (e.g. for both blosc2 and NumPy) by simply changing the import statement below!

    Highlights:
    ✅ C-Blosc2 updated to latest 2.21.2
    ✅ Incorporate isnan, isfinite, isinf
    ✅ Better indexing coverage
    ✅ linspace and arange functions more numerically stable
    ✅ Improved array-api compliance

    #arrayapi #Blosc2

  12. Deep Copy vs Reference Copy of Arrays in C# Tip #46 - Understanding array copying: reference types share the same memory (like a shared toy box), while deep copies create separate data. Use Clone(), Array.Copy(), or ToArray() for deep copies.
    #ArrayCopy #DeepCopy #ReferenceTypes #CSharp #ProgrammingBasic #LearnCoding

  13. Default Values of Arrays and Referencing Arrays in C# Tip #45 - This explanation covers default values in arrays. For integers, default is 0; for strings, it's null. It also demonstrates how arrays are reference types—assigning one array to another copies the reference, not the data. Modifying one affects the other. #Arrays #DefaultValues #NullCoalescing #CSharpBasics #ProgrammingConcepts #ReferenceTypes #CodingTips #DotNet #LearnToCode

  14. Ersatz für das Gate-Array in der 1541

    Es gibt nur wenige Komponenten im Commodore 1541-Laufwerk, die gerne sterben. Das Gate Array, UC1 oder MOS 325572-01 ist eines davon. Und Ersatz ist nicht billig. Aber man kann sich auch einfach selber eines bauen.

    #1541 #32557201 #Array #commodore #CSG #EasyGate1541 #FPGA #Gate #MOS #PCB #PLA #Replacement #Schematic #VC1541 #VHDL #XC95144XL #XC9572XL

    dirkwouters.de/easygate1541/

  15. std::array в С++ быстрее массива в С. Иногда

    Давайте натрём наши болиды до блеска и посмотрим, как они входят в повороты компиляторных оптимизаций на примере использования std::array . Смогут ли они не только не уступить, но и обогнать встроенный массив? Поехали!

    habr.com/ru/companies/pvs-stud

    #c++ #c++11 #c++17 #c++14 #c++20 #c++_библиотеки #c++0x #c++23 #массив #array

  16. ArrayListValuedHashMap - a strange dependency in the code - asked ChatGPT why I should use it. 🤔 I love pairing with this “Guy” (GLaDOS personality) 🤖 #codinglife #devhumor #Java #GLaDOS #ProgrammingPain #chatGPT

  17. Array функции Clickhouse

    Когда вы анализируете данные, базовых функций SQL часто недостаточно, особенно когда дело касается сложных запросов и обработки больших объемов информации. В таких случаях на помощь приходят функции для работы с массивами в ClickHouse. Однако, многие пользователи не знают о их существовании или не используют их в полной мере. Эта статья — небольшой гид по функциям работы с массивами в ClickHouse. Мы рассмотрим самые полезные и мощные инструменты, такие как arrayJoin , arrayMap , arrayFilter , и другие. Разберём, как их использовать для решения повседневных задач аналитики данных, на конкретных примерах. Почему это важно? Потому что умение грамотно работать с массивами позволяет сократить и упростить код, делая его более читаемым и поддерживаемым. Это ключевой навык для тех, кто хочет писать оптимальные запросы. Вам могут пригодиться array функции, когда стандартные SQL-запросы становятся сложными и трудными для понимания. Например, вместо использования множества подзапросов и объединений для отслеживания последовательности действий пользователя, вы можете использовать функции работы с массивами. Кроме того, использование функций позволяет фильтровать элементы внутри массива, избавляя от необходимости написания сложных условий в подзапросах. Функции работы с массивами в ClickHouse помогут сократить количество кода и упростить запросы, заменяя многократные подзапросы на более элегантные и читабельные решения.

    habr.com/ru/articles/836140/

    #clickhouse #sql #array #массивы #sql_tips_and_tricks

  18. @arraybolt3

    It was still crazy yummy, if a bit overheated (it had partially thawed on the counter).

    Now I need to buy like a dozen of them. Addictive as all get-out.

    At least I'm a teensy bit closer of my dream of someday going to eat at an Asian convenience store.
    Those places are amazing. Makes our terrifying shriveled pizza slices and geriatric corn dogs at 7-11 here look... inedible, which is basically what they are. ;)

  19. @arraybolt3

    Neat! Was it hard to get set up with ? The documentation seemed a touch confusing.

    I'm pretty happy with for now, but I'm considering giving a try for secondary emails I need to check occasionally.

  20. @arraybolt3 I would use #Haiku more often *very* gladly, but unfortunately I haven't been able to get it running on my main laptop, a System76 with ...an Nvidia GPU. I got Haiku running on an old #Dell #D630 I have, though, which I use for school and notetaking very happily.