Oren Eini

aka Ayende Rahien

Oren Eini

CEO of RavenDB

a NoSQL Open Source Document Database

Get in touch with me:

oren@ravendb.net +972 52-548-6969

Posts: 7,590
|
Comments: 51,223

Copyright ©️ Ayende Rahien 2004 — 2025

Privacy Policy · Terms
filter by tags archive
stack view grid view
  • architecture (614) rss
  • bugs (451) rss
  • challanges (123) rss
  • community (381) rss
  • databases (481) rss
  • design (896) rss
  • development (642) rss
  • hibernating-practices (71) rss
  • miscellaneous (592) rss
  • performance (397) rss
  • programming (1086) rss
  • raven (1455) rss
  • ravendb.net (539) rss
  • reviews (184) rss
  • 2025
    • July (5)
    • June (7)
    • May (10)
    • April (10)
    • March (10)
    • February (7)
    • January (12)
  • 2024
    • December (3)
    • November (2)
    • October (1)
    • September (3)
    • August (5)
    • July (10)
    • June (4)
    • May (6)
    • April (2)
    • March (8)
    • February (2)
    • January (14)
  • 2023
    • December (4)
    • October (4)
    • September (6)
    • August (12)
    • July (5)
    • June (15)
    • May (3)
    • April (11)
    • March (5)
    • February (5)
    • January (8)
  • 2022
    • December (5)
    • November (7)
    • October (7)
    • September (9)
    • August (10)
    • July (15)
    • June (12)
    • May (9)
    • April (14)
    • March (15)
    • February (13)
    • January (16)
  • 2021
    • December (23)
    • November (20)
    • October (16)
    • September (6)
    • August (16)
    • July (11)
    • June (16)
    • May (4)
    • April (10)
    • March (11)
    • February (15)
    • January (14)
  • 2020
    • December (10)
    • November (13)
    • October (15)
    • September (6)
    • August (9)
    • July (9)
    • June (17)
    • May (15)
    • April (14)
    • March (21)
    • February (16)
    • January (13)
  • 2019
    • December (17)
    • November (14)
    • October (16)
    • September (10)
    • August (8)
    • July (16)
    • June (11)
    • May (13)
    • April (18)
    • March (12)
    • February (19)
    • January (23)
  • 2018
    • December (15)
    • November (14)
    • October (19)
    • September (18)
    • August (23)
    • July (20)
    • June (20)
    • May (23)
    • April (15)
    • March (23)
    • February (19)
    • January (23)
  • 2017
    • December (21)
    • November (24)
    • October (22)
    • September (21)
    • August (23)
    • July (21)
    • June (24)
    • May (21)
    • April (21)
    • March (23)
    • February (20)
    • January (23)
  • 2016
    • December (17)
    • November (18)
    • October (22)
    • September (18)
    • August (23)
    • July (22)
    • June (17)
    • May (24)
    • April (16)
    • March (16)
    • February (21)
    • January (21)
  • 2015
    • December (5)
    • November (10)
    • October (9)
    • September (17)
    • August (20)
    • July (17)
    • June (4)
    • May (12)
    • April (9)
    • March (8)
    • February (25)
    • January (17)
  • 2014
    • December (22)
    • November (19)
    • October (21)
    • September (37)
    • August (24)
    • July (23)
    • June (13)
    • May (19)
    • April (24)
    • March (23)
    • February (21)
    • January (24)
  • 2013
    • December (23)
    • November (29)
    • October (27)
    • September (26)
    • August (24)
    • July (24)
    • June (23)
    • May (25)
    • April (26)
    • March (24)
    • February (24)
    • January (21)
  • 2012
    • December (19)
    • November (22)
    • October (27)
    • September (24)
    • August (30)
    • July (23)
    • June (25)
    • May (23)
    • April (25)
    • March (25)
    • February (28)
    • January (24)
  • 2011
    • December (17)
    • November (14)
    • October (24)
    • September (28)
    • August (27)
    • July (30)
    • June (19)
    • May (16)
    • April (30)
    • March (23)
    • February (11)
    • January (26)
  • 2010
    • December (29)
    • November (28)
    • October (35)
    • September (33)
    • August (44)
    • July (17)
    • June (20)
    • May (53)
    • April (29)
    • March (35)
    • February (33)
    • January (36)
  • 2009
    • December (37)
    • November (35)
    • October (53)
    • September (60)
    • August (66)
    • July (29)
    • June (24)
    • May (52)
    • April (63)
    • March (35)
    • February (53)
    • January (50)
  • 2008
    • December (58)
    • November (65)
    • October (46)
    • September (48)
    • August (96)
    • July (87)
    • June (45)
    • May (51)
    • April (52)
    • March (70)
    • February (43)
    • January (49)
  • 2007
    • December (100)
    • November (52)
    • October (109)
    • September (68)
    • August (80)
    • July (56)
    • June (150)
    • May (115)
    • April (73)
    • March (124)
    • February (102)
    • January (68)
  • 2006
    • December (95)
    • November (53)
    • October (120)
    • September (57)
    • August (88)
    • July (54)
    • June (103)
    • May (89)
    • April (84)
    • March (143)
    • February (78)
    • January (64)
  • 2005
    • December (70)
    • November (97)
    • October (91)
    • September (61)
    • August (74)
    • July (92)
    • June (100)
    • May (53)
    • April (42)
    • March (41)
    • February (84)
    • January (31)
  • 2004
    • December (49)
    • November (26)
    • October (26)
    • September (6)
    • April (10)
