Live data from Hacker News

Nepalese student learns HTML, JavaScript, CSS using just a mobile phone

linkedin.com

21–30 of 249 posts

Re: Nepalese student learns HTML, JavaScript, CSS using just a mobile phone

#21

Sadly, this is how things are for many of us students, I currently study bachelors in CS here in Nepal and for me and some of my friends stuck in our villages (lockdown isn't still over here yet), we have been doing C assignments using editors avalialble in the playstore. Seeing these apps have millions of downloads, we're definitely not alone and I have seen many indian and other south asian friends do the same. My…

Install termux. Learn vim

Re: Nepalese student learns HTML, JavaScript, CSS using just a mobile phone

#22

I think this is more common than people realize. Especially in the Indian subcontinent, where most people have a smartphone but only few have a PC. I learnt programming on pen and paper first and then on those phone IDEs even before I had access to a pc. And even after a PC, I used to use my phone as a display for my desktop via chrome remote desktop because my monitor got damaged and only showed shades of green. And…

Just about everywhere, people learn programming on their graphing calculators and other low-end devices. I cut my teeth on a hand-me-down Psion 3C.

In some sense, I think doing it that way might even be easier. Constraints release creativity, and being able to read a single user's manual (however thick) and technically know everything you need to know is powerful.

Re: Nepalese student learns HTML, JavaScript, CSS using just a mobile phone

#23
post #21

Sadly, this is how things are for many of us students, I currently study bachelors in CS here in Nepal and for me and some of my friends stuck in our villages (lockdown isn't still over here yet), we have been doing C assignments using editors avalialble in the playstore. Seeing these apps have millions of downloads, we're definitely not alone and I have seen many indian and other south asian friends do the same. My…

Install termux. Learn vim

Yep, I have to thank my conditions for forcing me to learn linux stuffs. As much as I would like to I cannot recommend it to friends who are just starting out to do it as I myself spend 3+ weeks to learn vim. They get perplexd on installing termux.

Re: Nepalese student learns HTML, JavaScript, CSS using just a mobile phone

#24
post #4

Earlier quoted context omitted.

FWIW it really isn't that hard on Android, as you can just install Termux and then install stuff like clang or the Android SDK tooling. For a while a couple years ago I was doing this and using a foldable bluetooth keyboard; the setup was small enough to fit in my jacket pocket and felt a bit more convenient than carrying around a laptop.

The more impressive part is working with such a tiny screen I think. That takes some real perseverance.

Aren't there already many folks looking at their smartphone screen for significant amounts of time every day?

Re: Nepalese student learns HTML, JavaScript, CSS using just a mobile phone

#25
I used to have a similar setup on my phone when my laptop started dying and I was in the middle of moving countries.

You can have Node running via termux, albeit with some limitations, e.g. no global modules.

Of course debugging isn't really possible, so you'll have rely on your engineering prowess.

I wanted to create a similar setup for Rust, but unfortunately compiling the compiler from source to work on Android was way above my skills (provided it was even possible to begin with).

Re: Nepalese student learns HTML, JavaScript, CSS using just a mobile phone

#26
Story time!

I grew up in eastern Europe in the communist era, in a country where entire factories were run using Commodore 64 computers that were smuggled in, bypassing export controls and sanctions.

The programmer at one such factory was a friend of my father, and we'd go over to his place for dinner semi-regularly. He didn't have kids, and I was six, so I was bored to tears. No toys and nobody my age to play with!

He did have a C64, which was the only other one in town apart from the one at the factory. He was using it to practice programming after-hours at home. There were no games on it, but he did have a book of games.

As in: a literal printed book of the source code for several simple games. That you were supposed to type in to be able to play!

So I did. I had nothing else to do, so I whiled away the hours while the adults chatted poking away at the keyboard, typing in the BASIC code of the shortest, simplest game first.

It didn't work at first. There were some errors. With help, I fixed the typos, and hey presto, the game worked! I still remember the elation, the feeling of accomplishment after all that work. I didn't even play the game for more than a minute or so, I immediately got to work on entering the next, longer game's code. I was hooked.

Eventually I tried all three or four of the games in the book, and got bored. However, I was allowed to borrow the BASIC introductory problem set book, which I took back home with me to study. I solved the problems one at a time on grid paper (to match the fixed-width screen layout). I "ran" the programs in my head, debugged them by working out the variable values step by step on paper, and then tested my solutions on the real C64 computer whenever my parents went over for a social dinner. Most of my programs worked, and ran at ludicrous speed compared to the glacial pen & paper solutions I had worked out. I instantly understood that Computers were levers for the mind. Learning to control that raw power was intoxicating.

We fled across the iron curtain as political refugees, and I took that textbook with me. I had no access to computers for nearly a year, but when we finally got settled permanently in the West my dad bought a used C64 at a garage sale for a few dollars. This was a computer that back in my homeland would be the carefully guarded control hub of a factory. Here it was a discarded plaything. Even at that age, that blew my mind.

I learned more programming languages in quick succession. Pascal at the age of 11, C and Assembly at 12, C++ at 13. I had written 3D engines by the time I went to University.

Statistically, if you know programming, you probably learned it in a tertiary education setting, most likely in your late teens or early twenties. Just like learning a foreign language at that age, you'll never be perfectly fluent. You'll always have an accent, no matter what you do.

To me, programming is my mother tongue. I'm perfectly fluent and unaccented. You probably can't even tell, you can't hear the difference.

Programming for you is something you do at work.

I've had dreams in C++

Re: Nepalese student learns HTML, JavaScript, CSS using just a mobile phone

#27
post #21

Earlier quoted context omitted.

Install termux. Learn vim

Yep, I have to thank my conditions for forcing me to learn linux stuffs. As much as I would like to I cannot recommend it to friends who are just starting out to do it as I myself spend 3+ weeks to learn vim. They get perplexd on installing termux.

Micro works on termux too without the learning curve.

Re: Nepalese student learns HTML, JavaScript, CSS using just a mobile phone

#28
post #17
post #6

Earlier quoted context omitted.

While I don't mean to slight the front-end dev's dedication, there are more than a few of us who learned BASIC programming in the late 1970's and early 1980's... without access to any computing device at all. We would study BASIC from manuals and other books, and pour over program listings in magazines. Then we would write out programs on paper, and "interpret" them in our heads to see if they worked correctly. Some…

I have difficulties understanding this. I learned Basic ard 84 on a c64. I don't understand why anybody would learn it without access to any device. I mean what would even get one interested in it/how would one know this exists?

Having grown up in communist Romania, I had this experience - the first computer I toyed with was a Spectrum clone, which we had at the school, and had access to it for about 2h/week. I definitely knew what it is and how to use it, but I couldn't spend time actually developing even simple programs on it.

So I had a copied manual at home, and a couple of magazines with listings, and I would write my programs in basic on paper, and emulate them in my head, to verify they work. Then when I had access to the computer at the school I would use that time to type in the program and really run it.

Thankfully my parents were able to buy for my own Spectrum clone after a while (when they become cheaper/more affordable, because the PCs finally were being imported, so a lot of local companies would move from their Spectrums to PCs) and then I could spend innumerable hours building simple move-the-cursors games directly on the hardware.

Re: Nepalese student learns HTML, JavaScript, CSS using just a mobile phone

#30

It must be a horrible work of hackery to turn a smartphone based on iOS or Android into a useful device. Kudos to him. If he was able to do that, then development shouldn't put up much barriers anymore. I would totally buy him a decent PC though.

Android's pretty plug and play in that regard thanks to USB OTG, and you've got a lot of the Linux world amenities on top of it (especially if you're rooted).
Post reply on HN