[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Thank you for applying for a job at Google. How would you design
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 44
Thread images: 4
Thank you for applying for a job at Google.

How would you design a text editor anon?
>>
Outsource it to India using android as a platform and fill it with adware and in-app purchases, using Google Play to allow users to spend inordinate money without realizing it.
>>
>>54413066
?
>>
>>54413066
Exactly how Xi is doing it
>>
Hire me and find out ;)
*unsheathes handshake*
>>
>>54413066
What kind of text editor? Programmer's editors, word processors and simple embeddable editor components have different feature sets and requirements.

Where will it be used? Multiplatform desktop applications are different from mobile editors are different from web based editors.

Do you have a project in mind where this editor will be used?
>>
>>54413089
>tfw Pajeet creates a class Document and declares all the text as a single String
>>
>>54413066
Copy gedit
Give it pallet colors
Add a link to youtube in the toolbar
>>
>>54413126
Something like a glorified nano.

I want to open and edit, say find and replace. several gigabyte large log files in it though so keep that in mind when picking data structures and so on. You will probably require some off-loading of chunks or something to the disk.
>>
>>54413066
I wouldn't bother duplicating effort since vim already exists, next question and do try to stop wastin my time
>>
>>54413066
VR IoT application connected to your toaster that uses data from gmail to predict what word you're going to use next and suggests content based on your facebook likes. You can also upvote your text files so that the NSA knows which ones to read through first via our always-connected-to-the-gubmint cloud platform.
>>
>>54413185
Vim is architecturally shit. It doesn't even do asynchronous plugins. I really hope your text editor won't be that crappy.
>>
>>54413066
Figure out who your users are
what their priorities are
where it will be used
look at similar products
figure out what works, what doesn't, what's important, and what isn't
design and test
build
release
>>
>>54413197
>facebook
>not g+
Anon why do you not use Google+?

Maybe get a job at Facebook instead?
>>
>>54413205
uuugh, fine, I"m sure vim has a function for making some shitty text editor you can understand
>>
>>54413066

>In a way that harvests as much user data as possible
>>
>>54413185
The correct answer was Emacs. No job for you, move along.
>>
Uh... no idea but I can fizzbuzz and invert a binary tree... not bad huh?
>>
>>54413156
No problem! Are we assuming the log files are stored as text on a typical file system where we can overwrite and truncate but not insert?

Can you give me some use cases with examples of things you want to find and replace? This will help the strategy.

For example, if you want to identify and blank out PII with "XXXX", that can be done in place.

If you want to search and replace things with different lengths, we can do that in a single pass at the end by just keeping a change list in memory.

We could potentially do both searches and replaces on multiple machines, is that an option or are we keeping it local?

Are the log files historic and static enough to build an index of keywords and line lengths ahead of time?

If not, do they have a common timestamp format or something we can use to help navigate in the file?
>>
>>54413264
How would you show targeted ads based on what the user is typing?
>>
Emacs but with Scheme instead.
>>
>>54413273
Just for the record, I checked and looping is indeed about 11 times faster than recursive. Looping is also easier to implement threading with, making it 1.5-2x faster than that.
>>
File: IC88I.gif (123 KB, 496x279) Image search: [Google]
IC88I.gif
123 KB, 496x279
>>54413128
>this is a bad thing
>>
>>54413375
Good luck recreating the multiple megabyte string every time a key is pressed
>>
>>54413417
public void onKeyPressed(KeyEvent nig) {
int x = currentPosition();
string1 = string1.substring(0, x) + nig.getKeyChar() + string1.substring(x);
}

omg so hard
>>
>>54413537
Yeah, that's terrible performance-wise
>>
>>54413546
>my editor needs to keep a solid 60FPS when I type super fast on my razer keyboard
k kid
>>
>>54413546
Fucking faggot. Why don't you write one thats better?
>>
I wouldn't bother; Emacs already exists.
>>
Why design a text editor when there are two perfect text editors that for everyone (vim/emacs)?
>>
>>54413601
>thinking both are perfect
what's wrong with you?
>>
>>54413601
atom > everything
>>
>>54413638
Said nobody with a brain ever
>>
I'd run it on a VM made with Ruby on Rails.
>>
>>54413679
>not writing it in nodejs running on nodeOS running in a docker container running on core os running inside of Hyper-v
>>
I would take the code of Notepad++ and change the logo.
>>
>>54413066
i am jewish black tranvestite lesbian female
>>
File: untitled.png (80 KB, 283x178) Image search: [Google]
untitled.png
80 KB, 283x178
>>54413066

get scroogled xD

https://www.youtube.com/watch?v=6QI4KmlcQr4
>>
I wouldn't, that's called reinventing the wheel, and it's against the Unix way.
>>
>>54413867
You are a goddamn codemonkey not philosopher
>>
sudo apt-get install vim


the end.
>>
>>54413928

I have established that Google is not the right company for my qualities. Have a nice day.
>>
>>54413120
>unsheathes handshake

go back to fucking reddit, pleb.
>>
>>54413066
I mean; for the lols I would make a python program that takes user input and saves it to a text file. Then I would make a function that opens that file, reads it, and lets the user edit it.
Thread replies: 44
Thread images: 4

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.