by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Mikael Brevik
@mikaelbr
Yeah. Pretty mich consulting and open source stuff for me. Same old :p
Arve Knudsen
@aknuds1

I might have to get back on to the consulting train, in order to actually make some money :P

Gonna consider Kickstarter regarding my friend’s website - something which is completely new to me, but at least his products are in popular demand

Mikael Brevik
@mikaelbr
If there is a market kickstarter could be a good place I think. But more fail than succeed
Arve Knudsen
@aknuds1
Yeah, I realize more fail than succeed. At least he’s got lots of requests for the instruments, without attempting to sell any :)
Mikael Brevik
@mikaelbr
Worth a try
Theres aslo frunder.no if kickstarter fails
Arve Knudsen
@aknuds1
Does frunder have an international audience?
Mikael Brevik
@mikaelbr
No, that was in case it was a norwegian thing
More like getting friends to invest and such.
Not as big scale as kickstarter
Arve Knudsen
@aknuds1
I don’t think it makes sense to limit ourselves to the old country in this case
Do you have experience with funding O/S projects, e.g. through Patreon?
Wondering if I could get people to fund MuzHack itself eventually
Mikael Brevik
@mikaelbr
No. Never tried getting oss funded
Arve Knudsen
@aknuds1
@mikaelbr Have any experience with combining Omniscient and Facebook like button?
Mikael Brevik
@mikaelbr
No, sorry. Never tried. But isnt that just an iframe or something?
Arve Knudsen
@aknuds1
It is an iframe yes
Not sure how to draw the like button when switching to a new page
The way their SDK works is that the button gets drawn automatically by including their JS SDK
But that only works on page load
Mikael Brevik
@mikaelbr
Ah. Sounds like there should be some sort of API for re-render or such
Arve Knudsen
@aknuds1
Nice, that does seem to work
Mikael Brevik
@mikaelbr
Good! :+1:
Andreas Gräf
@AndreasPrometheus
This message was deleted
nomad5000
@nomad5000
Hi Mikael,
I have a question regarding the concept
of having only one state element
I'll explain it from the start
I want to write a simple website that connects to github api to manage issue CRUD
There will be 3 screens
  1. List of repositories (as links)
  1. List of issues in a selected repo
  1. Issue content once navigated through the hirarchy
my question is as follows
If I only have one giant state object
that saves all things
how would I go about when for example I selected a Repo and want to display the issue list view
would I check in the render method if issue list is populated then do not render repo list but instead render issue list
Is there a pattern one could use that makes this a little clearer and simpler
Mikael Brevik
@mikaelbr
hi, @nomad5000! Given that I understand your problem correctly, first of all. This data can be lazy
So you can start by having just repo, and when you press one you fetch ajax content and set a list of issues to that repository.
And when you press that issue, either if you have the content of that issue from before (through your first AJAX request) you can mark it as “selected” (change the state of that issue in the global state to have a flag saying “selected”) and then in the render function of where you want to show the content, you go through the list and show the one issue that has the selected flag
or you can copy the structure to a selected property on the top of your global state if you want that
If the issue content data is lazy the latter example is also what you’d do. Similarly to how I explained the repo -> issue fetching process
nomad5000
@nomad5000
@mikaelbr Thank you. I looked at the TodoList example and I think it explains a lot. Also I watched the video on the omnicient site. It helped me understand the concept, and the advantage of a tree like state. I was having trouble with the idea to save display logic in a state object (show: RepoList, IssueList, SelectedIssue). Now I understand the concept better. I was just worried that an increasing number of diferent screens makes the state object so complex that it gets hard to handle
Peter Boyer
@pboyer
Hey, I might have missed this, but has anyone put any thought into a statically typed version of this API?
Mikael Brevik
@mikaelbr
@pboyer I started rewriting in TS and testet out flow last year, but didn't finish it. So as far as I know, nothing exists.
I know of someone using TS with Omniscient, but I don't know if any type definitions are online/public
Punita Ojha
@punitaojha
This message was deleted