News for hackers. Stuff that matters.

aakashns

Author here. I've shipped multiple Next.js projects to production with LLMs writing over 90% of the code, and this post outlines a project structure that aids LLMs and doesn't trip them up.

TL;DR: Keep it flat, obvious and simple. 7 top-level folders (app, components, database, emails, functions, lib, public) instead of deep nesting. Explicit server/client separation. Everything has one obvious place to live.

Happy to answer questions about working with LLMs on larger codebases or specific patterns I've found useful.

Re: on Monday January 01, 2024 @08:13AM (#38831572)
I created this template because I couldn't find any resources to run ClojureScript on Cloudflare Pages (one of the fastest and cheapest deployment options available today).
Re:Deleting 50k Lines of Code in 3 Days on Thursday December 14, 2023 @11:34AM (#38643220)
We do have a checkout flow, and yes, that page is visited by a very small number of users. However, you don't actually think I deleted the checkout flow, do you?
Re:Deleting 50k Lines of Code in 3 Days on Thursday December 14, 2023 @11:18AM (#38643004)
Haha, thanks! Yes, as I've said in the post, the idea is the migrate the codebase to a new stack quickly, and add back some features.
Re:Deleting 50k Lines of Code in 3 Days on Thursday December 14, 2023 @11:15AM (#38642965)
Our situation is a bit unique, because we're currently a two person company. I'm familiar with the product, our users, and the codebase, which allowed me to move quickly. This probably wouldn't work at a larger organization.
Re:Deleting 50k Lines of Code in 3 Days on Thursday December 14, 2023 @11:11AM (#38642917)
I didn't say I deleted everything that had less than 0.1% of page visits. :)

For instance, I didn't delete the "Account Settings" page. Features don't need a high percentage of traffic to be important, but less important features generally account for a very low percentage of traffic.

Re:Deleting 50k Lines of Code in 3 Days on Thursday December 14, 2023 @11:06AM (#38642853)
I've worked on the codebase since day one. We structured it carefully so that modules didn't depend on one another. All shared components were in a separate folder. The structure of the web application lends itself naturally to such code organization.

Show HN: UseLLM – Easily integrate large language models in your React app

https://github.com/usellm/usellm

I'd like to share useLLM, an open-source library I've been working on to help developers easily integrate large language models like OpenAI's ChatGPT into their React applications. useLLM is a simple React hook, with a server-side API helper, that allows you to add LLM-powered functionality to your app with just a few lines of code. It also supports message streaming & custom prompt...

( Read More... | no comments | on HN )
Re:Launch YC S21: Meet the Batch, Thread #9 on Friday August 27, 2021 @06:35AM (#28326136)
Thanks for your kind words!

Our goal is to offer practical & affordable data science education to millions of people around the world, and joining Y Combinator is going to help us execute on our vision faster.

We launched the bootcamp because we saw a need for a more hands-on and intensive program to help our users make a career transition to data science. However, we will continue to offer more free courses and improve the notebook-based learning platform.

Re:Launch YC S21: Meet the Batch, Thread #9 on Friday August 27, 2021 @06:30AM (#28326110)
I know, right?

In all seriousness though, VC funding is mainly a function of market size and scalability of the business model.

There's currently a huge shortage of data science talent across the world, and a sustainable business funded by venture capital can help fill this gap quickly.

Re:Launch YC S21: Meet the Batch, Thread #9 on Friday August 27, 2021 @06:19AM (#28326050)
We offer several free courses, and at the end of every free course, students build projects. They vary greatly in scope and size. The 160,000 number refers to the total number of projects created by our users.

Students who are part of our 6-month program build guided portfolio projects that require at least 30-50 hours of work and must meet our evaluation criteria.

I see your point though, perhaps we should use different terminology for the two types of projects.

Re:Launch YC S21: Meet the Batch, Thread #9 on Friday August 27, 2021 @06:13AM (#28326023)
YC's demo day is next week, so we're all near the end of the program.
Re:Launch YC S21: Meet the Batch, Thread #9 on Thursday August 26, 2021 @01:31PM (#28317883)
In many cases, the existing product is not designed to serve the needs of all countries/demographies/races/genders etc., so there's value in provided a better user experience for a specific niche, especially one that's growing.

I like using products that were created keeping me in mind as the primary customer. Wouldn't you too?

Re:Launch YC S21: Meet the Batch, Thread #9 on Thursday August 26, 2021 @01:27PM (#28317824)
Thanks, we agree! Our program is currently targeted towards individuals, but we definitely think similar programs for companies are a great idea too.
Re:Launch YC S21: Meet the Batch, Thread #9 on Thursday August 26, 2021 @11:16AM (#28316023)
Thanks for your support! We also offer several free courses, so do check them out if you're curious: https://www.jovian.ai

Our program is designed primarily for working professionals with some background in programming, analytics or statistics. We've found that most of them are comfortable with paying program fees upfront or monthly.

However, we do also offer an ISA option in cases where students are unable to pay upfront.

Re:Launch YC S21: Meet the Batch, Thread #9 on Thursday August 26, 2021 @10:00AM (#28315045)
Hi HN, we're Aakash and Siddhant of Jovian (https://www.jovian.ai/). We run a 6-month program that helps working professionals with a background in programming, statistics or analytics land their first data science job.

Four years ago, we quit our jobs and spent several months learning data science and deep learning. We completed several online courses, read some books, and participated in some Kaggle competitions. We were finally able to make a career transition to data science, but looking back at the journey, we felt “It shouldn’t be this hard!”

While there are various platforms offering data science education, most learners don't feel confident while approaching real-world projects even after completing multiple courses and earning certifications. They find it hard to clear interviews to land their first job, and often require several months of training on the job.

Jovian is the platform we wished we had access to when we started learning. There are three things we focus on: (1) we teach practical skills that students use to build real-world projects, (2) we offer 24x7 support & detailed feedback on every project, (3) students learn together with a community of like-minded learners in a university-like environment. We’ve taken inspiration from courses like fast.ai and mlcourse.ai.

Our 6-month program consists of 7 courses, 14 coding assignments and 4 portfolio projects. Every week, students watch 5-6 hrs video lectures and work on assignments for 15-20 hrs. Students can ask questions and get help 24x7 from our TAs over Slack and Zoom. Every 5 weeks, they complete a unique guided real-world project and publish a blog post. We offer 1:1 resume review, interview practice, and job search support for 12 months. We make money by charging a flat fee for the course, which students can pay up-front or monthly.

One thing we discovered and found surprising is that most of the math used in data science can be explained through code. Many people find math intimidating not because the concepts themselves are tough, but because they aren't used to mathematical symbols and equations.

We look forward to your comments!