top | item 42393883

(no title)

gauravphoenix | 1 year ago

Whenever time permits, I have a (bad) habit of viewing source code of new website. In this case, I found this on this website: (haven't read the js yet to see what's the true intent but surely a sign of horrible engineering)

edit- seems like remix customizations.

              "remove-watch-video-requirement": {
                            "defaultValue": false,
                            "rules": [{
                                "condition": {
                                    "env": "prod",
                                    "email": {
                                        "$in": ["<redacted>@gmail.com", "redacted"]
                                    }
                                },
                                "force": true
                            }]
                        },
                        "score-only-lesson-phoneme": {
                            "defaultValue": true
                        },
                        "auto-stop-recording-for-all-practice": {
                            "defaultValue": true,
                            "rules": [{
                                "condition": {
                                    "env": "prod",
                                    "email": {
                                        "$in": ["redacted", "redacted", "redacted@live.com"]
                                    }
                                },
                                "force": false
                            }]
                        },
                        "use-speechace-v9": {
                            "defaultValue": true
                        },
                        "april-2022-price-increase-experiment": {
                            "defaultValue": false,
                            "rules": [{
                                "condition": {
                                    "env": "prod",
                                    "email": {
                                        "$in": ["redacted@usorov.com", "redacted@gmail.com", "redacted@gmail.com", "redacted@boldvoice.com", "redacted@gmail.com"]
                                    }
                                },
                                "force": false

discuss

order

gruez|1 year ago

My guess is that it's from their SSR framework (ie. remix), which serialized way too many things and sent it to the client. That, and they're using the same feature flag project/config as their main app, because looking at the feature flags it's clearly to do with their main app (ie. AI voice training) rather than this AI voice guesser app.

> "successEnterReferralCodeDuringOnboardingBody": "You've just unlocked 10% off your BoldVoice subscription, thanks to [firstName]'s referral!",

maxmcd|1 year ago

It might be a kindness to redact those emails before you can no longer edit your post.

gauravphoenix|1 year ago

valid point, removed.

77pt77|1 year ago

Between typescript and all the front-end frameworks, reading web code nowadays is worse than reading disassembled native code.