loading...
Zohar Peled profile picture

Zohar Peled

By day, try to work. By night, try to sleep.

Work

.Net Developer

Last 250 Comments

re: Do you prefer Light mode or Dark mode?
Dark mode everywhere, no doubt.
re: Let's stop fooling ourselves. What we call CI/CD is actually only CI.
No worries, actually most of them was O.k... just a couple th...
re: My favorite feature in Rust
I know nothing about Rust, but I have been working with .Net ...
re: Pay cut to work remotely - Fair deal?‍
Working from home is not the same as working remotely. Also, ...
re: Let's stop fooling ourselves. What we call CI/CD is actually only CI.
Most of my past bosses be like "What the f**k is this CI/CD y...
re: Is Stack Overflow profile relevant in resume?
Personally, I think you shouldn't include links to SO or Dev ...
re: default vs null - which is a better choice, and why?
Thanks for your comment. I feel the same. Leaving unitialized...
re: String important points
At first I thought to myself - Well, maybe Java's compiler is...
re: How many email addresses do you use?
It's all good, I was just being nitpicky because, you know - ...
re: How many email addresses do you use?
I have two active mailboxes. One personal, and one profession...
re: How many email addresses do you use?
Nitpicking - gmail was established less than 20 years ago. Re...
re: Have you ever been on-call? What was it like?
We have a rotation, but only for devs that wants it. We get ...
re: Avoiding Nulls with Extension Methods
Of course, your trivial extension method can be simplified to...
re: Too Old To Be In Tech?
Slightly younger than you here, still considered "old" in thi...
re: How to Send a Complex Type List of Objects to SQL Server
I'm glad I could help. About AddWithValue - yes, you can use...
re: How to Send a Complex Type List of Objects to SQL Server
Good article! A couple of important notes, though: When usi...
re: An Opinion: ORMS
I didn't read all the way through before posting this comment...
re: 15 Things I Wished I Learned Earlier as a Software Developer
I might add: Get a mentor. Learn to become a mentor. Be a men...
re: What to ask on a interview?
"My brain seems to be incapable of forming questions." This...
re: 🍿What was the most remarkable 🦗 bug you have ever had to fix 👩‍🔧?
I can't really remember the bug itself, but: One of my first ...
re: What would you do if you had a Time Machine?
I'll let your great great great great great grandchild know h...
re: Fizz? Buzz? FizzBuzzz!
Javascript is a weakly typed language, so '' || i is basical...
re: Fizz? Buzz? FizzBuzzz!
prints each number from 1 to 100 - then why your loop starts ...
re: Best password authentication strategy?
I have seen this code project article also posted on cracksta...
re: What irritates you the most as a developer? 👩‍💻👨‍💻
I used to get pissed off when people asked me to fix their co...
re: What's the most fun trip you ever went on? 😎
IMHO, Every trip is fun. Every trip in it's own beautiful w...
re: Best password authentication strategy?
Best option: Login using google/facebook. Second best: Hash ...
re: Convince me to use SQL
OP wrote "I care most about data integrity, monitoring and ma...
re: Convince me to use SQL
NoSql databases have their place, but it's not a replacement ...
re: SQL Injection!!!
Why is SQL injection st...
re: Technical Writing Tips for Non-Native English Speakers
As a non-native English speaker, that posts regularly in Engl...
re: Why do ppl often add extremely short posts to their reading list?
The first two reasons that popped to my head - Perhaps they: ...
re: Daily Challenge #270 - Fix String Case
Is it really a challenge? string solve(string input) { ...
re: A Walk Down Memory Lane - How Technology Has Changed (and stayed the same) over the last 23 years.
I remember being in high-school, my friend and me "took on th...
re: writing code: Native language or English only?
Don't get me wrong, I love Hebrew, and I'm not saying English...
re: writing code: Native language or English only?
I've seen it a million times on Stackoverflow - where someone...
re: Yo, Yo, Check Null
Just one note: You want the actual name of the parameter to s...
re: Celebrating DEV Pride & Alan Turing!
Alan Turing was probably one of the most important people to ...
re: Where in the world do you DEV?
If you liked this photo, you'll probably love the view from t...
re: How difficult do you find SQL?
It's absolutely not Just you. Personally, I really like SQL ...
re: Using NULL Conditional and Coalescing Operators in C#
related: The perfect n...
re: IF a develop team's people number is only 2,is it necessary to do unit test before publish?
Is it necessary? No. Writing tests isn't necessary. In fact...
re: How much coffee do you drink?
Somewhere between 4 to 10, depends on the day and the night b...
re: How would you hire developers?
About the technical abilities: ...
re: What else would I change in a C# rewrite?
Nice series! looking forward for part 3 :-)
re: Filter Your Grids: How to Dynamically Build LINQ Expressions
Note that even though query syntax and method syntax are sema...
re: Good Morning, Next time, I won't get 1,111 reactions and 5000 views in stats.
Lucky us! I currently have exactly 68686 rep. points in Stac...
re: What are the initial things to do if you have an idea for a startup?
Make sure your idea isn't already implemented by someone. I ...
re: Do we need Regex?
IMHO, regular expressions are a very powerful tool that shoul...
re: local constants vs comments
Good reasoning!
re: I Just Joined the DEV Team!
Congrats! Funny, I've looked in your profile and saw this - ...
re: local constants vs comments
Well, this is just a silly example, real code would have thin...
re: local constants vs comments
I'l all for all cups for constants, however standards where I...
re: Learn SQL Injection by hacking a bank app
This isn't about SQL injection if it doesn't have a link to l...
re: What is Dapper, and why you should consider it for your .NET projects
I totally agree. Dapper is my number one choice every time. ...
re: Tips and tricks for SQL Server database (table) design?
Ssms visual editors might seem like the easy choise to work w...
re: How to automate nuget updates?
Thanks, I'll give it a shot when I'll find the time...
re: How to automate nuget updates?
Thanks - this helps with several things - updating a specific...
re: Why null in C# is so bad
True, if you're selecting a list of object, an empty list (or...
re: Why null in C# is so bad
I would never suggest throwing an exception if something wasn...
re: Why null in C# is so bad
I've been programming for two decades now and have been worki...
re: Name the song you love the most 😁
There are way too many favourites to choose just one - but Sy...
re: Introduction to C#7 tuples in readyness for C#8
"But be aware that the order of your tuple fields is import...
re: Deserializing a json string, a horror debugging session
What I don't understand in this whole scenario is why would...
re: If you were a recruiter, what would be your recruiting criteria?
3 I will try to fit the hiring criteria to the position req...
re: What type of coffee you like?☕☕☕
You'll probably find it in the desert section of any good I...
re: What type of coffee you like?☕☕☕
I usually just drink instant coffee with some milk and suga...
re: CS Trivia#7: Why is SQL shouting at me?
IMHO, even with syntax highlighting, the separation of uppe...
re: C# 8.0 Indices and ranges
I'm expecting a multitude of IndexOutOfRangeException. with...
re: At what age and in what language did you write your first line of code?
Basic, around 7-8 years old.
re: C# switch - Which variation do you prefer?
Yes, that will force you to write all the cases into the di...
re: C# switch - Which variation do you prefer?
Michael B mentioned a dictionary option (though I don't kno...
re: Formatting and dealing with dates in SQL
Related: Why are da...
re: Nevertheless, she coded
Stevie Ray Vaughan once said I may be white, but I ain't st...
re: What are you "old enough to remember" in software development?
I wrote some Basic as a kid (I think I was about 8-10 years...
re: Blogs are harmful and we are learning wrongly!
Blogs are not tutorials, and reading blog posts is not the ...
re: T-SQL CRUD procedures auto-generator
In my workplace we don't use sophisticated ORMs. The ORM of...
re: Awesome .NET bloggers i enjoy reading as a developer
And a couple more to add to the list: ericlippert.com/ - E...
re: Your favourite non-technical books?
Speaking of the Holocaust, there is a lot of great literatu...
re: C# 8.0: Understanding Using Declarations
Personally, I'm ambivalent about this feature. On one hand,...
re: MySQL VS MongoDB
You're comparing apples and oranges here - Relational datab...
re: You don't need to work long hours to succeed as a developer
Related: Eric Lippert's Fabulous adventures in coding artic...
re: Application Configuration - thinking of configuration as data
I'm just ranting, I like the json configuration better than...
re: Application Configuration - thinking of configuration as data
In the dot net framework world I used to use App.Settings -...
re: Your favourite non-technical books?
Thanks, I'll try to get them.
re: Is Primary Key necessary in a table (DBMS)
An index doesn't have to be tied to a primary key, however ...
re: Is Primary Key necessary in a table (DBMS)
There's no correct definitive yes and no answer to this que...
re: Read-once variable - R1V, ROV, ... - in C#
If you are already using this nuget, then yes. Otherwise, a...
re: Read-once variable - R1V, ROV, ... - in C#
Here's the source...
re: Read-once variable - R1V, ROV, ... - in C#
With only a bit of twitches you can get a much more flexibl...
re: When is it appropriate to use expression bodied methods?
Thanks! though I believe that c#7 doesn't support switch ex...
re: The subtle art of refactoring #1
Don't use obj != null - this approach might yield unexpecte...
re: Your favourite non-technical books?
Short and sweet: God Bless You, Dr. Kevorkian by Kurt Von...
re: Advanced String Templates in C#
Actually, interpolated strings was introduced in c# 6, not ...
re: Do You Volunteer?
Does answering questions on StackOverflow count? How about ...
re: Why all our objects be a little more private
Private setters are good, but they are still only a partial...
re: How to Generate Unique ID in JavaScript
In fact, random numbers probability of uniqueness is actual...
re: How to Generate Unique ID in JavaScript
A random number is not the same as a unique number. There is ...
re: 5 THINGS I LEARNED ABOUT OPEN SOURCE DEVELOPERS
Well, yes and no. True, the rules are more rigid and there'...
re: 5 THINGS I LEARNED ABOUT OPEN SOURCE DEVELOPERS
Thanks, but we're not really that smart... I mean, plenty o...
re: For the 1024 time – DateTime has no format!
I have no idea. The last time I've written anything in Java...
re: What was your biggest win this year?
Professionally? Well, there are a few, actually: Finally ...
re: Why you need to learn to write a sorting algorithm
I think that's kinda the point of this post - you probably ...
re: The truth about using Stack Overflow || Copy & Paste Developers
Good code doesn't rot. I have personally written applicatio...
re: What Could Pawsibly go Wrong
I'll tell you when you'll give me my first paycheck. Smart...
re: Is it important to have hobbies outside of coding?
Only if you don't want to go insane... :-)
re: Daily Challenge #135 - The Wide Mouthed Frog!
Most seem legit to me... Maybe a typo here and there...
re: Daily Challenge #135 - The Wide Mouthed Frog!
Am I missing something here or is this really not a challen...
re: I am fed up with answering the same questions in interviews! - Are you too?
I've already blogged about how I think tech challenges in i...
re: Should a button communicate the current state, the intended behavior, or both?
You are confusing two closely related UX elements - A butto...
re: To memorize or not to memorize?
I never attempt to memorize anything anymore. What I work w...
re: Warnings are not Pieces of Flair
I totally agree. Nothing is better then to finish a project...
re: NExpect, Level 3: You're the secret sauce!
This looks great! BTW, you could set your posts as a series...
re: What conventional wisdom in software is wrong?
That an academic degree in computer science is needed for s...
re: Enumerable types and interfaces, which type do you prefer to return?
Does IEnumerable really indicates anything that ICollection...
re: Understanding delegates in C# - did I get it right?
Both Method1() and GiveAction() are instance method (as app...
re: What is a SQL query you are proud of?
Personally, I find complex solutions not so attractive. I p...
re: Validate mail address format the easy way
Good to know!
re: Nov. 24, 2019: What did you learn this week?
This week I've started to learn how to use DocFX to generat...
re: C# Dictionary: Add or [key]=value?
More accurately: [key]=value is still an "add or update", b...
re: Lazy props for the lazy!
The null-coalescing assignment operator really does seem li...
re: The perfect non-null test
the fact that a type is non-nullable doesn't prevent you fr...
re: Finding a better way to conduct technical interviews
Related: What if yo...
re: Non-native English speakers of dev.to how do you keep your English skills sharp!
I read and write a lot in English - I'm an active member he...
re: Is there an online documentation generator for c#?
Thank you! I've been looking into DocFx and it seems like t...
re: Is there an online documentation generator for c#?
Thanks, I'll check it out
re: how to fix Index was outside the bounds of the array error?
Never attempt to catch an IndexOutOfRangeException when usi...
re: how to fix Index was outside the bounds of the array error?
this line states[i] = 0; doesn't make sense inside this con...
re: how to fix Index was outside the bounds of the array error?
I don't get this code. You're setting the array cell to 0 i...
re: Any active contributors on Stackoverflow?
Yeah, I agree - but taking an active part of a community sh...
re: The perfect non-null test
object is the ultimate base type for all .Net types. struct...
re: Any active contributors on Stackoverflow?
As an active SO member, I think this change is going to ma...
re: What did you have the hardest time learning?
Multithreading. I mean, I got the concept pretty fast, but ...
re: 2 unit tests. 0 integration tests.
Users. If we could only do without them, what a wonderful w...
re: Daily Challenge #108 - Find the Counterfeit Coin
This is a very old question. I remember being asked this qu...
re: Daily Challenge #110 - Love VS. Friendship
c#, one liner using linq, ignoring non-letters chars: int...
re: Daily Challenge #105 - High-Sum Matrix Drop
Hey guys, Someone got mixed up a bit here. That was the 90#...
re: Best 404 Page Found Till Now! What do you say?
I don't know about the Best ever, but it's a good one. My p...
re: Rubber duck debugging doesn't need to involve a duck!
public appreciation is also very important. Though my Jr. d...
re: My Most Embarrassing Mistakes as a Programmer
"I am a work in progress." That's true for everyone. Rememb...
re: What's your spookiest coding story?
Lucky for me, that era is long behind me. Working with .Net...
re: What's your spookiest coding story?
I spent a couple of years maintaining a VB6 application.
re: Rubber duck debugging doesn't need to involve a duck!
That really depends on the problem, but yes - for anything ...
re: Terrible interview question: Swap variables without a temporary
Great post! just came up my feed. I've also written somethi...
re: My home office is coming along nicely
Here are some guiding questions for you, hopefully they wil...
re: What's a great show or movie you watched recently?
IMHO, Their best song is this:
re: What's a great show or movie you watched recently?
Currently watching Raising Dion on Netflix. Can't remember ...
re: Understanding Time complexity - Big O Notation
Well, since you have to iterate through the array, the time...
re: Abbreviations in code: yay or nay?
Well, as it turns out, acronyms are a specific type of abbr...
re: Understanding Time complexity - Big O Notation
One iteration is not O(1), it's O(n)...
re: Abbreviations in code: yay or nay?
Your examples are acronyms, not abbreviations. Of course no...
re: There's a new DEV theme in town for all you 10x hackers out there (plus one actually useful new feature)
Personally, I like the night theme better, but the monospac...
re: What's your take on the Hiring Process in the Tech Industry?
I've recently blogged about why I think the interview codin...
re: Challenging technical challenges
related: What if you...
re: C#: the “empty string” dilemma
Careful! String is not the same as string! Check out string...
re: My advice to junior developers
Don’t work for horrible bosses is probably the best advice ...
re: What cool ideas have you seen for integrating new team members?
Having a 1:1 Coffee break seems like a good idea, but an en...
re: Differences between Dev and Stackoverflow.
IDK, you seemed to have taken this too seriously in your fi...
re: Differences between Dev and Stackoverflow.
I think you might have missed the point that it's suppose t...
re: 7 Great Programming Quotes
Great quotes, but I didn't find one that makes me laugh... ...
re: Daily Challenge #96 - Easter Egg Crush Test
I was once asked a similar question in an interview. I didn...
re: DEV, meet Site Reliability Engineering
Congrats Molly!
re: Don't Do My Mistake!
Don't use shift-delete on a windows system. Ever. Don't e...
re: Daily Challenge #93 - Range Extraction
Well, I did find that SO post - had to change the solution ...
re: Daily Challenge #93 - Range Extraction
Gaps and islands. I've done something similar in sql once, ...
re: What's an interesting question you've been asked at an interview?
My answer to that would be: 3.14
re: Swapping two numbers, w/o a temp variable
Yeah, it is fun.
re: Swapping two numbers, w/o a temp variable
Totally agree. Interview tricks should never find their way...
re: Daily Challenge #87 - Pony Express
c#: int Riders(int[] stations) { var totalSum = stati...
re: Daily Challenge #85 - Unwanted Dollars
c#: double money_value(string input) { return double....
re: What is code?
I would define code as the implementation of a single or a ...
re: What are your impressions of your self-taught co-workers?
Do you think the fact you where home schooled helped develo...
re: As a self-taught, have you considered getting a degree afterwards?
Over my 20 years career as a software developer, which star...
re: What's your least favorite question to be asked at work?
When a person ask such a question once a week, or even once...
re: How Clean is your Desktop?
Within one hour since you finally go and delete the content...
re: How Clean is your Desktop?
"Mine" is also there...
re: How Clean is your Desktop?
Not so clean, I guess... This wall paper is a photo of a de...
re: Is JavaScript the most confusing programming language?
You think javascript is confusing? Try Ook! Granted, it's a...
re: Feedback on this new DEV feature?
What if I want to see the results and only then cast my vot...
re: Feedback on this new DEV feature?
You can do what Stackoverflow does: They have a grace perio...
re: What's your least favorite question to be asked at work?
Any "How do I..." question when the answer is either RTFM o...
re: Use the right tool to get identity values back after an insert
Identity is not a column type but a property you can set on...
re: Daily Challenge #81 - Even or Odd
c#, using linq, input validations omitted: string evenOrO...
re: Do you know why in JavaScript is "11" + 1 = 111, but "11" - 1 = 10?
Last time I've used Javascript was about 7 or 8 years ago - B...
re: Writing a game in a console application - Part 0
Will check it out as soon as I can, thanks!
re: Writing a game in a console application - Part 0
You might want to check out my ExtendedConsole github proje...
re: What I Look for During an Interview
Hi. Interesting stuff. I was wondering what's your take, a...
re: Why do you contribute to opensource?
Pretty much the reasons you've listed.
re: Choosing a Database Manager. SQL or Nah?
Actually, when working with Alter table (and not using the ...
re: Choosing a Database Manager. SQL or Nah?
That depends on what you mean exactly by changing schema...
re: Choosing a Database Manager. SQL or Nah?
Adding a new column to an existing table doesn't force migr...
re: I've been a developer for 20 years and just started writing a blog, Ask Me Anything!
I don't believe in regrets. First, because you can't really...
re: I've been a developer for 20 years and just started writing a blog, Ask Me Anything!
Don't get into this line of work unless you're willing and ...
re: I've been a developer for 20 years and just started writing a blog, Ask Me Anything!
I think it does, but that's really just an opinion. No one ...
re: I've been a developer for 20 years and just started writing a blog, Ask Me Anything!
That's going to be a post that will take a long time to wri...
re: I've been a developer for 20 years and just started writing a blog, Ask Me Anything!
I would say that some things are better handled in code, bu...
re: I've been a developer for 20 years and just started writing a blog, Ask Me Anything!
Blogging about core concepts seems to me too much like writ...
re: I've been a developer for 20 years and just started writing a blog, Ask Me Anything!
Actually, I learn what I have to because my job requires it...
re: I've been a developer for 20 years and just started writing a blog, Ask Me Anything!
We use it mostly to store raw data we get from our supplier...
re: I've been a developer for 20 years and just started writing a blog, Ask Me Anything!
I was probably unaware of Mongo when it first came out. I'v...
re: I've been a developer for 20 years and just started writing a blog, Ask Me Anything!
Mostly using forums in Hebrew (which is my native language)...
re: I've been a developer for 20 years and just started writing a blog, Ask Me Anything!
I've already wrote a few posts, none of them is purely tech...
re: Should tech recruiters know how to read a URL?
A recruiter that doesn't know what tech stack to look for ...
re: Should tech recruiters know how to read a URL?
You are correct about one thing: People in the modern world...
re: Insights from 1 Month of Writing Every Day
Interesting article! I feel the same way about writing - if...
re: What if your interview coding challenge would look like this?
Thanks for your input!
re: What if your interview coding challenge would look like this?
Having the dev team in the interview is a great idea, and I...
re: Any problem using any language?
Stackoverflow has it's rules, Dev has other rules...
re: Any problem using any language?
If your target audience can read it and you can write it, I...
re: How to stop naming Java classes with the "Manager" suffix
I totally agree. But if it would only stop at "manager" or (a...
re: C# Async Await, Simply
Nice one, and perhaps it's just me, but I find your lack of...
re: How to generate random IDs that are not individually unique, but unique across 2 fields (columns) in a MySQL database table?
Then why not simply use an integer?
re: How to generate random IDs that are not individually unique, but unique across 2 fields (columns) in a MySQL database table?
Yes, I'm guessing it's probably possible - as far as I know...
re: What's your best software pun?
punch cards. No, not really, I'm not that old. My persona...
re: What is the most annoying thing your colleagues say all the time?
Exactly! I couldn't have said it better myself. And frankly...
re: Keeping Up With The Codeashians
Related: Do you ever...
re: How to generate random IDs that are not individually unique, but unique across 2 fields (columns) in a MySQL database table?
One easy way to do it is to generate the entire range of po...
re: What is the most annoying thing your colleagues say all the time?
I totally accept that there might be reasons I'm unaware of...
re: I have an idea for a new box game. What do you think about it?
Thanks for your input! I'm currently looking to loan a rumm...
re: Do you ever feel like you're stuck with the wrong technology?
I was working with Winforms for way too long. Left the worl...
re: Daily Challenge #75 - Set Alarm
I'm sorry, but it seems like you've lost the challenge some...
re: How do you count your lines of code?
Question is, why would you even bother to count them in the...
re: Worst thing I ever named anything
ContentProcessor. MessageReceiver. MessageSender. DataProce...
re: Poll: Do you read the question or answers first on Stackoverflow?
As an active member on Stackoverflow, I find most questions...
re: What is the most annoying thing your colleagues say all the time?
Unfortunately, I'm not even there anymore. I'm where you ge...
re: What is the most annoying thing your colleagues say all the time?
"Write it like I told you to." When later down the line, d...
re: The null-coalescing operator in C# 8.0
Nitpicking: The null coalescing operator (??) was around in...
re: OneOf<Us> Discriminated Unions in C#
Can types specified in the OneOf be non related? Because if...
re: What's my age again?
I'm 43 and still relevant (well, at least still getting paid ...
re: Two quick tips for writing legible code
You might also want to read Stop Writing Code Comments. I c...
re: Two quick tips for writing legible code
Well, in that case, I would rather call the class itself "O...
re: Two quick tips for writing legible code
IMHO, the method names in the last code example are way too...
re: What is your favorite SQL viewer/tool
I work with Microsoft SQL Server, so the natural selection ...
re: Most Common Blogging Mistakes of Beginner Bloggers
Thanks for your post! Actually, I've just started my own bl...
re: I'm a Code Thief(and Why You Should Be One Too)
You can't steal from me! All the code I've ever posted onli...
loading...