DEV Community

Cover image for Share your ideas that never made it to production
Jane Ori
Jane Ori

Posted on

Share your ideas that never made it to production

Got any ideas buried in your git history that never made it to production?

Give it a chance in the spotlight; Throw it in a codepen or just talk about it in the comments below!


Here's my contribution:

Prior to the launch of augmented-ui v1.0.0 in 2019, early builds of the website's introductory animation also featured this 3D CSS animation behind it. The background animation was removed for performance reasons but still exists in the commit history. ๐Ÿ’œ

Hopefully this codepen helps give life to the idea that couldn't make it to production ~

Gif Capture of pre v1 augmented-ui intro animation featuring a 3D CSS animation in the background

// Jane Ori

Top comments (51)

Collapse
ย 
baasmurdo profile image
BaasMurdo โ€ข โ€ข Edited

An idea I had privately in my head. Basically a single browser that you can choose what render engine and javascript engine to use.
For instance when opening a new tab, you could choose a Blink render engine with a V8 javascript engine and that would be Chrome.
But you could then open another tab, a combination of WebKit and Nitro and then it would be Safari.

The whole idea is that web developers can see / test everything in one browser that renders it the same as they would in the real Chrome / Edge / Safari.

Collapse
ย 
vassbo profile image
Kristoffer โ€ข

Like this? responsively.app/

Collapse
ย 
baasmurdo profile image
BaasMurdo โ€ข

Almost. so this seems to render in different sizes or devices if you will.
But for theMacBook Pro 13" for instance, you can't seem to select via which render engine (browser) to open the site in.
I might be wrong, but at a quick first glance it seems to use a Chromium type of render engine.
Where my thought is to implement a choice of different render engines, rather than a choice of device size (although still very useful)

So that you can see a site, the way it would actually render on an iPhone X but in Chrome & Safari (using their native rendering)
if that makes sense ?

Thread Thread
ย 
vassbo profile image
Kristoffer โ€ข

Right. Makes sense. Would be very useful with a combination of both if that's possible.

Thread Thread
ย 
baasmurdo profile image
BaasMurdo โ€ข

Hell yea ! would be awesome !

Collapse
ย 
baasmurdo profile image
BaasMurdo โ€ข

hmmmm interesting, let me give it a go and get back to you.

Collapse
ย 
zubairanwarkhan profile image
Zubair Khan โ€ข

I thik browserstack has that thing

Collapse
ย 
baasmurdo profile image
BaasMurdo โ€ข

Yea there are a couple of place that you can pay to spin up some virtual machines / devices, they work quite well in most situations.

Collapse
ย 
vulcanwm profile image
Medea โ€ข

a website which would give you songs to listen to based on your song taste and your mood

Collapse
ย 
filix profile image
Filip Iliฤ‡ โ€ข

But I have Spotify

Collapse
ย 
vulcanwm profile image
Medea โ€ข

Yes but Spotify doesnโ€™t have albums for every mood.
But yeah I realised it was a stupid idea and gave up half way through

Thread Thread
ย 
badgamerbad profile image
Vipul Dessai โ€ข

no they have no, based on the mood, like "life sucks" :-P

Thread Thread
ย 
vulcanwm profile image
Medea โ€ข

but is that based on your music taste?

Thread Thread
ย 
badgamerbad profile image
Vipul Dessai โ€ข

yeah, they do make daily mix or discover weekly, they pretty much align with my music taste.

Thread Thread
ย 
vulcanwm profile image
Medea โ€ข

Oh yea

Collapse
ย 
baasmurdo profile image
BaasMurdo โ€ข

Deezer has something like this.

Collapse
ย 
vulcanwm profile image
Medea โ€ข

Oh okay

Thread Thread
ย 
baasmurdo profile image
BaasMurdo โ€ข

How good it actually works is an entirely other discussion lol, but in theory they have this kinda functionality.

Thread Thread
ย 
joelbonetr profile image
JoelBonetR ๐Ÿฅ‡ โ€ข

Youtube music and spotify also had a work on that ๐Ÿ˜

Thread Thread
ย 
vulcanwm profile image
Medea โ€ข

Yea I saw Spotifyโ€™s and itโ€™s funny how I used Spotify Auth for the project

Collapse
ย 
rollergui profile image
Guilherme โ€ข

I also had this mood based song player in my idea list! But yeah I never even tried to get it started.

Collapse
ย 
vulcanwm profile image
Medea โ€ข

I actually started on it and made a function for that, but just had other enhancements I didnโ€™t bother doing

Thread Thread
ย 
joelbonetr profile image
JoelBonetR ๐Ÿฅ‡ โ€ข โ€ข Edited

If you make one that adds you songs step by step to raise you from a bad mood to a good one progressively it would be a top tier product ๐Ÿ˜

Thread Thread
ย 
vulcanwm profile image
Medea โ€ข

I might try some day! Thanks!

Collapse
ย 
pyrsmk profile image
Aurรฉlien Delogu โ€ข

Last.fm?

Collapse
ย 
vulcanwm profile image
Medea โ€ข

oh.

Collapse
ย 
taufik_nurrohman profile image
Taufik Nurrohman โ€ข

A client-side JavaScript syntax highlighter that fetches only the required language files based on class names and/or data-* attribute.

Collapse
ย 
joelbonetr profile image
JoelBonetR ๐Ÿฅ‡ โ€ข

Something like a new i18n plugin?

Collapse
ย 
taufik_nurrohman profile image
Taufik Nurrohman โ€ข

No. A source code highlighter.

Thread Thread
ย 
joelbonetr profile image
JoelBonetR ๐Ÿฅ‡ โ€ข

Didn't get it then. Can you explain it with detail and use-case? Thank you :)

