reddit_programming | Technologies

Telegram-канал reddit_programming - Reddit Programming

212

I will send you newest post from subreddit /r/programming

Subscribe to a channel

Reddit Programming

Can you apply Binary Search on an UNSORTED Array? Lets see this on LeetCode 162 (Find Peak Element)
https://www.reddit.com/r/programming/comments/1h8p7u4/can_you_apply_binary_search_on_an_unsorted_array/

submitted by /u/xAconitex (https://www.reddit.com/user/xAconitex)
[link] (https://youtube.com/watch?v=m4QAns43QSg) [comments] (https://www.reddit.com/r/programming/comments/1h8p7u4/can_you_apply_binary_search_on_an_unsorted_array/)

Читать полностью…

Reddit Programming

Not all binary state is boolean
https://www.reddit.com/r/programming/comments/1h8ozx5/not_all_binary_state_is_boolean/

submitted by /u/FoxInTheRedBox (https://www.reddit.com/user/FoxInTheRedBox)
[link] (https://www.jotaen.net/HI4Ck/not-all-binary-state-is-boolean/) [comments] (https://www.reddit.com/r/programming/comments/1h8ozx5/not_all_binary_state_is_boolean/)

Читать полностью…

Reddit Programming

Coding Adventure: Rendering Fluids
https://www.reddit.com/r/programming/comments/1h8n84g/coding_adventure_rendering_fluids/

submitted by /u/Chii (https://www.reddit.com/user/Chii)
[link] (https://www.youtube.com/watch?v=kOkfC5fLfgE) [comments] (https://www.reddit.com/r/programming/comments/1h8n84g/coding_adventure_rendering_fluids/)

Читать полностью…

Reddit Programming

Google NotebookLM: Boosting Productivity
https://www.reddit.com/r/programming/comments/1h8kggh/google_notebooklm_boosting_productivity/

submitted by /u/rasvi786 (https://www.reddit.com/user/rasvi786)
[link] (rasvihostings/google-notebooklm-boosting-productivity-a68557521a20" rel="nofollow">https://medium.com/@rasvihostings/google-notebooklm-boosting-productivity-a68557521a20) [comments] (https://www.reddit.com/r/programming/comments/1h8kggh/google_notebooklm_boosting_productivity/)

Читать полностью…

Reddit Programming

Typeconf: Manage Your Configs Like Code
https://www.reddit.com/r/programming/comments/1h8cjms/typeconf_manage_your_configs_like_code/

submitted by /u/heraldev (https://www.reddit.com/user/heraldev)
[link] (https://github.com/typeconf/typeconf) [comments] (https://www.reddit.com/r/programming/comments/1h8cjms/typeconf_manage_your_configs_like_code/)

Читать полностью…

Reddit Programming

Start With the Go Standard Library
https://www.reddit.com/r/programming/comments/1h8cff6/start_with_the_go_standard_library/

submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://matthewsanabria.dev/posts/start-with-the-go-standard-library/) [comments] (https://www.reddit.com/r/programming/comments/1h8cff6/start_with_the_go_standard_library/)

Читать полностью…

Reddit Programming

Lies I was told about collab editing, Part 1: Algorithms for offline editing
https://www.reddit.com/r/programming/comments/1h8cbj9/lies_i_was_told_about_collab_editing_part_1/

submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://www.moment.dev/blog/lies-i-was-told-pt-1) [comments] (https://www.reddit.com/r/programming/comments/1h8cbj9/lies_i_was_told_about_collab_editing_part_1/)

Читать полностью…

Reddit Programming

My snake game got to 57 bytes by just messing around and basically refactoring most of the code
https://www.reddit.com/r/programming/comments/1h89eyl/my_snake_game_got_to_57_bytes_by_just_messing/

<!-- SC_OFF -->This byte reduction was different than the others. Usually, I have an idea in mind of how to reduce a byte and I try to manipulate the code to make it work. This time I was bored so I looked at the code again just because I wanted to remove the usage of the BP register because I thought "it had potential", you can see the PR where I managed to do so without increasing the byte count here (https://github.com/donno2048/snake/pull/68), then after quite some time I realized a way to abuse this in such a way that would use another register (DX) to store some values without adding any bytes and thought it has some potential too because the DX initialization takes 3 bytes and could maybe be reduced somehow... I merged the PR as it made the game a little slower even though it didn't save any bytes because I couldn't think of a way to optimize the initialization of DX, but then I realized that the initialization of DX isn't the problem, it's the solution to another problem. The way I initialized AX up until now was with a MOV which is quite a waste to just set AX to 0, but I had to use a MOV for the LDS initialization, because the first byte of the MOV was 0xB8, but if I initialized DX there I would solve the problem and I would be able to set AX in less than 3 bytes. The problem is that MOV DX, won't have 0xB8 at the beginning so I have to use MOV AX,, but no problem, I can initialize AX to the value I want in DX and do a XCHG, but then I'm left with just one byte to set AX to 0 which is impossible (and that was the reason I didn't commit that into the original PR). But, then I realized, we can set DX to 0 with just 1 byte so that after the XCHG AX will already contain 0. I planted a CWD right between the MOV and the XCHG so that DX will be set to the MSB of the wanted value in DX which is positive so the MSB is 0. I reverted the changes made from the first PR and merged the new one (https://github.com/donno2048/snake/pull/69). BTW, this time I couldn't just use the 0x0 dummy byte as that would set DX wrongly, so I had to use LDS DI, [BX+SI+0x0] which apparently can't be parsed correctly by nasm even with -O0 because it always drops the 0x0, so I had to hardcode it. <!-- SC_ON --> submitted by /u/Perfect-Highlight964 (https://www.reddit.com/user/Perfect-Highlight964)
[link] (https://github.com/donno2048/snake) [comments] (https://www.reddit.com/r/programming/comments/1h89eyl/my_snake_game_got_to_57_bytes_by_just_messing/)

Читать полностью…

Reddit Programming

Why Leetcode is so popular
https://www.reddit.com/r/programming/comments/1h87eyz/why_leetcode_is_so_popular/

submitted by /u/ryanlpeterman (https://www.reddit.com/user/ryanlpeterman)
[link] (https://www.developing.dev/p/why-leetcode-is-so-popular) [comments] (https://www.reddit.com/r/programming/comments/1h87eyz/why_leetcode_is_so_popular/)

Читать полностью…

Reddit Programming

Understanding LLM's Prompt Engineering James Bond Style
https://www.reddit.com/r/programming/comments/1h83hst/understanding_llms_prompt_engineering_james_bond/

submitted by /u/Only_Piccolo5736 (https://www.reddit.com/user/Only_Piccolo5736)
[link] (https://pieces.app/blog/llm-prompt-engineering?utm_source=reddit&amp;utm_medium=referral&amp;utm_campaign=r13) [comments] (https://www.reddit.com/r/programming/comments/1h83hst/understanding_llms_prompt_engineering_james_bond/)

Читать полностью…

Reddit Programming

Designing a startup infra team
https://www.reddit.com/r/programming/comments/1h82jvs/designing_a_startup_infra_team/

submitted by /u/fosterfriendship (https://www.reddit.com/user/fosterfriendship)
[link] (https://gregmfoster.substack.com/p/designing-a-startup-infra-team) [comments] (https://www.reddit.com/r/programming/comments/1h82jvs/designing_a_startup_infra_team/)

Читать полностью…

Reddit Programming

Interview with Microchess creator Peter Jennings
https://www.reddit.com/r/programming/comments/1h80vz6/interview_with_microchess_creator_peter_jennings/

submitted by /u/NoSoftware3721 (https://www.reddit.com/user/NoSoftware3721)
[link] (https://spillhistorie.no/interview-with-microchess-creator-peter-jennings/) [comments] (https://www.reddit.com/r/programming/comments/1h80vz6/interview_with_microchess_creator_peter_jennings/)

Читать полностью…

Reddit Programming

A Map of Software Engineering Pay in US
https://www.reddit.com/r/programming/comments/1h7tt35/a_map_of_software_engineering_pay_in_us/

submitted by /u/fagnerbrack (https://www.reddit.com/user/fagnerbrack)
[link] (https://www.levels.fyi/heatmap) [comments] (https://www.reddit.com/r/programming/comments/1h7tt35/a_map_of_software_engineering_pay_in_us/)

Читать полностью…

Reddit Programming

ML Trading Bot that uses Ranked Ensemble Learning
https://www.reddit.com/r/programming/comments/1h7s4gp/ml_trading_bot_that_uses_ranked_ensemble_learning/

submitted by /u/Inevitable-Air-1712 (https://www.reddit.com/user/Inevitable-Air-1712)
[link] (https://github.com/yeonholee50/AmpyFin) [comments] (https://www.reddit.com/r/programming/comments/1h7s4gp/ml_trading_bot_that_uses_ranked_ensemble_learning/)

Читать полностью…

Reddit Programming

Strong Components and Weak Components: 2024 Annual Christmas Lecture, Don Knuth
https://www.reddit.com/r/programming/comments/1h7prkn/strong_components_and_weak_components_2024_annual/

submitted by /u/mttd (https://www.reddit.com/user/mttd)
[link] (https://www.youtube.com/watch?v=au26uZfuxVY) [comments] (https://www.reddit.com/r/programming/comments/1h7prkn/strong_components_and_weak_components_2024_annual/)

Читать полностью…

Reddit Programming

When you select a programming language for your new project, also consider the energy efficiency of the language. There are very big differences, as a scientific study has shown ...
https://www.reddit.com/r/programming/comments/1h8p5r0/when_you_select_a_programming_language_for_your/

submitted by /u/HaraldNieswandt (https://www.reddit.com/user/HaraldNieswandt)
[link] (https://greenlab.di.uminho.pt/wp-content/uploads/2017/09/paperSLE.pdf) [comments] (https://www.reddit.com/r/programming/comments/1h8p5r0/when_you_select_a_programming_language_for_your/)

Читать полностью…

Reddit Programming

Understanding the CSS z-index Property: A Beginner’s Guide
https://www.reddit.com/r/programming/comments/1h8nbp7/understanding_the_css_zindex_property_a_beginners/

submitted by /u/Latter-Dust8587 (https://www.reddit.com/user/Latter-Dust8587)
[link] (https://makemychance.com/z-index-property/) [comments] (https://www.reddit.com/r/programming/comments/1h8nbp7/understanding_the_css_zindex_property_a_beginners/)

Читать полностью…

Reddit Programming

Bookmarklet Distribution Service (Free Host)
https://www.reddit.com/r/programming/comments/1h8la5t/bookmarklet_distribution_service_free_host/

submitted by /u/Ohsusannamarie (https://www.reddit.com/user/Ohsusannamarie)
[link] (https://codepen.io/) [comments] (https://www.reddit.com/r/programming/comments/1h8la5t/bookmarklet_distribution_service_free_host/)

Читать полностью…

Reddit Programming

Historically, 4NF explanations are needlessly confusing
https://www.reddit.com/r/programming/comments/1h8epvp/historically_4nf_explanations_are_needlessly/

submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://minimalmodeling.substack.com/p/historically-4nf-explanations-are) [comments] (https://www.reddit.com/r/programming/comments/1h8epvp/historically_4nf_explanations_are_needlessly/)

Читать полностью…

Reddit Programming

[WIP] Type-C Programming Language
https://www.reddit.com/r/programming/comments/1h8cj4m/wip_typec_programming_language/

submitted by /u/praisethemoon_ (https://www.reddit.com/user/praisethemoon_)
[link] (https://typec.praisethemoon.org/blog/type-c-announcement) [comments] (https://www.reddit.com/r/programming/comments/1h8cj4m/wip_typec_programming_language/)

Читать полностью…

Reddit Programming

Does Your Code Pass the Turkey Test?
https://www.reddit.com/r/programming/comments/1h8ccad/does_your_code_pass_the_turkey_test/

submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (http://www.moserware.com/2008/02/does-your-code-pass-turkey-test.html) [comments] (https://www.reddit.com/r/programming/comments/1h8ccad/does_your_code_pass_the_turkey_test/)

Читать полностью…

Reddit Programming

: The Dialog Element
https://www.reddit.com/r/programming/comments/1h8cbbz/dialog_the_dialog_element/

submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog) [comments] (https://www.reddit.com/r/programming/comments/1h8cbbz/dialog_the_dialog_element/)

Читать полностью…

Reddit Programming

The square roots of all evil (in programming)
https://www.reddit.com/r/programming/comments/1h87ue9/the_square_roots_of_all_evil_in_programming/

submitted by /u/neilmadden (https://www.reddit.com/user/neilmadden)
[link] (https://neilmadden.blog/2024/12/03/the-square-roots-of-all-evil/) [comments] (https://www.reddit.com/r/programming/comments/1h87ue9/the_square_roots_of_all_evil_in_programming/)

Читать полностью…

Reddit Programming

🎙️ Call for Presentations – React Summit, June 13 & 17, 2025
https://www.reddit.com/r/programming/comments/1h84fgo/call_for_presentations_react_summit_june_13_17/

submitted by /u/GitNation (https://www.reddit.com/user/GitNation)
[link] (https://forms.gle/w7CuGXgDoyAc77Cz8) [comments] (https://www.reddit.com/r/programming/comments/1h84fgo/call_for_presentations_react_summit_june_13_17/)

Читать полностью…

Reddit Programming

i need help for a little project for esp8266
https://www.reddit.com/r/programming/comments/1h82xhr/i_need_help_for_a_little_project_for_esp8266/

submitted by /u/Carlojtv000 (https://www.reddit.com/user/Carlojtv000)
[link] (https://www.reddit.com/r/arduino/comments/1h81pqa/ho_bisogno_di_aiuto_per_un_progetto_per_esp8266/) [comments] (https://www.reddit.com/r/programming/comments/1h82xhr/i_need_help_for_a_little_project_for_esp8266/)

Читать полностью…

Reddit Programming

NANOWAR OF STEEL - HelloWorld.java (Source Code Video)
https://www.reddit.com/r/programming/comments/1h82i06/nanowar_of_steel_helloworldjava_source_code_video/

submitted by /u/turniphat (https://www.reddit.com/user/turniphat)
[link] (https://www.youtube.com/watch?v=yup8gIXxWDU) [comments] (https://www.reddit.com/r/programming/comments/1h82i06/nanowar_of_steel_helloworldjava_source_code_video/)

Читать полностью…

Reddit Programming

The 70% problem: Hard truths about AI-assisted coding
https://www.reddit.com/r/programming/comments/1h7xwvm/the_70_problem_hard_truths_about_aiassisted_coding/

submitted by /u/_srbhr_ (https://www.reddit.com/user/_srbhr_)
[link] (https://addyo.substack.com/p/the-70-problem-hard-truths-about) [comments] (https://www.reddit.com/r/programming/comments/1h7xwvm/the_70_problem_hard_truths_about_aiassisted_coding/)

Читать полностью…

Reddit Programming

React v19 – React
https://www.reddit.com/r/programming/comments/1h7tgk0/react_v19_react/

submitted by /u/Abhi_mech007 (https://www.reddit.com/user/Abhi_mech007)
[link] (https://react.dev/blog/2024/12/05/react-19) [comments] (https://www.reddit.com/r/programming/comments/1h7tgk0/react_v19_react/)

Читать полностью…

Reddit Programming

How to Generate Insights from PDF Files with Apryse and GPT
https://www.reddit.com/r/programming/comments/1h7pz8m/how_to_generate_insights_from_pdf_files_with/

submitted by /u/TheLostWanderer47 (https://www.reddit.com/user/TheLostWanderer47)
[link] (https://javascript.plainenglish.io/how-to-generate-insights-from-pdf-files-with-apryse-and-gpt-ecd698da3dbd) [comments] (https://www.reddit.com/r/programming/comments/1h7pz8m/how_to_generate_insights_from_pdf_files_with/)

Читать полностью…

Reddit Programming

Why Open Source UI Design Sucks
https://www.reddit.com/r/programming/comments/1h7muqe/why_open_source_ui_design_sucks/

submitted by /u/bizzehdee (https://www.reddit.com/user/bizzehdee)
[link] (https://www.darrenhorrocks.co.uk/why-open-source-ui-design-sucks/) [comments] (https://www.reddit.com/r/programming/comments/1h7muqe/why_open_source_ui_design_sucks/)

Читать полностью…
Subscribe to a channel