Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
karthikksv
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
karthikksv
6y ago
Orum | Full-stack developer | Remote (US only) | Full-time | https://orumhq.com/ Orum connects sales teams to their target prospects efficiently, helping them sell to their ideal customers. Using Orum's parallel dialer
2.
▲
by
karthikksv
6y ago
Orum | Full-stack developer | Remote (US only) | Full-time | https://orumhq.com/ Orum connects sales teams to their target prospects efficiently, helping them sell to their ideal customers. Using Orum's parallel dialer
3.
▲
by
karthikksv
6y ago
I had this same inspiration from Chris McCord's talk about LiveView ~1.5 years back, and created Purview: https://github.com/karthikv/purview - we've been using it in production at the company I work at for o
4.
▲
by
karthikksv
8y ago
Dialbot | Full-stack developer | Remote (US only) | Full-time | https://dialbot.co/ We’re a small, fully remote and self-funded company that helps sales teams connect with prospects faster over the phone. Our customers use
5.
▲
by
karthikksv
8y ago
Thanks for chiming in Chris! If you don't mind, I have a few implementation questions about LiveView: - I noticed that you said you use morphdom for LiveView. I originally started with this too, but found that the DOM diffing doesn
6.
▲
by
karthikksv
8y ago
All the business logic of the components (i.e. event handlers, lifecycle hooks, setState() calls, etc.) run on the server, unlike just the initial server-side rendering that Next.js provides. The server maintains the state of all components
7.
▲
by
karthikksv
8y ago
Perhaps I could've explained myself better. I meant that all the business logic of the components (i.e. event handlers, lifecycle hooks, setState() calls, etc.) run on the server, unlike just the initial server-side rendering that Re
8.
▲
by
karthikksv
8y ago
A common criticism I heard about React a few years back was combining JS and HTML within the same file, as opposed to having them separate. As with most decisions, I think separation is an important trade-off you need to consider: it's
9.
▲
by
karthikksv
8y ago
We've been using this in production at the company I work at for about the past ~1.5 months. We've gone through a fair number of fixes and improvements throughout that time (bugs, race conditions, performance, etc.). It's def
10.
▲
by
karthikksv
8y ago
Yes, that was my inspiration! Chris gave a great talk about it at ElixirConf is anyone is interested in watching: https://www.youtube.com/watch?v=Z2DU0qLfPIY Some differences compared to LiveView: - Type-checking: there are
11.
▲
by
karthikksv
8y ago
You're not required to use TypeScript. As janpot mentioned, the library is transpiled prior to being published on npm, so you can use it with regular JavaScript. This is true of most TypeScript libraries.
12.
▲
by
karthikksv
8y ago
Whenever any information needs to be saved or processed by the server, you can perform your server-side logic inline in the event handler (e.g. update the database, contact external services, etc.). There's no need to make an AJAX requ
13.
▲
by
karthikksv
8y ago
You're right, there's validation for the WebSocket messages sent to the server. For certain events (e.g. submit), the validation of user form data is left to you, just as you would normally be responsible for.
14.
▲
by
karthikksv
8y ago
Higher latency connections will certainly have longer delays, but it's quite fast on a reasonable connection thanks to the persistent WebSocket, even if you're sending each letter that's being typed. We're using Purview
15.
▲
Show HN: Purview – A server-side component framework
(github.com)
58 points
by
karthikksv
8y ago
|
54 comments
16.
▲
by
karthikksv
8y ago
Dialbot | Full-stack developer | Remote (US only) | Full-time | https://dialbot.co/ We’re a small, fully remote and self-funded company that helps sales teams connect with prospects faster over the phone. Our customers use
17.
▲
by
karthikksv
8y ago
After seeing the LiveView talk, I too wanted something like it, but in a different (statically-typed) language. Last week, I released a TypeScript framework for server-side React components: https://github.com/karthikv/
18.
▲
Show HN: Par, a statically-typed, functional language focused on usability
(par-lang.org)
5 points
by
karthikksv
8y ago
|
0 comments
19.
▲
Show HN: Tradeship – Editor plugin to import missing JavaScript dependencies
(github.com)
8 points
by
karthikksv
10y ago
|
0 comments
20.
▲
CircleCI Docker Flow
(karthikv.net)
1 points
by
karthikksv
10y ago
|
0 comments
21.
▲
by
karthikksv
11y ago
Ah, yes, I've used something similar in the past too. It's great for being able to see what fields you can access, but it's not guaranteed to be up-to-date with the database. I think the biggest problem for our team is that p
22.
▲
Show HN: Enforced, Annotated Schema for Ruby Sequel Models
(github.com)
22 points
by
karthikksv
11y ago
|
3 comments
23.
▲
by
karthikksv
12y ago
What browser/OS are you using? I just checked on Chrome and FF on my Mac, and didn't run into any issues.
24.
▲
Show HN: I hate scheduling over email, so I made this: Timestamp
(gettimestamp.com)
25 points
by
karthikksv
12y ago
|
7 comments
25.
▲
by
karthikksv
14y ago
Do ternary operators really make much of a performance difference compared to if-else statements? I'd imagine they're not implemented much differently when it comes down to the instruction level (you still have the conditional branch). If t
26.
▲
Stop Abusing the JavaScript Ternary Operator
(karthikv.net)
5 points
by
karthikksv
14y ago
|
8 comments
27.
▲
by
karthikksv
14y ago
You make a good point. I'll fix this ASAP. I was also under the impression that the meta key mapped to the Windows key, but perhaps I'm wrong. Edit: Just updated the shortcut to control + m. Let me know if you continue to experience trouble
28.
▲
by
karthikksv
14y ago
That's great to hear. Thanks for the feedback.
29.
▲
by
karthikksv
14y ago
Does Greasemonkey make it easy to modify styles as well? This is simple if you can insert arbitrary JS, but it'll be annoying if you need to write JS to insert CSS for every site you want to edit. I just wanted a simple way to edit CSS with
30.
▲
by
karthikksv
14y ago
Oh, no I haven't. Looks like they beat me to it in terms of features and sharing. It seems like they could make it easier to use, though. You have to go to their custom styles page and add CSS without seeing its effects directly. Their user
More ›