Thread Thread
ย 
taufik_nurrohman profile image
Taufik Nurrohman โ€ข โ€ข Edited

See this example that uses custom builder. Currently there is no way to load the language files dynamically. You still have to load them all at once even if you donโ€™t need it.

I have made a plugin to overcome that, but never got into stable state. I still consider it buggy.

Thread Thread
ย 
joelbonetr profile image
JoelBonetR ๐Ÿฅ‡ โ€ข โ€ข Edited

You don't need to load them all.
Just use dynamic imports...

const translation = (locale) => import(`/translations/lang-${locale}.js`);
Enter fullscreen mode Exit fullscreen mode

or async:

const loadTranslations = async (locale) => await import(`/translations/lang-${locale}.js`);
Enter fullscreen mode Exit fullscreen mode

Another (more robust) example:

/**
 * Retrieves translations from a given locale
 * @param {string} locale
 * @returns {Object}
 */
const getTranslations = (locale) => {
  try {
    const availableLanguages = {
      en: dynamic(() => import('/translations/en.js')),
      es: dynamic(() => import('/translations/es.js')),
    };

    if (!availableLanguages.hasOwnProperty(locale)) {
      console.error(`getTranslations error. Could not load translations for ${locale}`);
      return availableLanguages['en']; // DEFAULT
    }
    return availableLanguages[locale];
  } catch (error) {
    console.error(`${error.message} in ${error.stack}`);
  }
};
Enter fullscreen mode Exit fullscreen mode

Here we are declaring the available langs so it will not fail in runtime trying to load a nonexistent file for any other error, and it will return the default language in case of such error.

You can use next/dynamic if working with Next JS like me in this last example (note that there's no dynamic function declared; if you are not using Next JS, it needs to be done but you can use the first or second example to create a dynamic implementation quickly).
i.e.

const dynamic = (path) => import(`${path}`);
Enter fullscreen mode Exit fullscreen mode

Here you can find a dynamic import explanation from javascript.info

Apart from those options, in most webapps is better to handle translations through the DB so you can build a dashboard and people that work as translators can do their thing on it instead. No more releases to fix a string ๐Ÿ˜„

Best regards

Thread Thread
ย 
benhatsor profile image
Ben Hatsor โ€ข

A plugin like this one?

Thread Thread
ย 
joelbonetr profile image
JoelBonetR ๐Ÿฅ‡ โ€ข

Why do you want a plugin when it's so easy to handle with vanilla JS?

Collapse
ย 
deozza profile image
Edenn Touitou โ€ข

A PHP framework that could generate API endpoints based on YAML config files, with form validation and authorization and what not. And with a dynamic database handling all kinds of datas with only 3 or 4 tables.

And then I learnt that APIplatform exists, and does all of that already

Collapse
ย 
kolja profile image
Kolja โ€ข

Great idea!
Can you give me a list of those PHP API platforms?

Collapse
ย 
deozza profile image
Edenn Touitou โ€ข

Here you go

api-platform.com/

Thread Thread
ย 
kolja profile image
Kolja โ€ข

Thank you, looks overwhelming to me. Maybe a to hard learning curve.

Thread Thread
ย 
deozza profile image
Edenn Touitou โ€ข

Yeah you would need solid Symfony (the framework on which APIplatform is based) knowledge first to use it. In the end, it's a great tool for prototyping and small project.

Collapse
ย 
wahyusa profile image
Wahyu SA โ€ข

Exam Companion

Try to build chrome extension to recommend an answer when doing online exam, at least I already know to modify DOM from an extension and build my flask API, but I don't really understand to build the prediction/machine learning part ๐Ÿค” and now they used something like exam browser so the extension would be disabled ๐Ÿคฃ and I realize there is no need "prediction/machine learning" things to do that, you can just do it by yourself right ? just choose the answer.. if you need to choose 1 from 5 choices then the prediction should be 20% correct ๐Ÿง™โ€โ™‚๏ธ

Collapse
ย 
jonrandy profile image
Jon Randy ๐ŸŽ–๏ธ โ€ข

What do you mean by 'made it to production'? Not everything needs to be a product, not everything needs to be released, not everything needs to be useful or have a reason to exist... and nothing is ever 'finished'.

Most of my repos are just toys for my amusement - and these are by far the most interesting things to build.

Collapse
ย 
baasmurdo profile image
BaasMurdo โ€ข

and nothing is ever 'finished'

Tell that to the empty cookie box next to me.

Collapse
ย 
joelbonetr profile image
JoelBonetR ๐Ÿฅ‡ โ€ข โ€ข Edited

Well sometimes I get paid when finishing things so... ๐Ÿ˜‚

Got your point, bet @janeori is thinking about something that you feel like "marketable" or at least "shareable" and ended up in a closed drawer for any issue, lack of time, loss of interest or whatever other reason.

Collapse
ย 
atulcodex profile image
๐Ÿšฉ Atul Prajapati ๐Ÿ‡ฎ๐Ÿ‡ณ โ€ข

I have a big list, LOL by the way great question

Collapse
ย 
well1791 profile image
Well โ€ข

the banner picture hahaha it clearly relates the title.

Collapse
ย 
pengeszikra profile image
Peter Vivo โ€ข

Imho, this design idea is good but, but mandatory run smotth as possible, aroun 60 FPS and more. I did not look the code, but if you could mix with some exsisting UI solution like tailwind then it will be promising.

Collapse
ย 
mrepol742 profile image
Melvin Jones Repol โ€ข

I have a complete based idea about the update on my app the latest update was Feb the update released should be daily for dev and monthly for stable but 5 months later no stable release in the moment the idea turn into rock.. So all of the new features and improvements which is already planned didnt go to production 100% delayed by months...