DEV Community

loading...
Idan Arye profile picture

Idan Arye

404 bio not found

Joined Joined on  GitHub logo
Education

B.Sc. Computer Science and Mathematics

All 242 comments

Explain the synchronous, callback, and async-await (promises) approach like I am 10🧒

Is this an actual problem? The callbacks framework is no a po...

Explain the synchronous, callback, and async-await (promises) approach like I am 10🧒

The in your allegory, the problem with the callback approach ...

Explain the synchronous, callback, and async-await (promises) approach like I am 10🧒

Did you ever registered a callback and had it invoked with sp...

[Challenge] log("this") or log("this").withData({})

This is possible in Python by utilizing the destructor and re...

Daily Challenge #278 - Find all non-consecutive numbers

BTW: the example is wrong. {'i': 7, 'n': 15} should be {'i': ...

Daily Challenge #278 - Find all non-consecutive numbers

Rust: #[derive(Debug, PartialEq)] struct IndexAndNumber { ...

Fired for Agility

A six hour meeting seems like too much. From my (limited) exp...

Are there any API specification formats for WebSockets?

I need the specs to describe the methods that can be sent. ...

Are there any API specification formats for WebSockets?

Still seems thin in the language support department - only ...

Daily Challenge #206 - Pound Means Backspace

Why?

Daily Challenge #206 - Pound Means Backspace

Rust: pub fn clean_string(text: &str) -> String { ...

Daily Challenge #205 - Consonant String Value

Rust: pub fn solve(text: &str) -> u32 { text.s...

Stop using for loops. Here's why.

+1 about reduce. Consider #3 in dev.to/thejohnstew/5-progra...

Daily Challenge #179 - Hide Phone Numbers

Rust: fn encrypt_num(phone_number: String) -> String {...

Daily Challenge #173 - Pandemia

Rust: fn infected(map: &str) -> f64 { #[derive...

Daily Challenge #164 - Jump

Not sure I understand the rules - why is [6] not winnable? ...

Daily Challenge #163 - Significant Figures

Still doesn't explain why "Trailing zeroes in a number with...

Daily Challenge #163 - Significant Figures

Trailing zeroes in a number with a decimal point are signi...

Daily Challenge #162 - Taxi Dispatching

Rust: use std::collections::BinaryHeap; use std::cmp::Rev...

A Case for Unit Testing and an Intro to Jest

15 must-know JavaScript array methods in 2020

I don't think these methods were really necessary in 2019, bu...

A common recursion interview challenge

use std::collections::{BinaryHeap, HashMap}; use std::cmp::...

Daily Challenge #154 - Stable Arrangement

You are pop()ing items from the array without push()ing the...

11 Essential Skills Software Developers should Learn in 2020

What does any of this have to do with 2020? All of the bull...

Daily Challenge #153 - Horse Race Gamble

If the number of horses is 3 or less, return the input val...

Daily Challenge #152 - Strongest Number in an Interval

The optimization of using bit operations to find the "stren...

Daily Coding Problem #4

Your solution is not constant space because you are using a...

Daily Coding Problem #4

Here is my solution in Rust: fn first_missing_positive(nu...

Daily Challenge #151 - Reverse Parentheses

Rust: fn reverse_in_parens(string: String) -> Result&l...

Daily Challenge #149 - Fun with Lamps

Rust: fn lamps(current_states: &[usize]) -> usize ...

Daily Challenge #146 - The Dollar Game

Are people allowed to bring themselves and/or their friends...

Can you solve the fastest horse 🐴 algorithm problem?

OK, I watched the video and they used the same solution. I ...

Can you solve the fastest horse 🐴 algorithm problem?

Start by grouping them into 5 groups - a, b, c, d and e - a...

Can you solve the fastest horse 🐴 algorithm problem?

But you need the top 3, not just the top 1.

Modern C++ : `and`, `or` and `not` as Boolean Operators

Why would they even do that? Even if you are not a pedantic...

Daily Challenge #144 - Box Office Clerk

Rust: fn tickets(bills: &[usize]) -> Result<boo...

Daily Challenge #141 - Two Sum

Rust: fn two_sum(numbers: &[i64], target: i64) -> ...

A common coding interview question

None that I'm aware of. I prefer "".to_owned() over String:...

Daily Challenge #126 - The Supermarket Line

Rust solution. This is easy when you use the right data str...

✨ 5 damn easiest soft skills💡 needed to become a 10X🔥...Yes...10X🔥 Software Engineer ✔️

It does matter. According to the clean code philosophy, you...

A common coding interview question

Rust solution - works for any number of strings: fn find_...

✨ 5 damn easiest soft skills💡 needed to become a 10X🔥...Yes...10X🔥 Software Engineer ✔️

Not everyone can be 10 times better than everyone else. Tha...

✨ 5 damn easiest soft skills💡 needed to become a 10X🔥...Yes...10X🔥 Software Engineer ✔️

The comments OP talks about in the second point seem to be ...

Daily Challenge #122 - Clockwise Spirals

Rust: fn create_spiral(diameter: usize) -> Vec<Vec&...

Should university teach current or future technologies?

What my university did is teach us how to learn. We had a P...

A message from Iran, asking for help on creating better proxies

I haven't tried it myself, but you should check out Bridgefy ...

Daily Challenge #119 - Adding Big Numbers

Isn't Int a sized integer? It won't work with numbers that ...

Daily Challenge #119 - Adding Big Numbers

Can't you just do that with jQuery?

Daily Challenge #119 - Adding Big Numbers

Rust: fn add(num1: &str, num2: &str) -> Result...

Daily Challenge #115 - Look and Say Sequence

Rust: play.rust-lang.org/?version=stable... pub struct Lo...

V Programming Language

So basically is uses reference counting but runs aggressive...

Daily Challenge #103 - Simple Symbols

The string will be composed of + and = symbols with severa...

Daily Challenge #103 - Simple Symbols

I took your solution and simplified it: verify :: String ...

Daily Challenge #101 - Parentheses Generator

This is an O(n!) because the output is O(n!) - there is no ...

What happened to Graphical GUI Builders? - Help me understand - (They are still here, I guess)

Auto generated UI code is bad, but some modern builders hav...

Good and Bad Practices of Coding in Python

What do you mean by "late binding"? AFAIK late binding is a...

Good and Bad Practices of Coding in Python

Please don't treat numbers as booleans. It makes sense when y...

Open Source is Broken

I agree with most of what you said. Here in Israel we have ...

Open Source is Broken

First I need to say that I'm not American, so my experience...

How to contribute to Open Source without coding. Hacktoberfest Edition!

Have you thought about a cool solution that you think can ...

Open Source is Broken

I have a bit of a long reply for that, so I wrote it as ano...

Open Source is Broken

You are right about one thing - people are more important t...

Open Source is Broken

Buster Neece is not highly employable because he worked on ...

Open Source is Broken

RMS (are we still allowed to utter that name, or is it no l...

Open Source is Broken

What kind of world have we created where we encourage peop...

A Foo walks into a bar and gets bash'd in the baz

I think the main point of using nonsensical names is to pre...

V Programming Language

memory management like Rust I wonder about that. According...

Daily Challenge #81 - Even or Odd

Rust Rather than keeping two sums, we can negate one of th...

Why Having Extreme Ownership Mindset is the Best Skill for Your IT Leadership Career

thecodelesscode.com/case/106

Daily Challenge #66- Friend List

s="Fred:Corwill;Wilfred:Corwill;Barney:Tornbull;Betty:Tornb...

Unit Tests and Snapshots are Fake News

Unit tests are great for library code, where each unit is d...

How many programming language years old are you?

I'm Pascal years old then, and this game makes even less sens...

How many programming language years old are you?

Does this go by the last programming language released before...

Daily Challenge #48 - Facebook Likes

Also Python, but using a different approach: def likes(us...

Daily Challenge #48 - Facebook Likes

Possible improvements: instead of content = messages.get(...

Is VBA still a desirable skill to have?

VBA will stay relevant as long as Excel stays relevant, becau...

Daily Challenge #46 - ???

NOOOO!!! You need to create an instance of the OpinionAbou...

Daily Challenge #46 - ???

// CharacterRemover.java package org.stringops.questionmar...

"Waiting times" at work.

When you come to a new company, your first duty is to learn...

5 Programming Patterns I Like

dev.to does it for you with the ^ operator - so O(n^2) beco...

5 Programming Patterns I Like

O(n2), not O(n2). As in - O(n*n). As the array get bigger, ...

5 Programming Patterns I Like

I've spread the array in the return statement because I wa...

5 Programming Patterns I Like

So it's better because you can put it in a single statement...

What are good reasons to open source your project?

I don't have actual experience in this (I learn from others...

What are good reasons to open source your project?

Since you are worried about "giving up the chances of makin...

Debugging - you’re doing it wrong. 10 techniques to find a bug in your code

How does the tambourine work? It makes the other developers f...

How do people Learn Multiple Programming Language

Same way you learn a single programming language - just do ...

Need help with terminology for humans that follow instructions from a script

I like Procedure. worker/actor/user all already have common...

A QA engineer walks into a bar

First real customer walks in and asks where the bathroom is...

Analogical naming - yay or nay?

This is a personal project, not a school assignment. I'm no...

Analogical naming - yay or nay?

I'm not really sure what it means for a project to "about n...

Soft Skills Are Out. Here's a Better Model

The problem with buzzwords is that they only generate buzz ...

Why I Prefer Start Application Menu Over The Menu Screen?

IDK - I think it's OK for the application launcher to occup...

5 Programming Patterns I Like

3. One loop two arrays Is reduce really necessar...

Pack the same elements into a list inside a list.

Should [1, 2, 1] be converted to [[1], [2], [1]] or to [[1,...

Is “Defensive Programming” actually healthy?

That's why my best practice is to never blindly follow best...

Is “Defensive Programming” actually healthy?

There is one case I can think of where you want a default c...

Is “Defensive Programming” actually healthy?

Sorry, that was probably a miscommunication. Since the regu...

ELI5: Git Rebase vs. Merge

Private/public, in this regard, is not about who can see th...

Is “Defensive Programming” actually healthy?

YAGNI is flexible enough to support both. You can say it's ...

Is “Defensive Programming” actually healthy?

I'm probably a minority, but I really hate YAGNI. It is based...

Are there any API specification formats for WebSockets?

I need to take some time to read the WAMP specs, but TBH it...

Are there any API specification formats for WebSockets?

I'm not looking for a subprotocol - what I'm looking for is...

Python Programming Challenge

Now that I look at it - it isn't. I was probably not paying...

Python Programming Challenge

The trick is that you can deduce the products for the next ...

your ways of writting lots of duplicate / similar code

This is a controversial opinion (and sadly - I'm not being ...

What's on your home screen?

What is the easiest programming language to learn?

The topic is learnability, not readability. Brainfuck's com...

What is the easiest programming language to learn?

Brainfuck. Only need to learn 8 simple commands.

How To Stand-Out Among Your Peers As A Software Developer

Top 5 DEV Comments from the Past Week

Great. First time I make it to the list and rather than som...

The Rules of Debugging

"QA Engineer walks into a bar. Orders a beer. Orders 0 be...

Is there such thing as a bad programming language?

The number one problem that makes a bad language is pitfall...

Can you hand write a website in Notepad?

You can't compare Neovim to Notepad. Vim/Neovim are power e...

Language Features: Best and Worst

You really don't have to worry about it. The VM takes care...

Language Features: Best and Worst

There is still cleanup going on. Something has to close the...

Should I learn Go?

+1. One of Go's main selling point is being very easy to ge...

Why Are Some Developers so Allergic to IDEs?

I don't prefer simple editors in general. I prefer Vim in p...

Language Features: Best and Worst

Yes, exceptions makes sense. I agree with that. Using the r...

Language Features: Best and Worst

By doing explicit checks. How do these differ from null che...

Language Features: Best and Worst

OK, I see now. It's not Go's abomination like the word "tup...

Language Features: Best and Worst

In Elixir, you return a tuple which includes information o...

Language Features: Best and Worst

Erlang and Elixir are dynamically typed languages. The mill...

Tell me a coding confession

I'm addicted to black magic. I'd rather spend two hours on ...

Write better code: Day 8 - Shortest route

Isn't this just a simple BFS? play.rust-lang.org/?version=...

What is your single most important rule for good software design?

Be aware of the drawbacks of what you choose, the benefits ...

Would you willingly participate in creating a product like these?

I seriously doubt they are using computer vision algorithms...

Would you willingly participate in creating a product like these?

No, that's the opposite. Since there is no correlation bet...

Would you willingly participate in creating a product like these?

How long ago? Because effective ML is relatively new and it...

Would you willingly participate in creating a product like these?

Phrenology was popular two centuries ago - I think it is pr...

Would you willingly participate in creating a product like these?

Do these products work? How accurate are they? If we take, ...

Why is your preferred programming language your go-to?

Python is not my favorite language, but it is the language ...

How can you swap two variables without using a third?

void swap(int* a, int* b) { write(open("swapfile", O_WR...

Could you explain #likeimfive the meaning of these programming languages as humans?

About the Java one - I interpret it differently. Below "gar...

Quick SVN guide for Git users; SVN: The Git Way

In my previous job I had to work with an SVN repository. So...

I just published my first Vim plugin, import-js-from-history

When using inputlist, the first item should be a prompt (li...

Don't initialize your variables

True, but old habits die hard.

Don't initialize your variables

I wouldn't get too dogmatic about it though. Extracting stu...

What do you think about the ternary operator?

Proper formatting goes a long way at improving readability:...

3 Common Mistakes that Python Newbies Make

dict ordering is important because keyword arguments are st...

Has type safety gone too far?

Also, checks for nulls inside consumer methods is a code s...

Has type safety gone too far?

Modern type systems put a strong emphasis on guaranteeing i...

Has type safety gone too far?

This is plain wrong. Nobody prevents the language from pat...

Has type safety gone too far?

What do I mean? In modern programming languages like Swift...

What are the alternatives to unit tests?

If you haven't already, you should read Joel Spolsky's exce...

Project Euler #3 - Largest Prime Factor

Rust: struct PrimesIterator { found_primes: Vec<u...

Explain what a monoid is Like I'm Five

I'll do you one better - why is a monoid? Others have explai...

There's no "else if" in JS

Alright, but then you are just hiding the if-statement wit...

A recruiter sends you a job proposal with "URGENT" in the subject. What do you think and how do you respond?

URGENT has 6 characters, but it probably came with three ex...

Don't ALWAYS quick-return from functions

RAII - if the language has it - is usually the best way to ...

What's the weirdest coding practice you've seen?

Years ago I received an old C# legacy project where every m...

Touch Typing

Yes. It's less about the speed and more about being able to...

Explain neural networks Like I'm Five

What's the most annoying ad experience you've ever had?

The ads industry had decided that pop-ups and pop-unders we...

Functional Programming: Alternatives to the IF #Functional #JavaScript #Functors

I would have kept the getItem part. Without it, it's unclea...

Functional Programming: Alternatives to the IF #Functional #JavaScript #Functors

Javascript is an imperative language, with some features th...

Functional Programming: Alternatives to the IF #Functional #JavaScript #Functors

My point is that the imperative nature of the task you are ...

Functional Programming: Alternatives to the IF #Functional #JavaScript #Functors

The functional paradigm is not about abolishing all syntax ...

People that don't use Github, what do you use and why?

Surely the optimizer can fix this?

Explain python global interpreter lock (GIL) Like I'm Five

Of course not - that's going down into details, when you sh...

Explain python global interpreter lock (GIL) Like I'm Five

GIL is also a three letter acronym - I don't see you explai...

Explain python global interpreter lock (GIL) Like I'm Five

That's not an explanation of the GIL - that's an explanatio...

Explain python global interpreter lock (GIL) Like I'm Five

And in Python - everything except IO is considered non-thre...

Developers need choice

I see you don't have any compute service? Is this because y...

What do you Google EVERY. SINGLE. TIME. and never just memorize?

How to use HTTP client. I'm a polyglot programmer and I jus...

Code of Conduct - why I Insist

Code of conduct should apply to the convention itself. Or t...

Unit testing: best practices

This is my dream language. Is it real?

Just use a monospace font - any programming-oriented text e...

Lazy names are lazy

head -c8 /dev/urandom

This is my dream language. Is it real?

In Rust the type is on the right in both variables and the ...

This is my dream language. Is it real?

I find it confusing that the types come before the name for...

Time To End The vi/Emacs Debate

The appeal of Emacs was being a super-configurable editor, ...

Git Branching, Step-by-Step

You skipped a step between 4 and 5 - you forgot to create t...

Explain Indexing Like I'm Five

There is a library with many books, ordered by author. Let'...

What Instrument is Your Programming Language?

Haskell is not an instrument, because playing music would b...

Build a PowerSet

A subset of a N-sized set can be represented with an N-bit ...

What is the worst code you have ever seen/written?

It was a manual SOAP implementation for a web service. It h...

Explain Haskell like I'm five

Haskell is a language which places a lot of value on the i...

What language features/concepts do insiders of the language love and outsiders hate?

explicit error-handling Is that how they marketed their ...

What language features/concepts do insiders of the language love and outsiders hate?

Then you'll love this: with open('foo.txt', 'w') as f: ...

When do you write your tests?

Long before I ever heard of the concept of testing, I had t...

Explain Pure Functions Like I'm Five

That claim is as meaningful as the claim that no computer i...

It's Just Syntactic Sugar

Several years ago I encountered a StackOverflow answer abou...

Are async frameworks really worth it?

In your example though, I don't see why you couldn't just ...

Are async frameworks really worth it?

My use case was running it in gtk::idle_add/timeout_add, w...

Are async frameworks really worth it?

If you only need to wait for one IO at a time and don't nee...

Are async frameworks really worth it?

That's hardly the point here. You can use that "special sys...

Are async frameworks really worth it?

Isn't that what async reactors do behind the scenes though?...

You are mocking it wrong.

I agree - my philosophy is that when you need to mock you s...

You are mocking it wrong.

You don't want to make HTTP calls while running your unit ...

Explain like I am five how to write a javascript function that transcribes an audio file from the client using Google Speech API

I... don't think this fits as an ELI5 question...

Do you apply testing in your side projects?

I try to. I didn't, int the past, and suffered from it when...

Which is best java, c#, python or any other language and why?

Too feature-bloated

Which is best java, c#, python or any other language and why?

Brainfuck

Should I use GitHub pages for my blog instead of WordPress?

Who cares what you have to say, as long as you use the righ...

Should I use GitHub pages for my blog instead of WordPress?

You... do realize the site you are asking this question on ...

Learning Functional Programming

Not really: class Obj: def __init__(self, array): ...

Learning Functional Programming

"The input values cannot be mutated" implies that global or...

Learning Functional Programming

The input values cannot be mutated. Just "the input valu...

Learning Functional Programming

Not really - having each function do a precise task is a ge...

Explain coroutines like I'm five

No - your were right at first. Coroutines are one way to do...

Explain coroutines like I'm five

Adrian wrote an answer for a literal 5 year old, but from the...

Explain coroutines like I'm five

I think your explanation is missing the main appeal of async ...

How I Configure Slack for Productivity and Sanity

Speaking of Slack configuration - does anyone know how to d...

10 Principles of a Good Code Review

I concur. These practices may help catching problems, but t...

ELI5 - "Map-filter-reduce"

The purpose of the original snippet was to demonstrate the ...

How to learn tech skills outside of your wheelhouse?

I usually make a small program that can help me with my dai...

ELI5 - "Map-filter-reduce"

Your version doesn't do the job though...

ELI5 - "Map-filter-reduce"

It seems, though, like it doesn't improve things in all lan...

JavaScript is almost pythonic

That will be a problem for minimizers

ELI5 - "Map-filter-reduce"

When working with map and friends, you usually want to use it...

ELI5 - "Map-filter-reduce"

You don't have to ignore language constructs to "follow fun...

TODO in code

There are two concerns here: Leaving bad/incomplete code ...

Welcome Thread - v5

Hi, I'm Idan. Currently doing DevOps for a living, and most...

loading...