RavenDB Workshops - Deep dive into practical use of Document Data Modeling
  previous post next post  
Jul 06 2008

Things you should never do

time to read 1 min | 29 words

That should be pretty high in the list, I think:

image

image

Tweet Share Share 14 comments
Tags:
  • Bugs

Related posts that you may find interesting:

It is an issue of traffic ReSharper 3.0 Beta NHibernate Mapping – Inheritance
  previous post next post  

Comments

James Curran
06 Jul 2008
02:02 AM
James Curran

Wow.... There's a whole bunch of things not to do there.

There's the obvious infinite loop to launching programs.

Then there's hard-coding a complex relative path,

and hard-coding a reference to a (debug) developement folder.

Sung
06 Jul 2008
02:24 AM
Sung

I didn't notice right away why you should "never" do such a thing until i read James' comment.

Would you please be more specific in your post?

Please "Don't Make Me Think" (borrowed from a book-title) ;)

By the way, I can only "assume" that one should not write such code because it will create an infinite loop. But are there any reason that you think why nobody should write such a code?

Ayende Rahien
06 Jul 2008
03:13 AM
Ayende Rahien

Actually, the recursive was what I referred

The hard coding is fine, those are test programs.

Ayende Rahien
06 Jul 2008
03:55 AM
Ayende Rahien

Sung,

I am posting posts that should make you think.

At the very least, they should spark some conversation.

The main issue is that this will create more and more processes.

The problem with that is that there is no easy way to stop them. At worst, this can make the OS unresponsive and require a forced shutdown to fix

[ICR]
06 Jul 2008
11:56 AM
[ICR]

That's assuming of course that duplication is allowed. It could be modified to only allow once instance of each to be running.

Florin
06 Jul 2008
12:47 PM
Florin

Did you try to run at least one of them?...

Thomas Eyde
06 Jul 2008
17:07 PM
Thomas Eyde

Isn't a Server starting its Client something like a tail wagging the dog?

Ayende Rahien
06 Jul 2008
20:57 PM
Ayende Rahien

Again, this is test code

Martin Murphy
07 Jul 2008
04:40 AM
Martin Murphy

You can set multiple startup projects in VS if this is how you are testing

Ayende Rahien
07 Jul 2008
04:44 AM
Ayende Rahien

Martin,

I didn't know that, how?

Shane Bush
07 Jul 2008
07:11 AM
Shane Bush

Multiple Startup projects:

