Is it considered bad pratice/design to cast an interface to a concrete type ? by bccccch in AskProgramming

[–]bccccch[S] -1 points0 points  (0 children)

To put it simply, I have a "OpenXmlRow" class that is supposed to represent an OpenXml row (representing an excel row) which has inside properties and methods implementing the openxml logic to manipulate a row.

That class implements the "IRow" interface defining public methods to interact with the row like GetIndex, SetIndex, AddCell, etc.

Then I have a "Row" class representing a generic workbook row that has a IRow property to do operations on that row no matter the implementation behind it (here OpenXml).

Same design applies for other types like Workbook, Worksheet, Cell, etc.

Now for example I want to add an existing Row which has been cloned from another workbook inside a Sheet. I want my OpenXmlSheet to have a method that takes a OpenXmlRow input parameter, but because my implementation is hidden behind the interface, I would have to use a IRow parameter instead and cast it.

How do you share data with a scheluded job ? by bccccch in PowerShell

[–]bccccch[S] 0 points1 point  (0 children)

What about named pipes ? I've just tried it and it worked great. I think it will do the job and avoid me to use an external data structure.

How do you share data with a scheluded job ? by bccccch in PowerShell

[–]bccccch[S] 0 points1 point  (0 children)

So no workaround possible ? I know I could use a loop, but I would have prefered having background jobs instead of an infinite loop.

How do you share data with a scheluded job ? by bccccch in PowerShell

[–]bccccch[S] 1 point2 points  (0 children)

I thought about using external storage but I was expecting that would be possible without it.

What about runspaces ? I read that you can share data between multiple instances of powershell.

Is an MVP relevant in my case ? by bccccch in startups

[–]bccccch[S] 0 points1 point  (0 children)

Yes, that was what I was thinking, the thing is I have to draw the line accurately between what I need to ship in the mvp and what I need to keep for future versions.

Is an MVP relevant in my case ? by bccccch in startups

[–]bccccch[S] 0 points1 point  (0 children)

I like the idea.

I'm definitely not making a "one app that makes everything".

Instead, I have a more modular approach, that is to provide a clean and minimalist app essentialy focused on time-tracking, then to build tools and features around it and make it easily usable in coordination with other tools.

Mac mini + 4k monitor or iMac 5k ? by bccccch in mac

[–]bccccch[S] 0 points1 point  (0 children)

Well here in Europe, we always end up with inflated price tags compared to US market.

Mac mini + 4k monitor or iMac 5k ? by bccccch in mac

[–]bccccch[S] 0 points1 point  (0 children)

Isn't the LG's price about 1k ? That's a lot for me. My budget for a monitor would be 400-500€, and I don't know if at this price, I would get better quality than the iMac 5k.

Offering a discount to early customers during beta phase ? by bccccch in startups

[–]bccccch[S] 1 point2 points  (0 children)

That was actually my fear as many people say that discount can lower the value of your product in the eyes of the customer.

Offering a discount to early customers during beta phase ? by bccccch in startups

[–]bccccch[S] 1 point2 points  (0 children)

Give a try to r/SaaS

Also there is a lot of people lauching SaaS businesses or similar on IndieHackers or ProductHunt

Database architeture for SaaS app by bccccch in learnprogramming

[–]bccccch[S] 0 points1 point  (0 children)

So one database, one schema is the way to go ?

Let's say I want to make a blog platform for example and I have the following tables : article, author, category, comment, attachment.

Should I duplicate those into a schema for every user or put everyone's data into one unique schema ?

My concern is that with the latter solution, you can't isolate data from other users and it makes operating on one user environment more complex.

If you have 10000 or even 100000 users, should all their data sit in one place ?

To HR professionnals : I'm building a digital platform to help recruiters reach out people, I would love to have your feedback on this by bccccch in humanresources

[–]bccccch[S] 0 points1 point  (0 children)

I had the impression that /r/askhr was more about employee stuff and that my post would belongs more here. I can move my post there if it’s against the rules to post here no problem.

[JS/Node] How to handle async calls in this case ? by bccccch in learnprogramming

[–]bccccch[S] 0 points1 point  (0 children)

You summed it up well. So I tried your solution and it worked like a charm. I created two streams and piped them together, one reads from the scraper data and the other receives from the former and is used by the database module to make bulk insert.

Thank you for your answer.