http://msdn.microsoft.com/en-us/library/ms165413.aspx

Ayende Rahien
07 Jul 2008
07:26 AM
Ayende Rahien

thanks

James Curran
07 Jul 2008
14:24 PM
James Curran

@[ICR]

Running the same app multiple times isn't all of the problem. Even if each app merely started-up, launched the other program, and died, you'd still have a tremendous strain on the system, even though at any given time, only one instance of each program is in memory. (And stopping the cycle would probably require rebooting).

Will Shaver
07 Jul 2008
16:08 PM
Will Shaver

Thanks for the good laugh this morning.

Comment preview

Comments have been closed on this topic.

Markdown formatting

ESC to close

Markdown turns plain text formatting into fancy HTML formatting.

Phrase Emphasis

*italic*   **bold**
_italic_   __bold__

Links

Inline:

An [example](http://url.com/ "Title")

Reference-style labels (titles are optional):

An [example][id]. Then, anywhere
else in the doc, define the link:
  [id]: http://example.com/  "Title"

Images

Inline (titles are optional):

![alt text](/path/img.jpg "Title")

Reference-style:

![alt text][id]
[id]: /url/to/img.jpg "Title"

Headers

Setext-style:

Header 1
========
Header 2
--------

atx-style (closing #'s are optional):

# Header 1 #
## Header 2 ##
###### Header 6

Lists

Ordered, without paragraphs:

1.  Foo
2.  Bar

Unordered, with paragraphs:

*   A list item.
    With multiple paragraphs.
*   Bar

You can nest them:

*   Abacus
    * answer
*   Bubbles
    1.  bunk
    2.  bupkis
        * BELITTLER
    3. burper
*   Cunning

Blockquotes

> Email-style angle brackets
> are used for blockquotes.
> > And, they can be nested.
> #### Headers in blockquotes
> 
> * You can quote a list.
> * Etc.

Horizontal Rules

Three or more dashes or asterisks:

---
* * *
- - - - 

Manual Line Breaks

End a line with two or more spaces:

Roses are red,   
Violets are blue.

Fenced Code Blocks

Code blocks delimited by 3 or more backticks or tildas:

```
This is a preformatted
code block
```

Header IDs

Set the id of headings with {#<id>} at end of heading line:

## My Heading {#myheading}

Tables

Fruit    |Color
---------|----------
Apples   |Red
Pears	 |Green
Bananas  |Yellow

Definition Lists

Term 1
: Definition 1
Term 2
: Definition 2

Footnotes

Body text with a footnote [^1]
[^1]: Footnote text here

Abbreviations

MDD <- will have title
*[MDD]: MarkdownDeep

 

FUTURE POSTS

No future posts left, oh my!

RECENT SERIES

  1. RavenDB 7.1 (7):
    11 Jul 2025 - The Gen AI release
  2. Production postmorterm (2):
    11 Jun 2025 - The rookie server's untimely promotion
  3. Webinar (7):
    05 Jun 2025 - Think inside the database
  4. Recording (16):
    29 May 2025 - RavenDB's Upcoming Optimizations Deep Dive
  5. RavenDB News (2):
    02 May 2025 - May 2025
View all series

RECENT COMMENTS

  • Marco, Yes, that is something that we have support for. We'll do the big reveal in about 3 - 4 weeks. :-)
    By Oren Eini on RavenDB and Gen AI Security
  • In short, you have a project that could be public or private. The comments added to the project should be vectorised, but whe...
    By Marco on RavenDB and Gen AI Security
  • Marco, In short, yes. You can limit the scope of what the AI will see during RAG for the set that the user has access to. ...
    By Oren Eini on RavenDB and Gen AI Security
  • Is it also possible to let ravendb AI only use a (dynamic) subset of the crawled data to answer questions? For example when r...
    By Marco on RavenDB and Gen AI Security
  • great article
    By Ruben on Senior developers reframe a complex problem, juniors run into it heads-on

Syndication

Main feed ... ...
Comments feed   ... ...
}